Re: Help!

From: Date: Fri, 28 Apr 2006 13:29:18 +0000
Subject: Re: Help!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-234994@lists.php.net to get a copy of this message
Well there is an undefined constant prize somewhere.. well it's just a notice but it really looks like the problem.. Try setting error_reporting(0) and see if it runs... > process1.php only has 64 lines. > > On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote: >> >> A blade? come on :) >> >> Seems to me it's just an error in : >> /home/friend/public_html/process1.php >> line 158 that mangles up your email output. Try and fix this undefined >> constant. >> >> > Hi all - I am attempting to solve some maddening behaviour that has me >> > totally stumped and before I take a blade to my throat I thought I >> would >> > pick the brains of the group/hive/gang. >> > >> > I am working on a viral marketing application that uses multipart >> emails >> > to >> > notify entrants of their progress in the 'game'. I have a demo version >> > which >> > works fine, and the current rebranded version was also fine until the >> > client >> > asked for some changes then POWWWWW! >> > >> > I will try and define the issue as simply as I can. I am passing 11 >> > arguments to a function called sendSantaMail (don't ask) and as a >> sanity >> > check I have called mail() to let me know the values just before they >> are >> > passed in to the function. I get this result: >> > >> > "Values to be passed to sendSantaMail: >> > >> > Friend Name: Treyt >> > Friend Email: wonder@brs.com >> > Sender Name: Bull Sykes >> > Sender Email: chancer@gisat.com >> > Prize ID: 1 >> > Nominator ID: 2555004452133557e4d >> > Nominee ID: 851355445213355cc6f >> > Chain ID: CHAIN824452133561a8d" >> > >> > - this is all good and correct. I also call mail from the receiving >> > function >> > to check the actual values received by the function and I get this: >> > >> > "Values sent into sendSantaMail function: >> > >> > Friend Name: chancer@git.com >> > Friend Email: Look what you may have won! >> > Sender Name: 8 Use of undefined constant prize - assumed 'prize' >> > Sender Email: 158 >> > Sender Email: /home/friend/public_html/process1.php >> > <chancer@git.com>Prize: 1 >> > Subject: 158 >> > Nominator ID: 33238744520f5235b85 >> > Nominee ID: 96658244520f524bb19 >> > Chain ID: CHAIN84644520f525a56f" >> > >> > What is happening? I have checked the order of values being passed in >> and >> > the function prototype and they match in the correct order, there are >> no >> > default values. I have been trying to solve this for two days and am >> > particularly concerned that somewhere along the way the sender email >> value >> > becomes the script name. >> > >> > Any ideas on this black Friday? >> > >> > >> > >> > >> > >> > >> > >> > -- >> > http://www.web-buddha.co.uk >> > >> > dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, >> css) >> > >> > look out for project karma, our new venture, coming soon! >> > >> >> >> > > > -- > http://www.web-buddha.co.uk > > dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) > > look out for project karma, our new venture, coming soon! >

« previous php.general (#234994) next »