Current location: Hot Scripts Forums » Programming Languages » PHP » Plz reply urgent....!!!


Plz reply urgent....!!!

Reply
  #1 (permalink)  
Old 02-09-04, 04:41 AM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question Plz reply urgent....!!!

Hello!!

I am new to this forum as well as to PHP.. Infact i am facing a problem with PHP versions... Actually i am working over an application which was designed under an old version of PHP and now i am using PHP 4.2.3.

When the Code runs on most of the pages it displays an error message of "UNDEFINED INDEX: (Variable Name)".

Kindly let me know, is there any change in the new version of PHP like variable initialization? or not. Coz when i use "isset();" before checking the value of specific variable it goes perfect. But using "isset();" before every if-else statement is a headache..

Regards,
F.Ahmed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 05:15 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi htere,

Does it say "PHP Notice" before the undef index? If so, chances are that you set the PHP notice to be shown, and in that case, you have to define vars, etc, or you will get this notice.

Go into php.ini and look for error handling directives, and there is a good explanation as to how you can suppress the notices, which most people do.

HTH.
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-09-04, 08:19 AM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re:Plz reply urgent

Thanks for your quick support ..

I would be very thankfull to you, if u could solve my next problem.

i am trying to send an email through mail(parameters) but unable to send email on my local server... I am using IIS as a web server over windows 2000 professional. I have changed the Relay settings under the access tab in the IIS Console and now not getting any error messages but still the email is not sending..

Kindly help me out, is there any special settings needed in php.ini file or something else??

Best Regards,
F.Ahmed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 02-09-04, 12:54 PM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
You need to change the SMTP settings in php.ini.

First change:

SMTP = localhost ;

to SMTP = Name of DNS server (such as exchange.us.domain.com)

Also you will want to change the sendmail_from setting which specifies the "from" in the email.

sendmail_from = me@localhost ;

If the "from" email will be dynamic in your script you can do this in the code:

$FromUser = "fromMe@domain.com";
ini_set('sendmail_from',$FromUser);
__________________
ArecaWeb Team
Gregg Kenneth Jewell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 02-10-04, 12:15 AM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
RE:Re: Plz reply urgent....!!!

Thanks Again.. To all who put me out from the probelm by which i was stucked so badly....

I found this forum so Amazing...

Best Regards,
F.Ahmed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please review this site Urgent! jesifra Website Reviews 14 05-18-04 11:09 AM
URGENT! Shutdown Server by web URGENT! ironz Script Requests 1 03-07-04 02:29 PM
Urgent! Looking for PHP programmer Mr_Fingers PHP 2 11-02-03 01:45 AM
Urgent Help on solution phreak PHP 0 10-20-03 12:31 PM
No mail when reply is posted to a thread. phpkid HotScripts Site Bug Reports 5 06-24-03 12:45 PM


All times are GMT -5. The time now is 12:06 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.