[PHP] Where can I get the Printer extension?

2007-01-17 Thread Chuck Anderson
It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. How do get a copy of php_printer.dll for Php4.4.1 for Windows? -- * Chuck Anderson • Boulder, CO http://www.CycleTourist.com **

[PHP] Storing values in arrays

2007-01-17 Thread Ryan A
Hi, I think its easier to explain what I want to do.. so here goes: I want to store values in arrays for one minute and then write them to file. For example, everytime someone logs in I want their username to be in an array 1 or 100 or X people may login in 60 seconds...but it should only wr

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: > Beauford wrote: > > Further to my previous email, there is something weird going on here. I just > > tried using this: > > > > if (!ereg('^[A-Za-z0-9]', $strvalue)) { > > return "error"; > > } > > stop using bleeding ereg*()

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > Hi, > > I think its easier to explain what I want to do.. so here goes: > I want to store values in arrays for one minute and then write them to file. > > For example, everytime someone logs in I want their username to be in an > array > 1 o

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-16 20:42:48 +0100: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: > >>Im using DomDocument currently and i realy want to prevent it from adding > >>the !DOCTYPE and mabye even and etc.. > >>Is this possible and how? > > > >Doesn't DOMDo

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > Hi, > > I think its easier to explain what I want to do.. so here goes: > I want to store values in arrays for one minute and then write them to file. > > For example, everytime someone logs in I want

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: >> Beauford wrote: >>> Further to my previous email, there is something weird going on here. I just >>> tried using this: >>> >>> if (!ereg('^[A-Za-z0-9]', $strvalue)) { >>> return "error"; >>> } >> stop

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 02:40 -0800, Ryan A wrote: > > > Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > > Hi, > > > > I think its easier to explain what I want to do.. so here > goes: > > I want to sto

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: > >>if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { > > > >> (ps the above is a crappy regexp for real world use imho, but it serves > >> the purpose of example) > > > > I

[PHP] better protection?

2007-01-17 Thread Ross
If I protect folders via cpanel (HTTP auth) is this more secure than using php code? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: better protection?

2007-01-17 Thread Colin Guthrie
Ross wrote: > If I protect folders via cpanel (HTTP auth) is this more secure than using > php code? Logically, it /could/ be more secure as it prevents access to any PHP code and thus any vulns in PHP itself. In practice tho', the login code and the small part of cpanel that the un-authed user

[PHP] protection 2

2007-01-17 Thread Ross
Thanks Colin. Think I will do both. I can timeout the session with PHP. Does adding mysql_real_escape_string make this secure to injection or should I be doing something else? if ($_POST['submitted']){ $username = mysql_real_escape_string( $_POST['username'] ); $pass = mysql_real_escape_string

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Rob Richards
Mathijs van Veluw wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: Im using DomDocument currently and i realy want to prevent it from adding the !DOCTYPE and mabye even and etc.. Is this possible and how? Doesn't DOMDocument *require* DTD? I thought it's eith

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 07:08:44 -0500: > Mathijs van Veluw wrote: > >Roman Neuhauser wrote: > >># [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: > >>>Im using DomDocument currently and i realy want to prevent it from > >>>adding the !DOCTYPE and mabye even and etc.. > >>>Is this possib

[PHP] Php coding help - Newbie question

2007-01-17 Thread Ramdas
Hi Group, A very newbie question. Might be discussed earlier, please forgive. I am having a site in PHP ( not very great design ) which I need to convert/modify to use functions. Such the code for connecting / binding to Ldap is not repeated & scripts are more readable. The site deals with modi

[PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Mathijs
Mathijs van Veluw wrote: Hello there, Im using DomDocument currently and i realy want to prevent it from adding the !DOCTYPE and mabye even and etc.. Is this possible and how? Thx in advance. Mathijs. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 000703-1, 01/15/2007

Re: [PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Miguel J. Jiménez
El Wed, 17 Jan 2007 13:53:36 +0100 Mathijs <[EMAIL PROTECTED]> escribió: sByTagName() etc.. > > Is there mabye an other way to parse this HTML and replace/modify its > atttributes? > > Thx in advanced. > Have you try preg_replace? -- Miguel J. Jiménez Área de Internet/XSL [EMAIL PROTECTED]

Re: [PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Mathijs
Miguel J. Jiménez wrote: El Wed, 17 Jan 2007 13:53:36 +0100 Mathijs <[EMAIL PROTECTED]> escribió: sByTagName() etc.. Is there mabye an other way to parse this HTML and replace/modify its atttributes? Thx in advanced. Have you try preg_replace? Tryed to, but it went to complex. -- PHP

[PHP] web form data to arrays?

2007-01-17 Thread William Stokes
Hello, I have a script which retrieves rows from DB and prints them to a user editable form to a web page. I don't know how to print the form objects so that all editable fields are put to arrays for updating them to DB. I have tried to create arrays sarjanID[] etc. but havent got it to work...

[PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Rob Richards
Mathijs wrote: I have some HTML content: Testing ØøÅå_^{}\[~]|[EMAIL PROTECTED]"#¤%&'()*+,ÖÑܧ¿äöñüà-./:;<=>?¡Ä Now i need to parse the HTML by getting all the class and id attributes and replace them with something else, and after that return the modified HTML.

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
On sze, 2007-01-17 at 15:23 +0200, William Stokes wrote: > Hello, > > I have a script which retrieves rows from DB and prints them to a user > editable form to a web page. I don't know how to print the form objects so > that all editable fields are put to arrays for updating them to DB. I have

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jason Pruim
On Jan 16, 2007, at 4:15 PM, Paul Novitski wrote: At 1/16/2007 12:54 PM, Jason Pruim wrote: First off, thanks to everyone who helped me get started with a thumbnail gallery that would display info you could just copy/paste into a weblog (Or any webpage) and have the picture display. I am movi

Re: [PHP] web form data to arrays?

2007-01-17 Thread William Stokes
But if the form is printed with foreach don't I need some type of counter? Otherwise the form that is posted will contain only the data of the last iteration of the loop that wrote the original form. right? -Will ""Németh Zoltán"" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > On

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
On sze, 2007-01-17 at 16:13 +0200, William Stokes wrote: > But if the form is printed with foreach don't I need some type of counter? > Otherwise the form that is posted will contain only the data of the last > iteration of the loop that wrote the original form. right? > > -Will > so you want

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
BTW: always reply to the list unless asked otherwise. Jason Pruim wrote: > you don't know what a class is or how to use one do you? (correct me if I'm wrong) the idea of my particular class is that it is used in the *script* that serves all your resampled images. something *like* (it an overly

Re: [PHP] protection 2

2007-01-17 Thread Jim Lucas
Ross wrote: Thanks Colin. Think I will do both. I can timeout the session with PHP. Does adding mysql_real_escape_string make this secure to injection or should I be doing something else? if ($_POST['submitted']){ This should be if ( isset($_POST['submitted']) ) { This way it doesn't gi

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
> Hey! > Thanks for replying. > > Instead of CRON i was thinking of having a file created and check the > creation time everytime someone logged in... if its less than 1 min > then don't do anything, if 1 min or more old... write file... But then it wouldn't be written to disk every one minute

Re: [PHP] Php coding help - Newbie question

2007-01-17 Thread Jim Lucas
Ramdas wrote: Hi Group, A very newbie question. Might be discussed earlier, please forgive. I am having a site in PHP ( not very great design ) which I need to convert/modify to use functions. Such the code for connecting / binding to Ldap is not repeated & scripts are more readable. The site

Re: [PHP] Php coding help - Newbie question

2007-01-17 Thread Jochem Maas
Ramdas wrote: > Hi Group, > > A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that you admit to realising the info *might* be out there already) > > I am having a site in PHP ( not

Re: [PHP] md5

2007-01-17 Thread Miguel J. Jiménez
El Wed, 17 Jan 2007 15:27:27 - "Ross" <[EMAIL PROTECTED]> escribió: > > Hi, > > Does md5 really offer much in terms of protection? > > The algorithm is really well known. > > I would like to hear your thoughts and poosible alternatives (mcrypt?) > > R. > It works for me. Althought is p

Re: [PHP] md5

2007-01-17 Thread tg-php
MD5 is a hasing algorithm.. one-way.. really only good for checking known values and keeping them 'private', like storing passwords in a database. That way, if someone breaks into your database, they don't get the passwords, only the non-reversible MD5 hashes of the passwords. To check a user

Re: [PHP] md5

2007-01-17 Thread Jochem Maas
Ross wrote: > Hi, > > Does md5 really offer much in terms of protection? can you STFW? http://search.yahoo.com/search;_ylt=A0oGkkQsQ65FTlkBrTVXNyoA?p=does+md5+offer+any+protection&ei=UTF-8&fr=moz2&x=wrt > > The algorithm is really well known. do you work for microsoft? strength of a crypto a

Re: [PHP] md5

2007-01-17 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: MD5 is a hasing algorithm.. one-way.. really only good for checking known values and keeping them 'private', like storing passwords in a database. That way, if someone breaks into your database, they don't get the passwords, only the non-reversible MD5 hashes of the

Re: [PHP] web form data to arrays?

2007-01-17 Thread Mike Smith
*note the []. -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] md5

2007-01-17 Thread Jon Anderson
Be warned, crypto isn't a strength of mine, so any/all of this may be total BS. Ross wrote: Does md5 really offer much in terms of protection? Depends on what you're doing with it. AFAIK, md5's weakness comes in the form of collisions - it has been cryptanalysed to the point where it is no

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { (ps the above is a crappy regexp for real world use imho, but it serves the purpose of

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 11:41:54 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2007-01-17 01:42:09 +0100: if (!preg_match("#^[A-Z0-9]+\$#i", $s)) { (ps the above is a crappy regexp for real world use imho, but it serves the purpose of

Re: [PHP] web form data to arrays?

2007-01-17 Thread Németh Zoltán
And how does it work? does it create a sub-array of $_POST? And is it documented somewhere in the manual? Greets Zoltán Németh On sze, 2007-01-17 at 10:54 -0500, Mike Smith wrote: > > > *note the []. > > -- > Mike > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] md5

2007-01-17 Thread tg-php
Still.. that has nothing to do with how well known MD5 is (so I stand by my point).All these databases are is a giant list of pre-MD5'd strings. Brute force stuff, no magic behind it that allows for reversing MD5. You could technically do that with just about any crypto or hashing system.

Re: [PHP] md5

2007-01-17 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: Still.. that has nothing to do with how well known MD5 is (so I stand by my point). Was not trying to refute your point. Just pointing something out with regards to the "security" of MD5 hashes, and what being "well known" or at least popular does for you. What you

Re: [PHP] I lied, another question / problem

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100: > Roman Neuhauser wrote: > > re_format(7) on FreeBSD: > > > > A bracket expression is a list of characters enclosed in `[]'. > > (...) > > If two characters in the list are separated by `-', this is > > shorthand for the full ran

Re: [PHP] web form data to arrays?

2007-01-17 Thread Mike Smith
Sorry about that...yes it creates an array so... would create an array accessible from $_POST['names'] foreach($_POST['names'] AS $name){ echo $name; } ...produces: LarryCurlyMoe On 1/17/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: And how does it work? does it create a sub-array of $_PO

Re: [PHP] web form data to arrays?

2007-01-17 Thread Jochem Maas
Németh Zoltán wrote: > And how does it work? does it create a sub-array of $_POST? test it and find out: echo ''; var_dump($_POST); echo ''; > And is it documented somewhere in the manual? more than likely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] One last try at this!

2007-01-17 Thread Beauford
I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. Below are 3 validation routines. When I first enter the page 'Optional' is displayed for all of them as it should be

Re: [PHP] md5

2007-01-17 Thread tedd
At 10:40 AM -0500 1/17/07, <[EMAIL PROTECTED]> wrote: MD5 is a hasing algorithm.. one-way.. really only good for checking known values and keeping them 'private', like storing passwords in a database. That way, if someone breaks into your database, they don't get the passwords, only the non-r

Re: [PHP] One last try at this!

2007-01-17 Thread Eric Butera
On 1/17/07, Beauford <[EMAIL PROTECTED]> wrote: I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. This isn't a very nice intro into asking a question on a mailing l

Re: [PHP] Storing values in arrays

2007-01-17 Thread tedd
At 7:15 AM -0800 1/17/07, Ryan A wrote: True, but thats not the most important part... I guess I wrote it wrong, I meant that it should not write to disk before 1 minute... anyway... about the "array saving" any ideas? Thanks! R Why? tedd -- --- http://sperling.com http://ancientstones.

Re: [PHP] One last try at this!

2007-01-17 Thread Jim Lucas
Beauford wrote: I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. Below are 3 validation routines. When I first enter the page 'Optional' is displayed for all of th

Re: [PHP] One last try at this!

2007-01-17 Thread Simon Forster
On 17 Jan 2007, at 17:38, Beauford wrote: if(empty($orgname)) { $formerror['orgname'] = "Optional"; } elseif($result = ValidateString($orgname, "2")) { $formerror ['orgname'] = $result; } if(empty($website)) { $formerror['website'] = "Optional"; } if($result = ValidateString($website

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Curt Zirzow
On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Curt Zirzow wrote: > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> ... >> if ($cacheState) { >> $headers = getallheaders(); >> if (isset($headers['If-Modified-Since']) && >> ($headers['If-Modified-Since'] =

Re: [PHP] md5

2007-01-17 Thread Oscar Gosdinski
Instead of hashing the password, i prefer to use the following procedure: $user = ... $password = ... $hash = md5($user . $password); Using this method, it will be very dificult guess the password if you get the hash because it depends also on the user name. When you are going to login a user y

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 07:15 -0800, Ryan A wrote: > > Hey! > > Thanks for replying. > > > > Instead of CRON i was thinking of having a file created and check the > > creation time everytime someone logged in... if its less than 1 min > > then don't do anything, if 1 min or more old... write file..

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 13:14 -0500, tedd wrote: > At 7:15 AM -0800 1/17/07, Ryan A wrote: > >True, but thats not the most important part... I guess I wrote it > >wrong, I meant that it should not write to disk before 1 minute... > >anyway... about the "array saving" any ideas? > > > > Why? Why no

Re: [PHP] md5

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 13:51 -0500, Oscar Gosdinski wrote: > Instead of hashing the password, i prefer to use the following procedure: > > $user = ... > $password = ... > $hash = md5($user . $password); > > Using this method, it will be very dificult guess the password if you > get the hash becaus

RE: [PHP] One last try at this!

2007-01-17 Thread Beauford
Your right. I have been sitting here at this computer for 3 days straight with all the various problems, and I missed this. I need a break, I need a KitKat. Thanks to the list for all the help over the last couple of days. I'm going to watch CSI and get away from this. > Take a little closer

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Nuno Oliveira
Stut wrote: Redirecting using a Location header is not the only thing you can do with the header() function. It will never end processing of the script no matter what you pass to it. The example on the manual page for the header() function says as much (http://php.net/header), you read that

Re: [PHP] web form data to arrays?

2007-01-17 Thread William Stokes
I got it working like this: $counter = 0; foreach ($arr as $value) { //make the form ... print "\n"; $counter++; } Now I have array $ArrUpdate which contains sub-arrays with the update data. This can now be processed with another foreach loop -Will "Jochem Maas" <[EMAIL PROTECTED]> kirj

RE: [PHP] One last try at this!

2007-01-17 Thread Jay Blanchard
[snip] if(empty($orgname)) { $formerror['orgname'] = "Optional"; } elseif($result = ValidateString($orgname, "2")) { $formerror['orgname'] = $result; } if(empty($website)) { $formerror['website'] = "Optional"; } if($result = ValidateString($website, "2")) { $formerror['website'] = $result;

Re: [PHP] One last try at this!

2007-01-17 Thread Jim Lucas
Jay Blanchard wrote: [snip] if(empty($orgname)) { $formerror['orgname'] = "Optional"; } elseif($result = ValidateString($orgname, "2")) { $formerror['orgname'] = $result; } if(empty($website)) { $formerror['website'] = "Optional"; } if($result = ValidateString($website, "2")) { $formerro

Re: [PHP] web form data to arrays?

2007-01-17 Thread Jim Lucas
William Stokes wrote: Hello, I have a script which retrieves rows from DB and prints them to a user editable form to a web page. I don't know how to print the form objects so that all editable fields are put to arrays for updating them to DB. I have tried to create arrays sarjanID[] etc. but

RE: [PHP] One last try at this!

2007-01-17 Thread Jay Blanchard
[snip] > The second condition of each if statement does not contain equality > checking, it sets the $result to ValidateString($event, "2"). That > should be > if($result == ValidateString($event, "2")) or > if($result === ValidateString($event, "2")) > > What if the intension was to fail if the

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 19:06:16 +: > Stut wrote: > >Redirecting using a Location header is not the only thing you can do > >with the header() function. It will never end processing of the script > >no matter what you pass to it. The example on the manual page for the > >header() fu

[PHP] Getting domain out of a URL

2007-01-17 Thread Andre Dubuc
Hi, I receive posts from an open moderated forum that need to be filtered for urls. I've successfully managed to trap any entires that use 'http://' 'www.' with the standard '.com' '.org', '.net' endings. What I need to do is to strip the prefix part ('http:// or http://www. or 'www') and suff

RE: [PHP] Getting domain out of a URL

2007-01-17 Thread Jay Blanchard
[snip] I receive posts from an open moderated forum that need to be filtered for urls. I've successfully managed to trap any entires that use 'http://' 'www.' with the standard '.com' '.org', '.net' endings. What I need to do is to strip the prefix part ('http:// or http://www. or 'www') and su

[PHP] dynamic lists

2007-01-17 Thread Don
I'm a noob. My question is whether PHP can produce dynamic drop lists and if so what the tags are so that I can look them up. By dynamic drop list I mean the type where the options contained in the subsequent list depend on what was picked in the previous list without clicking submit.

RE: [PHP] dynamic lists

2007-01-17 Thread Jay Blanchard
[snip] By dynamic drop list I mean the type where the options contained in the subsequent list depend on what was picked in the previous list without clicking submit. [/snip] PHP is server side, you need to do this with AJAX or Javascript -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] One last try at this!

2007-01-17 Thread Jim Lucas
Jay Blanchard wrote: [snip] The second condition of each if statement does not contain equality checking, it sets the $result to ValidateString($event, "2"). That should be if($result == ValidateString($event, "2")) or if($result === ValidateString($event, "2")) What if the intension

RE: [PHP] dynamic lists

2007-01-17 Thread Brad Fuller
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 17, 2007 4:05 PM > To: Don; php-general@lists.php.net > Subject: RE: [PHP] dynamic lists > > [snip] > By dynamic drop list I mean the type where the options > contained in the subsequent list

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Jochem Maas
Curt Zirzow wrote: > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Curt Zirzow wrote: >> > On 1/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> >> ... >> >> if ($cacheState) { >> >> $headers = getallheaders(); >> >> if (isset($headers['If-Modified-Since']) &

Re: [PHP] dynamic lists

2007-01-17 Thread Kevin Murphy
On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 4:05 PM To: Don; php-general@lists.php.net Subject: RE: [PHP] dynamic lists [snip] By dynamic drop list I mean the type where the options

Re: [PHP] dynamic lists

2007-01-17 Thread Jochem Maas
Kevin Murphy wrote: > > > On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: > >>> -Original Message- >>> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, January 17, 2007 4:05 PM >>> To: Don; php-general@lists.php.net >>> Subject: RE: [PHP] dynamic lists >>> >>> [snip] >>

Re: [PHP] dynamic lists

2007-01-17 Thread Kevin Murphy
On Jan 17, 2007, at 2:20 PM, Jochem Maas wrote: Kevin Murphy wrote: On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 4:05 PM To: Don; php-general@lists.php.net Subject: RE: [PHP] dyna

Re: [PHP] dynamic lists

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 23:20:23 +0100: > Kevin Murphy wrote: > > On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: > >> #1) Submit the form (to itself) when a user chooses an option from the > >> first list (using onChange=form.submit()) then with PHP query the > >> database for the second

Re: [PHP] Getting domain out of a URL

2007-01-17 Thread Andre Dubuc
On Wednesday 17 January 2007 03:35 pm, Jay Blanchard wrote: > [snip] > I receive posts from an open moderated forum that need to be filtered > for > urls. I've successfully managed to trap any entires that use 'http://' > 'www.' > with the standard '.com' '.org', '.net' endings. > > What I need to

[PHP] Script to generate a site thumbnails

2007-01-17 Thread Pablo L. de Miranda
Hi People, I'm needing a script that generate a site thumbnail from a given URL. Anybody can help me? Thanks, -- Pablo Lacerda de Miranda Graduando Sistemas de Informação Universidade Estadual de Montes Claros [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Getting domain out of a URL

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 17:53:09 -0500: > On Wednesday 17 January 2007 03:35 pm, Jay Blanchard wrote: > > [snip] > > I receive posts from an open moderated forum that need to be filtered > > for urls. I've successfully managed to trap any entires that use > > 'http://' 'www.' with the stan

RE: [PHP] One last try at this!

2007-01-17 Thread Beauford
This is what I am trying to do, and for the most part it works, but it also may be causing some of my other problems. If $event contains invalid characters, I am returning a string that says "Invalid Characters" So $result now contains the value 'Invalid Characters'. Then $formerror['event'] = $re

RE: [PHP] Getting domain out of a URL

2007-01-17 Thread Jay Blanchard
[snip] Something along the lines of: Part of my problem, I'm beginning to realize, is that the array '$boom[1]' contains only one element. Is there a similar string function I could use that would accomplish what I need? [/snip] Why not use explode with the period (.) as the delimiter? $url

Re: [PHP] Where can I get the Printer extension?

2007-01-17 Thread Chris
Chuck Anderson wrote: It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. You didn't search very hard. On this page: http://php.net/printer Read the bit under "Installation". "This PECL extension is not bun

Re: [PHP] Where can I get the Printer extension?

2007-01-17 Thread Chuck Anderson
Chris wrote: Chuck Anderson wrote: It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. You didn't search very hard. On this page: http://php.net/printer Read the bit under "Installation". "Thi

Re: [PHP] dynamic lists

2007-01-17 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-17 23:20:23 +0100: >> Kevin Murphy wrote: >>> On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote: #1) Submit the form (to itself) when a user chooses an option from the first list (using onChange=form.submit()) then with PHP query the >>>

Re: [PHP] Where can I get the Printer extension?

2007-01-17 Thread Chris
Chuck Anderson wrote: Chris wrote: Chuck Anderson wrote: It thought it would be bundled with my Windows version pf Php 4.4.1, but it is not. I've searched for it and can't find it at php.net. You didn't search very hard. On this page: http://php.net/printer Read the bit under

Re: [PHP] Getting domain out of a URL {SOLVED]

2007-01-17 Thread Andre Dubuc
On Wednesday 17 January 2007 06:16 pm, Jay Blanchard wrote: > [snip] > Why not use explode with the period (.) as the delimiter? > > $url = ranchy.stuff.com and other junk"; > $boom = explode(".", $url); > print_r($boom); > > $boom is now an array containing 'ranchy', 'stuff', 'com and other junk'

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Nuno Vaz Oliveira
Roman wrote: # [EMAIL PROTECTED] / 2007-01-17 19:06:16 +: Stut wrote: Redirecting using a Location header is not the only thing you can do with the header() function. It will never end processing of the script no matter what you pass to it. The example on the manual page for the header() f

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 00:06:27 +: > >Roman wrote: > >Also, the header() call you provided in the original post was a > >violation of HTTP. Knowing the programming language is just one of > >your responsibilities IMNSHO. The manual for HTTP users (you!) is at > >ftp://ftp.rfc-editor.

Re: [PHP] One last try at this!

2007-01-17 Thread Jim Lucas
Beauford wrote: This is what I am trying to do, and for the most part it works, but it also may be causing some of my other problems. If $event contains invalid characters, I am returning a string that says "Invalid Characters" So $result now contains the value 'Invalid Characters'. Then $former

Re: [PHP] One last try at this!

2007-01-17 Thread Jim Lucas
Jim Lucas wrote: Beauford wrote: This is what I am trying to do, and for the most part it works, but it also may be causing some of my other problems. If $event contains invalid characters, I am returning a string that says "Invalid Characters" So $result now contains the value 'Invalid Chara

Re: [PHP] Storing values in arrays

2007-01-17 Thread Nicholas Yim
Hello Ryan A, PHP has not application var, and not multi thread the only way is database, share memory. Best regards, === At 2007-01-17, 16:39:31 you wrote: === >Hi, > >I think its easier to explain what I want to do.. so here goes: >I want to store values in arrays for one mi

[PHP] is there another way ??

2007-01-17 Thread Ali Nasser
can you please check these out and tell me if there another way without installing externsions?? http://groups-beta.google.com/group/cpdevgroup/web/how-easy-is-these-project?&_done=%2Fgroup%2Fcpdevgroup%2Fweb%2Fhow-easy-is-these-project%3Fmsg%3Dns

[PHP] May I be added to the list?

2007-01-17 Thread Bernie Graham
Hello, I am hoping to be able to be added to the pear general mailing list. Thanks, --Bernie Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there another way ??

2007-01-17 Thread Curt Zirzow
Oops, i forgot to reply to php-general@ on this use this reply instead of the one i sent to your specific email. On 1/16/07, Ali Nasser <[EMAIL PROTECTED]> wrote: can you please check these out and tell me if there another way without installing externsions?? http://groups-beta.google.com/grou

Re: [PHP] May I be added to the list?

2007-01-17 Thread Curt Zirzow
On 1/15/07, Bernie Graham <[EMAIL PROTECTED]> wrote: Hello, I am hoping to be able to be added to the pear general mailing list. Go to http://pear.php.net/support/ Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] format timestamp

2007-01-17 Thread weetat
Hi all , I am using php 4.2 , mysql and Linux OS. I need to format timestamp to string using strftime , for e.g: strftime('%e',117000) -> the day should be 28 , but is 29 when i execute strftime() function. Anyone have ideas what is the problems ? Thanks -- PHP General Mailing Li

Re: [PHP] format timestamp

2007-01-17 Thread Curt Zirzow
On 1/17/07, weetat <[EMAIL PROTECTED]> wrote: Hi all , I am using php 4.2 , mysql and Linux OS. I need to format timestamp to string using strftime , for e.g: strftime('%e',117000) -> the day should be 28 , but is 29 when i execute strftime() function. Anyone have ideas what is

Re: [PHP] format timestamp

2007-01-17 Thread Jim Lucas
weetat wrote: Hi all , I am using php 4.2 , mysql and Linux OS. I need to format timestamp to string using strftime , for e.g: strftime('%e',117000) -> the day should be 28 , but is 29 when i execute strftime() function. Anyone have ideas what is the problems ? Thanks could be

Re: [PHP] format timestamp

2007-01-17 Thread Jim Lucas
weetat wrote: Hi all , I am using php 4.2 , mysql and Linux OS. I need to format timestamp to string using strftime , for e.g: strftime('%e',117000) -> the day should be 28 , but is 29 when i execute strftime() function. Anyone have ideas what is the problems ? Thanks I am runn

[PHP] Re: Getting domain out of a URL

2007-01-17 Thread Jonesy
> [snip] > I receive posts from an open moderated forum that need to be filtered > for urls. I've successfully managed to trap any entires that use > 'http://' 'www.' with the standard '.com' '.org', '.net' endings. > > What I need to do is to strip the prefix part ('http:// or http://www. > or 'w

[PHP] Scope of include

2007-01-17 Thread jekillen
Hello php list: If I include a php script inside a php function definition and then call the function in another script. What is the scope of variables in the included script? Are they local to the function that calls include with the file name? Thanks in advance; I'm not sure where to look fo

Re: [PHP] Scope of include

2007-01-17 Thread Andrew Kreps
On 1/17/07, jekillen <[EMAIL PROTECTED]> wrote: Hello php list: If I include a php script inside a php function definition and then call the function in another script. What is the scope of variables in the included script? Are they local to the function that calls include with the file name? Tha

Re: [PHP] Scope of include

2007-01-17 Thread Andrew Kreps
On 1/17/07, Andrew Kreps <[EMAIL PROTECTED]> wrote: On 1/17/07, jekillen <[EMAIL PROTECTED]> wrote: > Hello php list: > If I include a php script inside a php function definition and then > call the > function in another script. What is the scope of variables in the > included > script? Are they

  1   2   >