|
More site info...
|
|
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.
|
|
|
|
|
Posting activity on PHP:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
22
|
83
|
239
|
|
Post:
|
71
|
242
|
721
|
|
|
PHP Posting activity graph:
|
Top authors during last week:
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.
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/
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.
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!
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
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...
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!
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 +++...
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::
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....
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/
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/
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 (...
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. ...
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)
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/
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. ---------------------------------- ...
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.
|
|
Hot threads for last week on 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 (...
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/
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)
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/
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. ...
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. ---------------------------------- ...
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....
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/
|
|