Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

PHP | Forum profile

Forum profile page for PHP on http://www.tek-tips.com. This report page is the aggregated overview from a single forum: PHP, located on the Message Board at http://www.tek-tips.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "PHP" on the Message Board at http://www.tek-tips.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Tek-Tips Forums - PHP (site profile, domain info tek-tips.com)
Title: PHP
Url: http://www.tek-tips.com/threadminder.cfm?pid=434
Users activity: 3 posts per thread
Forum activity: 22 active threads during last week
 

Posting activity on PHP:

  Week Month 3 Months
Threads: 22 83 239
Post: 71 242 721
 

PHP Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
jpadie
16
user's latest post:
place into array and sort
Published (2009-12-29 10:06:00)
CODE $array = array('ball1', 'ball2', 'ball3', 'ball4', 'ball5', 'ball6', 'ball7', 'ball8', 'ball9'); $balls = compact($array); //assemble into array $sortedBalls = sort($balls, SORT_NUMERIC); print_r($sortedBalls); as feherke says, it would be better to use an array from scratch than create one out of disparate variables.  
feherke
11
user's latest post:
session timeout then redirect?
Published (2009-12-29 10:22:00)
Hi Quote (jpadie): it is good practice to issue an express exit or die command after header redirection. I would say, that is not just good practice, it is mandatory. Otherwise the document will be generated and delivered. And with the help of NoRedirect the visitor will just continue to enjoy the navigation. Feherke. http://free.rootshell.be/~feherke/
OsakaWebbie
9
user's latest post:
phpinfo exposes email address
Published (2009-12-27 22:29:00)
Okay, I'll authenticate (which I what I was thinking of doing quite early in this conversation).  Thanks for everyone's input.
FNBIT
7
user's latest post:
How to reference Yahoo and Bing...
Published (2009-12-24 09:56:00)
Good point.  I didn't think of that.  I think once it is done I will go back and change that part later.  Thanks for the advice!
krappleby
5
user's latest post:
place into array and sort
Published (2009-12-29 09:12:00)
hi this is and is not working.. at the moment i have all the values in an array called $balllist i ahve used asort, and printed for each value in the array.. This works.. but when i come to echo $balllist[0] its not the lowest ball.. so its not sorting as i requre.. i need to get it to sort all the balls, into order, so that i can run through the [0][1][2] and it iwll be in order.. cheers any ideas.. thanks for the help
vacunita
4
user's latest post:
error checking on php insert...
Published (2009-12-23 22:59:00)
Assuming you are using normal mysql calls you can ask mysql to retunr a more meaningful error: $qry="INSERT ...."; $result=mysql_query($qry) or die(mysql_error()); This should spit out something more useful. You could also echo out the query and try to run it through a mysql GUI such as MYSQL's Query Browser and see if it produces any useful errors. ---------------------------------- Phil AKA Vacunita...
matrixindicator
4
user's latest post:
form value text to date
Published (2009-12-23 17:21:00)
Feherke, any ID ?
timgerr
4
user's latest post:
Remove items from Array of...
Published (2009-12-24 11:48:00)
Thanks for the help, I will give this a try.  Have a good holiday. timgerr -How important does a person have to be before they are considered assassinated instead of just murdered? Congratulations!
DonQuichote
4
user's latest post:
phpinfo exposes email address
Published (2009-12-27 06:13:00)
I don't think the programmers thought that php_info would be shown to the public at all. So there is little point in obfuscating it. I think php_info is meant to be used on a (safe internal) development or test server, or put behind a password. Even if you obfuscate the password, all the other info is just too useful for hackers to display. +++ Despite being wrong in every important aspect, that is a very good analogy +++...
mcquam
3
user's latest post:
Redirect logic
Published (2009-12-21 15:16:00)
Yes, my questions are one per file.  Index.php has this switch: CODE switch ($p) {     case 'q01_01':         $page = 'questions/q01_01.inc.php';         $page_title = 'Question 1.1';...
 

Latest active threads on PHP::

Tek-Tips Forums
Started 2 weeks, 1 day ago (2009-12-17 12:19:00)  by feherke
Hi You can not know when the session times out. There are two situations : there is a valid session - PHP will provide it for your script there is no valid session - nothing There is no difference between timed out, destroyed and never existing sessions. For a simple example related to the use of session, see the recent thread434-1583410: Page redirect based on refering page . Feherke....
Thread:  Show this thread (9 posts)   Thread info: session timeout then redirect? Size: 698 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: session timeout then redirect? :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 3 days, 7 hours ago (2009-12-29 08:30:00)  by feherke
Hi Quote (krappleby): ball1, ball2, ball3, ball4, ball5, ball6, ball7, ball8, ball9 If it has a sequential meaning, I use an array even for a single value. As far as I remember, I never declared nine variables like those. I suggest to use an array. Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (7 posts)   Thread info: place into array and sort Size: 529 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: place into array and sort :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 2 days ago (2009-12-23 12:13:00)  by feherke
Hi What exactly entered the user ? What that echo $todayinsert ; said ? What kind of database are you using ? Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (9 posts)   Thread info: form value text to date Size: 507 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: form value text to date :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week ago (2009-12-25 06:17:00)  by feherke
Hi Quote (OsakaWebbie): the "apache2handler" section of phpinfo() contains the "server administrator" email address as plain text. Note that it also appears in the Apache Environment and the PHP Variables sections. Quote (OsakaWebbie): Is there a way to get that to not show The only way I know is to not set it. See the ServerAdmin directive in your httpd configuration. Quote (...
Thread:  Show this thread (21 post)   Thread info: phpinfo exposes email address Size: 1,135 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: phpinfo exposes email address :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 1 day ago (2009-12-24 06:51:00)  by DonQuichote
Well, you'd something like this: CODE $connected=FALSE; while(! $connected): try{ ... open the connection... $connected=TRUE; } catch(Exception $exc) { ... } endwhile; But please note a few things: If the PHP script drives a web site, it is not very kinds to make the loading of the web page wait for 5 or more seconds. Better send a page refresh instead. ...
Thread:  Show this thread (5 posts)   Thread info: Possible Try Catch usage. Size: 1,069 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Possible Try Catch usage. :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 1 day ago (2009-12-23 21:12:00)  by jpadie
can i clarify? you + first want to find the largest value for RSS_ROLE + second extract the subset of the array which has RSS_ROLE equal to the largest value + then deduplicate the subset on RES_TYPE AND id AND root (i.e. if all three match then it is a duplicate but if any one or two match then it is not a duplicate)
Thread:  Show this thread (8 posts)   Thread info: Remove items from Array of objects on object keys Size: 425 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Remove items from Array of objects on object keys :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 2 weeks, 1 day ago (2009-12-17 03:38:00)  by feherke
Hi How is this PHP question ? Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (8 posts)   Thread info: How to reference Yahoo and Bing cached pages? Size: 236 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to reference Yahoo and Bing cached pages? :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 1 day ago (2009-12-23 22:59:00)  by vacunita
Assuming you are using normal mysql calls you can ask mysql to retunr a more meaningful error: $qry="INSERT ...."; $result=mysql_query($qry) or die(mysql_error()); This should spit out something more useful. You could also echo out the query and try to run it through a mysql GUI such as MYSQL's Query Browser and see if it produces any useful errors. ---------------------------------- ...
Thread:  Show this thread (3 posts)   Thread info: error checking on php insert statement Size: 780 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: error checking on php insert statement :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 week, 3 days ago (2009-12-21 16:56:00)  by FNBIT
Is there a way to compare and see the differences between the two strings? I thought there may be some line breaks but I am not sure how to see them. I copied and pasted into Word and did a show all codes but I still don't see anything different between the two variables. However there must be some difference since one works and the other does not.
Thread:  Show this thread (4 posts)   Thread info: Problem with file_get_contents Size: 438 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Problem with file_get_contents :: PHP :: Tek-Tips Forums"
 

Hot threads for last week on PHP::

PHP
Started 1 week ago (2009-12-25 06:17:00)  by feherke
Hi Quote (OsakaWebbie): the "apache2handler" section of phpinfo() contains the "server administrator" email address as plain text. Note that it also appears in the Apache Environment and the PHP Variables sections. Quote (OsakaWebbie): Is there a way to get that to not show The only way I know is to not set it. See the ServerAdmin directive in your httpd configuration. Quote (...
Thread:  Show this thread (21 post)   Thread info: phpinfo exposes email address Size: 1,135 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: phpinfo exposes email address :: PHP :: Tek-Tips Forums"
PHP
Started 1 week, 2 days ago (2009-12-23 12:13:00)  by feherke
Hi What exactly entered the user ? What that echo $todayinsert ; said ? What kind of database are you using ? Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (9 posts)   Thread info: form value text to date Size: 507 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: form value text to date :: PHP :: Tek-Tips Forums"
PHP
Started 1 week, 1 day ago (2009-12-23 21:12:00)  by jpadie
can i clarify? you + first want to find the largest value for RSS_ROLE + second extract the subset of the array which has RSS_ROLE equal to the largest value + then deduplicate the subset on RES_TYPE AND id AND root (i.e. if all three match then it is a duplicate but if any one or two match then it is not a duplicate)
Thread:  Show this thread (8 posts)   Thread info: Remove items from Array of objects on object keys Size: 425 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Remove items from Array of objects on object keys :: PHP :: Tek-Tips Forums"
PHP
Started 3 days, 7 hours ago (2009-12-29 08:30:00)  by feherke
Hi Quote (krappleby): ball1, ball2, ball3, ball4, ball5, ball6, ball7, ball8, ball9 If it has a sequential meaning, I use an array even for a single value. As far as I remember, I never declared nine variables like those. I suggest to use an array. Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (7 posts)   Thread info: place into array and sort Size: 529 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: place into array and sort :: PHP :: Tek-Tips Forums"
PHP
Started 1 week, 1 day ago (2009-12-24 06:51:00)  by DonQuichote
Well, you'd something like this: CODE $connected=FALSE; while(! $connected): try{ ... open the connection... $connected=TRUE; } catch(Exception $exc) { ... } endwhile; But please note a few things: If the PHP script drives a web site, it is not very kinds to make the loading of the web page wait for 5 or more seconds. Better send a page refresh instead. ...
Thread:  Show this thread (5 posts)   Thread info: Possible Try Catch usage. Size: 1,069 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Possible Try Catch usage. :: PHP :: Tek-Tips Forums"
PHP
Started 1 week, 1 day ago (2009-12-23 22:59:00)  by vacunita
Assuming you are using normal mysql calls you can ask mysql to retunr a more meaningful error: $qry="INSERT ...."; $result=mysql_query($qry) or die(mysql_error()); This should spit out something more useful. You could also echo out the query and try to run it through a mysql GUI such as MYSQL's Query Browser and see if it produces any useful errors. ---------------------------------- ...
Thread:  Show this thread (3 posts)   Thread info: error checking on php insert statement Size: 780 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: error checking on php insert statement :: PHP :: Tek-Tips Forums"
PHP
Started 2 weeks, 1 day ago (2009-12-17 12:19:00)  by feherke
Hi You can not know when the session times out. There are two situations : there is a valid session - PHP will provide it for your script there is no valid session - nothing There is no difference between timed out, destroyed and never existing sessions. For a simple example related to the use of session, see the recent thread434-1583410: Page redirect based on refering page . Feherke....
Thread:  Show this thread (9 posts)   Thread info: session timeout then redirect? Size: 698 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: session timeout then redirect? :: PHP :: Tek-Tips Forums"
PHP
Started 2 weeks, 1 day ago (2009-12-17 03:38:00)  by feherke
Hi How is this PHP question ? Feherke. http://free.rootshell.be/~feherke/
Thread:  Show this thread (8 posts)   Thread info: How to reference Yahoo and Bing cached pages? Size: 236 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to reference Yahoo and Bing cached pages? :: PHP :: Tek-Tips Forums"