[PHP] Understanding deprecated features from 5.2 -> 5.3

2011-07-31 Thread robert mena
Hi, I am planning to upgrade my server from 5.2 to 5.3 but I am not sure if the deprecated features will simply throw warning messages but work or won't work at all. So far I've read that deprecated features are going to be removed on later versions. Unfortunately I host sites and some may use f

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Jason Pruim
On Jul 31, 2011, at 6:23 PM, Tamara Temple wrote: > > On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: > >> So I'm attempting to redirect back to the main site of a page after a >> successful insert into a database... Here's my code: >> > >> if (!$resp->is_valid) { >> // What happens whe

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Tamara Temple
On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. G

Re: [PHP] Phone numbers....

2011-07-31 Thread Ashley Sheridan
On Sun, 2011-07-31 at 16:18 -0400, Jason Pruim wrote: > On Jul 31, 2011, at 4:14 PM, Alex Nikitin wrote: > > > There are databases with area codes for the first 3, so you only have to > > generate 1 million. Why do you need to store all of them again? > > > > I don't necessarily need to store

Re: [PHP] Phone numbers....

2011-07-31 Thread Jason Pruim
On Jul 31, 2011, at 4:14 PM, Alex Nikitin wrote: > There are databases with area codes for the first 3, so you only have to > generate 1 million. Why do you need to store all of them again? > I don't necessarily need to store it... BUT I do need to be able to represent all the numbers somehow

Re: [PHP] Phone numbers....

2011-07-31 Thread Alex Nikitin
There are databases with area codes for the first 3, so you only have to generate 1 million. Why do you need to store all of them again? On Jul 31, 2011 4:06 PM, "Jason Pruim" wrote: > No I'm not looking for your phone number... Or for the guy/girl whose number you thought you got last night at th

[PHP] Phone numbers....

2011-07-31 Thread Jason Pruim
No I'm not looking for your phone number... Or for the guy/girl whose number you thought you got last night at the bar but turned out to be the information number... I'm working on a project for a client that I need to represent all the possible phone numbers in the US and Canada... Which thank

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Jul 31, 2011, at 2:50 PM, Dajka Tamas wrote: > Try lowercase 'http'. Anything in error log? Try turning on display_errors. Tried both, upper and lower case http nothing changed... And nothing in the error log... I try a simple echo with a link and th

RE: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Dajka Tamas
Try lowercase 'http'. Anything in error log? Try turning on display_errors. Cheers, Tamas -Original Message- From: Jason Pruim [mailto:li...@pruimphotography.com] Sent: Sunday, July 31, 2011 8:40 PM To: Subject: [PHP] Problem with header("Location:" )... So I'm attempting to r

[PHP] Problem with header("Location:" )...

2011-07-31 Thread Jason Pruim
So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA sa

Re: [PHP] Session treating

2011-07-31 Thread Andre Polykanine
Hello Ashley, > One thing sticks out a little bit to me. In your index.php file, you're > accessing an element of the $_SESSION array, but without calling > session_start() first. I believe this may be causing the issue you are seeing. I tried using it without success. I'm having now 3 separat

Re: [PHP] Session treating

2011-07-31 Thread Ashley Sheridan
Andre Polykanine wrote: >Hi guys and girls, >I'm completely stuck at a really stupid thing. >For some reason my session id doesn't pass through the links. > >Here is the code: > >index.php: > >// Checking if the admin was ever authorized >if ($_SESSION['PSS']!=session_id()) $auth=0; else $auth=

[PHP] Session treating

2011-07-31 Thread Andre Polykanine
Hi guys and girls, I'm completely stuck at a really stupid thing. For some reason my session id doesn't pass through the links. Here is the code: index.php: Invalid login or password!"; include "login.php"; } else { // Attention! session_name("PalantirSessId"); session_start(); // Everything goe

Re: [PHP] PHP runs but apache says its a faulting module every so often

2011-07-31 Thread Negin Nickparsa
did you run phpinfo()?