Re: [PHP] Execute a PHP script from unix (crontab)

2001-08-15 Thread Tom Henry
-auth=userid:passwd httpd://mydomain.com/protected_dir//myphpscript.php > /dev/null Hope that helps, Tom Henry Reductor wrote: > do you mean perl?!? > - Original Message - > From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>

Re: [PHP] learning resources for PHP

2012-04-18 Thread Henry Martinez
t Doyle. Covers basics nicely, and I've found myself going back to the book for reference constantly as I do my own php medium size project as a learning experience =) Also, the code samples and explanations are top notch, and you come to really understand what it is you're doing.

[PHP] PHP setup

2008-02-07 Thread Louie Henry
Good Day All I am running windows xp pro and using built in IIS as my web-server. And I installed PHP 5.2.5. I also installed MySQL 5.0.37. Now PHP is working, how ever I having problems with the configuration with MySQL. I used phpinfo(), and I notice this doc_root no value

Re: [PHP] What am I missing?

2006-03-07 Thread Joe Henry
ve path: /mobilkamera/admin/phpfunctions/addnewmanufacturer.php -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IE quirk

2006-03-17 Thread Joe Henry
ill remain > open until the page has finished loading or it is explicitly terminated. > > You can lose the session however if the the page contains a reference to > with name and id references (which may be used if the image > is referencing a dynamic image, called by javascr

Re: [PHP] where php at?

2006-03-27 Thread Joe Henry
your local machine? If you do, then that would be where you'd run the command "which php". On Linux/Mac OS X, you can ssh via a terminal. On Windows, a program like PuTTY will do the trick. Link for PuTTY download (just in case): http://www.chiark.greenend.org.uk/~sgtatham/p

Re: [PHP] private $foo

2006-03-28 Thread Joe Henry
; > throw new Exception("non existing property!"); > } > } > > $f = new Foo; > echo $f->foo,"\n"; > $f->foo = "bar"; > echo $f->foo,"\n"; Maybe I'm wrong, but I thought you couldn't use the "

Re: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Joe Henry
ed. -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] White label with PHP?

2006-03-30 Thread Joe Henry
On Wednesday 29 March 2006 9:52 am, Merlin wrote: > white label solution Can someone enlighten me as to what this means? Thanks. -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Download image in PHP

2006-04-05 Thread Joe Henry
- or how would i do this? > > > > Russ You might want to look at CURL, too. http://us2.php.net/manual/en/ref.curl.php -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple regex query

2006-04-06 Thread Joe Henry
anyone give me some insight as to where I'm going wrong? > > thanks > > -- > > Angelo I found an AJAX regex tester the other day. It'll check PCRE, Posix, and Javascript. Don't know how useful this is, but thought I'd throw it into this thread. http://rexv.org/ -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Argument passed by reference?

2006-04-06 Thread Joe Henry
e function call. Something like: function foo (&$bar) { ... } Here's a link to that section of the php manual: http://us3.php.net/manual/en/language.references.pass.php Hope that helps. -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: > $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1, Not sure if this is your problem, but those look like backticks around year instead of single quotes. Should there even be quotes there? HTH -- J

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
field in the DB isn't numeric this would be > '{$_POST['model']}' > > Dan > > ------- > http://chrome.me.uk > > > -Original Message- > From: Joe Henry [mailto:[EMAIL PROTECTED] > Sent: 07 April 2006 20:53 > To: php-gener

Re: [PHP] Argument passed by reference?

2006-04-10 Thread Joe Henry
Chris: > > Please forgive my ignorance, but when did that happen? > > tedd > -- > --- >- http://sperling.com I'm not sure when this happened. I'm fairly new to php, myself. Maybe someone else could answer that? -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] interview

2006-04-13 Thread Joe Henry
On Thursday 13 April 2006 11:13 am, Robert Cummings wrote: > On Thu, 2006-04-13 at 12:56, Wolf wrote: > > How much wood would a wood chuck chuck if a wood chuck could chuck wood?? > > Canadian, American, or "Other" woodchuck? > Leave or we shall taunt you a

Re: [PHP] PHP Post & forms

2006-04-14 Thread Joe Henry
t of JobID's and see > which ones need to be updated. > If I'm understanding what you're asking, you have an array of checkboxes whose values you want passed to you PHP via the $_POST array. The HTML form syntax would be something like: etc. Then in your PHP script, $_

Re: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Joe Henry
e, the Web 2.0 Movement was born. Web development and war in the same sentence. Killer! -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread Joe Henry
On Thursday 20 April 2006 1:18 am, Richard Lynch wrote: > Is 5 longer than 4? Size doesn't matter. At least that's what I've been told. ;) -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Preg_match() regex

2006-04-21 Thread Joe Henry
ed in > preg_match() in PHP? http://us3.php.net/manual/en/reference.pcre.pattern.syntax.php -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-26 Thread Joe Henry
ts.php HTH -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sanity checker?

2006-05-03 Thread Joe Henry
On Tuesday 02 May 2006 6:14 pm, Ezra Nugroho wrote: > Does anyone know of any tools to test the sanity of your php code? This sounds an awful lot like the Halting Problem to me, which isn't solvable. http://en.wikipedia.org/wiki/Halting_Problem -- Joe Henry www.celebrityaccess.co

Re: [PHP] WINNER

2006-05-08 Thread Joe Henry
mong all PHP-general subscribers. That would be, like, a latte or beer each. Yippee! -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Joe Henry
> > Also tried exec. I really want to take advantage of the > temporary named pipes so I don't have to worry about the temporary files > generated. I've been googling around without much help. Could anyone > plz give me some hint? Thanks a lo

Re: [PHP] remove html tags in text?

2006-05-11 Thread Joe Henry
On Thursday 11 May 2006 9:51 am, Bing Du wrote: > Any functions that can help remove all the HTML tags in it? What about > just removing selected tags, like ? Looks like strip_tags() will do the trick for you: http://us3.php.net/manual/en/function.strip-tags.php -- Joe

Re: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Joe Henry
On Thursday 11 May 2006 10:08 am, Jim Moseby wrote: > In dog we trust Am partial to "Dog is my co-pilot" -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paged Results Set in MySQL DB with one result

2006-05-12 Thread Joe Henry
=> (first page loads but next/previous buttons produce no results) Blank: none that I tested Don't have Firefox on the Mac box. I just clicked the next/previous buttons a few times, so take it for what's it's worth. Thanks to you Tedd. Made me realize I

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Browser and FTP client act as if the image files do not exist, even though the directory contents can be views via FTP... What did I do? Bryan On Thu, 26 Feb 2004 17:56:25 -0600, Bryan Henry <[EMAIL PROTECTED]> wrote: Hello all, I wrote a small script to rename a few thousand images

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
files, especially if you ran the script as some privileged user like root. chmod or chown can be used to changed these. Mike Bryan Henry wrote: Browser and FTP client act as if the image files do not exist, even though the directory contents can be views via FTP... What did I do? Bryan On T

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Here is the script I used to rename images. foreach ($config as $line) { if ( $line == "" ) next($config); elseif ( $line == "\n" ) next($config); elseif ( strstr($line,"#")) next($config); else { $value = split(Chr(9),$line); $imgs[$value[0]] = $value[1];

Re: [PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Chmod and file_exists report that the file does not exist, even though I can view the files via the FTP client. bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
Fri, 27 Feb 2004 00:01:47 +, Michael Nolan <[EMAIL PROTECTED]> wrote: Check the permissions and ownership of the files, especially if you ran the script as some privileged user like root. chmod or chown can be used to changed these. Mike Bryan Henry wrote: Browser and FTP client act

[PHP] renamed images are now corrupt...

2004-02-26 Thread Bryan Henry
images can be downloaded as binary files with no problem.. I now have over 3000 images I cannot download or view on our website. What about rename caused this? Thank you, Bryan Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Loosing $_SESSION vars somewhere...

2004-03-11 Thread Mark Henry
ON values on each page. If a value suddenly disappears then I pop an error to the user and write the event to a text file on the server. This is okay as a stop-gap, but I need to track down what's causing the problem in the first place. Any ideas? tia Mark H -- Mark Henry Enterpris

[PHP] Re: Can't execute external program

2005-11-22 Thread Henry Castillo
That was on of the first things I checked: safe mode is set to off Any ideas... Henry Voip tech said the following on 11/20/2005 10:31 PM: > Hello, > I cannot get exec(), system() or passthru() to run an extenal program. > From the command line it runs perfectly: > I'm g

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
is the php I've created, fairly simple: On 11/22/05, n.g. <[EMAIL PROTECTED]> wrote: > > is /var/www/html your web root dir ? > maybe its the plobrem. > > On 11/23/05, Henry Castillo <[EMAIL PROTECTED]> wrote: > > That was on of the first things I checked: &

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
I added 2>&1 but still nothing... as a matter of fact it won't execute anything. I put echo exec('asdf'); and nothing happend either ( i should've echoed an error) However it'll execute some other commands echo exec('ls -lart'); will output correctly. Any ohter Idea? Henry

[PHP] Re: Can't execute external program

2005-11-27 Thread Henry Castillo
Hi, Thank you, after a frustrating month the problem was solved. My system had SElinux blocking that.. no php, apache or file permissions. Something else to keep in mind. Henry On 11/24/05, n.g. <[EMAIL PROTECTED]> wrote: > put the executable into another directory rather than DOC_ROOT

[PHP] operators

2005-12-28 Thread Henry Krinkle
I have some experience with PHP, but not with these operators: -> => Can someone explain how they are working in this snippet from Yahoo's search API foreach($xml->Result[$i] as $key=>$value) I don't see anything about them in the "Array Operators" documentation.. Thanks

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Joe Henry
The input name must include [] (brackets) to let php know it's an array. Ex: input type=text name=xname[] value="3303" On Feb 1, 2006, at 9:07 AM, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname va

Re: [PHP] Getting The Document Root

2006-02-02 Thread Joe Henry
you could try pathinfo() http://us3.php.net/pathinfo On Feb 2, 2006, at 8:59 AM, Jeremy Privett wrote: John Nichel wrote: $_SERVER['DOCUMENT_ROOT'] http://www.php.net/manual/en/ reserved.variables.php#reserved.variables.server Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] c

Re: [PHP] LIMIT?

2006-02-06 Thread Joe Henry
On Feb 6, 2006, at 12:11 PM, James Kaufman wrote: Answers that show SQL commands that apply to specific databases annoy me. Not everyone uses MySQL. I've worked with several databases that don't support a LIMIT command. At least mention the database engine you are referencing. Response like th

[PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Henry Grech-Cini
alue ) -->the variables value<--" Exactly as required!! I hope that you can help, since I am getting frustrated after 4 days trying to fix this problem. Henry -- Sorry about the fo

[PHP] where do you recommend I put useful code for people to use?

2003-03-03 Thread Henry Grech-Cini
Thing is that although its meant for use with PHP it is javascript so I'm not sure where to post it. Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problems posting

2003-03-03 Thread Henry Grech-Cini
Did you send this post at 17:17 and did it arrive at 17:22? "Niels Andersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When I post something here, it first appears several hours later. How can it > be so? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Henry Grech-Cini
clarification since my actual app still doesn't work! Henry "Kirk Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In the first file, replace this line: > > $HTTP_SESSION_VARS['variable']="the variables value"; > > wi

[PHP] processing pop3 inbox

2003-03-03 Thread Henry Grech-Cini
Hi All, I need to process the inbox. Any pointers, I don't use Perl and would like to use PHP. Also I do not have PHP compiled for a comand line so I'll probably use a crontab and unix text based web browser to invoke the PHP page to process the inbox. TIA Any help much appreciat

[PHP] Re: PHP shopping carts

2003-03-03 Thread Henry Grech-Cini
Hi, Please let me know if you find one thats any good? Henry "Dan Sabo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > What I'm looking for is either an open source or commercial solution which > is supported by either commercial or OS a

[PHP] using preg_match to extract information from pop3

2003-03-04 Thread Henry Grech-Cini
Hi All, I know that you will probably tell me to RTFM but I have (several times) and I cannot quite understand it! So failing that I turn to you for help. I know that this is very trivial but please humour me. I have a line containing "From: Henry< henry @ .com >" (p

[PHP] Re: using preg_match to extract information from pop3

2003-03-04 Thread Henry Grech-Cini
Hi All, This has to be easy to do using preg_match! Can no one spare a minute of their time? Henry "Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > I know that you will probably tell me to RTFM but I have (several ti

[PHP] Re: using preg_match to extract information from pop3

2003-03-04 Thread Henry Grech-Cini
I tried if(preg_match("/^From:(.*)$/", $headers[$line], $info)) { echo "["; print_r($info); echo "]"; echo "",HtmlSpecialChars($headers[$line]),""; } But all I get is [Array ( [0] => From: [1] => ) ] From: Hen

[PHP] Re: using preg_match to extract information from pop3

2003-03-04 Thread Henry Grech-Cini
Found a solution if (preg_match("/Form:[ ]*(.+)[ ]*<(.+)>/", "Form:Henry <[EMAIL PROTECTED]>", $info)) { print_r($info); } else print "Pattern not found"; but I'm refining it so that it doesn't need the last bit, any more pointers appreciat

[PHP] circumventing SAFE MODE Restriction

2003-04-03 Thread Henry Grech-Cini
ke this. Untitled Document handle."\n"; echo "Path: ".$d->path."\n"; while (false !== ($entry = $d->read())) { echo $entry."\n"; } $d->close(); ?> Any ideas about how to get round this other than making a .php file to call in the

[PHP] Newline in fputs

2002-05-16 Thread Henry Grech-Cini
e($file_name)."&file_size=$file_size"; echo "download it"; The download_it.php file looks as follows: Appart from the fact that the Content-Disposition appears not to be working under IE6 since the file name is not correct. The downloaded file does not contain Windows

[PHP] Re: fsockopen

2002-05-16 Thread Henry Grech-Cini
I'm confused! Did you want to make a new post for this comment or a reply to another post. Or does it in some way relate to my question. On my newsgroup browser it appears as if this post is in the wrong place! In answer to my post on "Newlines in fputs" Thanks for responding

[PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Henry Grech-Cini
Hi All, Is this possible? I really don't want to go back to perl5 to setup an autoresponder system! Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Running a PHP script on an automated regular schedule

2004-07-12 Thread Henry Grech-Cini
You may also want to look at wget as a way of invoking your PHP script if command line support is not available. Henry "I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > I am wanting to use a PHP script to check on an hourly/daily basis on

[PHP] regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
Hi All, function extractFieldsets($subject) { $regexp="/]*)>[^(<\/fieldset>)]*/i"; $replacement; $matches=array(); preg_match_all($regexp, $subject, $matches); return ($matches); } $result=extractFieldsets('testcontent of helloblahgoodbye'); echo ""; foreach($result as $key=>$str

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Henry Grech-Cini
Hi All, I don't actually think regexp is fault. But if anyone could explain this or give me some example code that will extract the attributes and data between a "fieldset" tag pair I would be appreciated. Henry "Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in mess

[PHP] Re: regexp appears to be faulty (DONT actually think so)

2004-02-24 Thread Henry Grech-Cini
dbye] as we can see the second fieldset is included in that which is between the fieldset tags! :-( Thanks everyone for you help including Mike (with the post out of chain). Henry "Sven" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Henry G

Re: [PHP] regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
Thanks for that Mike, I was getting lost. Is there anyway to say Any characters excluding the sequence so I could do something like /]*)>(.* whilst not <\/fieldset>)<\/fieldset>/i Or alternatively is there a switch to say get the smallest sequence Thanks Henry &quo

[PHP] Re: regexp appears to be faulty!?

2004-02-24 Thread Henry Grech-Cini
I came accross this link http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html "> http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html Do we all agree or should I keep trying? Henry -- PHP General Mailing List (http://www.php.

Re: [PHP] regexp appears to be faulty!?

2004-02-25 Thread Henry Grech-Cini
Absolutely brilliant, also I'm using the /s modifier to process newlines as well. Great Thanks to everybody for their help. "Jome" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Henry Grech-Cini" <[EMAIL PROTECTED]> skrev i meddelan

[PHP] How to make sure a redirect works

2004-03-10 Thread Henry Grech-Cini
="<?php echo $url[$index]; ?>"; window.location="<?php echo $url[$index]; ?>"; // for NS <= 2.x no support for replace // --> Forward Page Your browser appears not to support any form of automatic redirect. Pleaseclick here to be redirected to the w

[PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Henry Grech-Cini
this: "; break; case 2: echo 'enter you telephone number:"; break; default: echo "oops, no form ID"; break; } ?> you could imagine calling this as follow: http://www.yoursite.com/form.php?formid=1 or http://www.yoursite.com/f

[PHP] Re: Warning: Cannot modify header information - headers already sent by (output sta

2004-03-10 Thread Henry Grech-Cini
Hi The problem is that the header requires that no output be generated by your script before it is invoked. It makes this clear in the error message when it indicates that on line 6 you produced output! Try this instead (although the code seems a little confused). http://www.index.php";); }

Re: [PHP] How to make sure a redirect works

2004-03-11 Thread Henry Grech-Cini
e by 1,2&3 it should work with all (most) browsers Thanks for all the help Henry. "Christophe Chisogne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Vincent Jansen wrote: > >>If you output a location header then I don't know what th

[PHP] Re: Ticketing system

2004-03-23 Thread Henry Grech-Cini
Hi I am using deskpro. see http://www.deskpro.com It's written in PHP, but it is not cheap. From my brief experience I would have to say however that it certainly seems to be worth it. Such a sophisticated ticketing system would take a very significant amount of time to build from scratch. HTH

[PHP] Checking if a website is up?

2004-03-30 Thread Henry Grech-Cini
y and thats whats even more confusing). Suggestions? Henry I tried URL's as follows: http://www.microsoft.com/ http://www.microsoft.com function url_reachable( $link ) { $url_parts = @parse_url( $link ); if ( $url_parts["scheme"]!="http" ) return

[PHP] callback function via preg_replace_callback

2003-06-08 Thread Henry H. Tan-Tenn
Hi, I have Function A containing a preg_replace_callback calling Function B. The code works quite nicely. Now, is there a way for the callback function (B) to receive *additional* arguments (from A), so that, for example, it may optionally perform additional tasks? If not, is there a way for B to

<    1   2