Re: [PHP] Re: error checking a null array

2005-07-31 Thread Jack Jackson
David Robley wrote: Jack Jackson wrote: hi, I have checkboxes beging dynamically generated. to seperate tasks in error checking I have added he arrays not just to $_POST but to $_POST[cb] so names (derived from question numbers) are for example: $_POST[cb][7] A dump of $_POST would theref

[PHP] Re: error checking a null array

2005-07-31 Thread David Robley
Jack Jackson wrote: > hi, > I have checkboxes beging dynamically generated. to seperate tasks in > error checking I have added he arrays not just to $_POST but to > $_POST[cb] so names (derived from question numbers) are for example: > > $_POST[cb][7] > > A dump of $_POST would therefore includ

[PHP] error checking a null array

2005-07-31 Thread Jack Jackson
hi, I have checkboxes beging dynamically generated. to seperate tasks in error checking I have added he arrays not just to $_POST but to $_POST[cb] so names (derived from question numbers) are for example: $_POST[cb][7] A dump of $_POST would therefore include something like ["cb"]=> array

Re: [PHP] Sessions Issue

2005-07-31 Thread Rasmus Lerdorf
Tom Ray [Lists] wrote: > phpinfo() says that sessions are disabled. So, between that and the fact > I get the undefined function errors when I try to use session_start() or > other session commands, I'm under the strong impression that sessions > are disabled. > > So this leads me back to my origi

Re: [PHP] Sessions Issue

2005-07-31 Thread Tom Ray [Lists]
phpinfo() says that sessions are disabled. So, between that and the fact I get the undefined function errors when I try to use session_start() or other session commands, I'm under the strong impression that sessions are disabled. So this leads me back to my original questions, can I activate s

RE: [PHP] Calendar program like on php.net

2005-07-31 Thread Roger Thomas
Quoting Jim Moseby <[EMAIL PROTECTED]>: > I'd repost the link for you, but I've already deleted it. Sorry. Look back > through the archives. > > JM > I searched for 'Jim Moseby calendar' in the general and Dev mailing list but no go. Anty clue? -- Roger -

Re: [PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Robert Cummings
On Sun, 2005-07-31 at 20:04, Sam Smith wrote: > I don't recognize this something(__SOMETHING__) format. I know what it's > doing but I don't know how it's doing it. Constants of the type __SOMETHING__ are historical constants for retrieving contextual information about the source code in which the

[PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Sam Smith
I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. The whole thing is "$fdf_dir=dirname(__FILE__).'/results';" and of course it's setting that var $fdf_dir to the path to a file. Is there something significant about the double under

Re: [PHP] Re: preg_match_all question

2005-07-31 Thread Ethilien
Actually, I meant what is an actual example of a link it will match. like text for example. Chris Bruce wrote: It matches any link with the exception of https links. On Jul 20, 2005, at 3:36 PM, Ethilien wrote: I don't see anything in this regex that would prevent https from being matched, s

[PHP] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-07-31 Thread Edwin Barrios
i'am developing a web framework SifEngine (Secure Web Inteface framework) that implement MVC applaying the security ideas from http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql. After of post my development on the internet ( i have been thinking to post on PEAR ), i made simple

[PHP] Re: Question on exec() to call a php script from a php script

2005-07-31 Thread Raj Shekhar
"Liang ZHONG" <[EMAIL PROTECTED]> writes: > If my php is configured as ( > http://liang.ns2user.info/php/info-train06.htm) an apache 2.0 filter > module. The php is invoked by apache on request of http client. Can I > do an exec() to call another php script to run in the background? If > yes, how?

[PHP] Re: Running a PHP script everyday

2005-07-31 Thread Raj Shekhar
<[EMAIL PROTECTED]> writes: > My host uses cPanel. When I setup the crontab it e-mails me back this > response: > > /bin/sh: public_html/wap/mailer/dailylist.php: /usr/bin/php > : bad interpreter: No such file or directory > > I'm assuming that it means it can't find "/user/bin/php" > > I ran a

Re: [PHP] Running a PHP script everyday [SOLVED]

2005-07-31 Thread sub
What a convoluted mess. Rather than using the shebang at the begging of the PHP file I had to put it in the cron command "/usr/local/bin/php public_html/wap/mailer/dailylist.php" It will now run. But then I had to slightly redesign the HTMLMimeMail code. I had to define some of it as functions a

Re: [PHP] Re: input type=file problem (Maybe 0T)

2005-07-31 Thread Jochem Maas
David Dorward wrote: Ryan A wrote: The problem is, if she has tried to upload a pic at the same time and screwed up on the date of birth I am unable to send back the value of the FILE box so that too get populated... I tried setting a VALUE="path/file" but that does not work. As has already

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: The purist method is what I wanted. dev'ing with E_ALL is a good thing, but turn off E_NOTICE on productions sites... IMHO in fact make sure your production sites don't output any php errors at all (even if they occur!), sure log them, but don't show - it makes it just a litt

[PHP] Re: input type=file problem (Maybe 0T)

2005-07-31 Thread David Dorward
Ryan A wrote: > The problem is, if she has tried to upload a pic at the same time and > screwed up on the date of birth I am unable > to send back the value of the FILE box so that too get populated... I > tried setting a VALUE="path/file" but that > does not work. As has already been pointed out,

[PHP] PDF < FDF < $_POST

2005-07-31 Thread Sam Smith
I need PHP fill out the form fields and prepare for download a PDF from an HTML form submission. One way would be to use a PDF with pre-configured form fields where an FDF is created from PHP. The FDF 'merges' with the PDF when the FDF is opened. I got all that from:

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? its a notice technically not an error. and its showing up because you have error reporting set to show notices. to be really purist/correct do it something like this: if (is

[PHP] Amazon Web Services 4 wrapper

2005-07-31 Thread Paul Waring
Does anyone know of an open source wrapper class for the Amazon Web Services API (version 4)? The only ones I can find are either years out of date (such as Amazon_Services in PEAR) and so no longer work, or they require me to parse the XML myself. All I want is something relatively simple that I c

Re: [PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hi, The problem is then applying the xsl transform to what is in that variable. It appears to transform everything in $xml, rather than just what is in $content. Managed to solve my own problem... Using: $content = $proc->transformToXML(DomDocument::loadXML($content)); To create an xml do

Re: [PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hi, you might start by using some braces to explicitly delineate the if and foreach block? ...personally I'm not sure exactly what your code should be doing. Putting the brackets in doesn't make any difference. That part of the code appears to work perfectly - what it does is scan through

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? Any ideas? On 31/07/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Tom Chubb wrote: > > I have changed it a bit, and don't have the old code now!!! > > I saw a post which identified a problem usi

Re: [PHP] xsltprocessor

2005-07-31 Thread Jochem Maas
Allan Jardine wrote: Hello all, I'm having a real problem with applying an xslt transform to a selected part of an xml document. I load the xml document using simplexml_load_file, and the same with the xsl file. Using the xpath function for simplexml I select a part of the xml document and

Re: [PHP] error checking woes- SOLVED

2005-07-31 Thread Jack Jackson
I did the smart thing last night: nothing. I read some PHP books and then realized that the answer to my error checking was a lot less complex, once again, than I had initially suspected. I finally ended up with: //error checking foreach($_POST as $qname=>$value) { if(empty($value)){

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Jochem Maas
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ""; as it returns true, so I changed my code to use... the fact that you are using $id suggests you have register_globals on - not recommended practice.

[PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hello all, I'm having a real problem with applying an xslt transform to a selected part of an xml document. I load the xml document using simplexml_load_file, and the same with the xsl file. Using the xpath function for simplexml I select a part of the xml document and store it in a diffe

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ""; as it returns true, so I changed my code to use... if ($_GET['id'] != "") { $article="$id.php"; if (file_exists($article)) { include $article; }

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Edward Vermillion
Tom Chubb wrote: I am trying to create my own news system and to start with I'm using static news pages until I get the db working properly. I'm using the following code: if(!isset($_GET['id'])) { $article="$id.php" if (file_exists($article)) { include $article; } else { echo "The articl

[PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
I am trying to create my own news system and to start with I'm using static news pages until I get the db working properly. I'm using the following code: I am testing using the following links... www.myurl.co.uk/index.php www.myurl.co.uk/index.php?id=1 www.myurl.co.uk/index.php?id=2 When I try