Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Jason Wong
On Friday 01 February 2002 15:38, Berthold wrote: > Hi! > > Thank you. > But I cannot use that $link1 and/or $link2 to select two databases on > different servers... > If I use $link1 the first time to select the first database on the first > server I got that error. But without that $link1-variab

[PHP] Re: Anyone Up?

2002-01-31 Thread Luke Welling
"Jtjohnston" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Luke is that 6:47 pm tomorrow? :) You lost an entire day! > Enough Oz Jokes. Here is my predicament in Canada :-) > > $varname = "Check".$i; > > $varname = "Check1" but I want $varname = "Your Name1"

[PHP] external programs

2002-01-31 Thread Chris Randall
i'm having a bit of a problem, i have in my php script a call to system(), it calls an external .exe, php hangs waiting for a return value from the .exe [i believe], i've recompiled the program i'm calling with system() to return 0 and even 1, but it still does not work, would any body have any

Re: [PHP] Anyone Up?

2002-01-31 Thread Brian Clark
* Brian Clark ([EMAIL PROTECTED]) [Feb 01. 2002 02:37]: [...] > echo ${"Check$i"} Whoops. Make that: echo ${"Check$i"}; -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 It may be your sole purpose in life to serve as a wa

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
Hi! Thank you. But I cannot use that $link1 and/or $link2 to select two databases on different servers... If I use $link1 the first time to select the first database on the first server I got that error. But without that $link1-variable AND only one connection in the script it works. And it m

Re: [PHP] Anyone Up?

2002-01-31 Thread Brian Clark
* jtjohnston ([EMAIL PROTECTED]) [Feb 01. 2002 02:14]: > Anyone Awake? Up? Yawwwnn. :-) [...] > When I submit, I want to echo to see if anyone clicked on them. But I > can't get my variable right to find $check1 through $check12. How do I > express in a for loop. $Check.$i does not work of cou

Re: [PHP] Anyone Up?

2002-01-31 Thread jtjohnston
Niklas, Bingo. I wondered if it was somehting like that? Same thing in JS more or less. Thanks, John > eval() is your solution. > > for ($i = 1; $i <= $NMax; $i++) > { > $variable = "\$Check$i"; > eval("\$string = \"$variable\";"); > echo $string.""; > } > > Niklas > > ---

[PHP] Re: Anyone Up?

2002-01-31 Thread jtjohnston
Luke is that 6:47 pm tomorrow? :) You lost an entire day! Enough Oz Jokes. Here is my predicament in Canada :-) $varname = "Check".$i; $varname = "Check1" but I want $varname = "Your Name1" to "Your Name12". One more try? :) etc. for ($i = 1; $i <= $NMax; $i++) { #$varname = "$Check".$i; $

RE: [PHP] Anyone Up?

2002-01-31 Thread Niklas Lampén
eval() is your solution. for ($i = 1; $i <= $NMax; $i++) { $variable = "\$Check$i"; eval("\$string = \"$variable\";"); echo $string.""; } Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 1. helmikuuta 2002 9:16 To: [EMAIL PROTECTED]

[PHP] Re: Anyone Up?

2002-01-31 Thread Luke Welling
"Jtjohnston" wrote: > Anyone Awake? Up? It is 6:17 pm. I would have trouble sleeping at this time of day :) > I'm using 12 checkboxes > > > > dynamically generated by mysql. Each has an id as primary index so I do > this: > > id."\" > VALUE=\"".$mydata->yourname."\"> > > When I submit, I want

[PHP] SFTP

2002-01-31 Thread Roman Duriancik
Exist some php scripts (commands) to update files in linux server throgh sftp protocol ? Thanks roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMA

[PHP] Anyone Up?

2002-01-31 Thread jtjohnston
Anyone Awake? Up? I'm using 12 checkboxes dynamically generated by mysql. Each has an id as primary index so I do this: id."\" VALUE=\"".$mydata->yourname."\"> When I submit, I want to echo to see if anyone clicked on them. But I can't get my variable right to find $check1 through $check12.

Re: [PHP] add on's to php

2002-01-31 Thread Rasmus Lerdorf
You can add modules on the fly today using dl() or semi-on-the-fly by adding them to php.ini and just restarting the web server. You don't need to recompile php to add any of these modules. -Rasmus On Thu, 31 Jan 2002, Kunal Jhunjhunwala wrote: > Hey, > I was wondering, if it would be possible

Re: [PHP] gd library with GIF support

2002-01-31 Thread Ed Lazor
>Therefore it would be recommended to avoid problems in the future and >use PNG instead, however, if you want to use transparency in your images >bear in mind that a number of implementations do not support this. >For example the quicktime plugin that handles PNGs in Netscape 4.x . Yea... the ma

Re: [PHP] connection_aborted() ?

2002-01-31 Thread Rasmus Lerdorf
> can anone show me a good example how to use this function? > I'm not really sure how it works it only makes sense to use if your turn off user aborts. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

[PHP] connection_aborted() ?

2002-01-31 Thread Hawk
can anone show me a good example how to use this function? I'm not really sure how it works -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTE

Re: [PHP] session.cookie_lifetime

2002-01-31 Thread Jon Drukman
At 10:27 PM 1/31/2002 -0400, Miles Thompson wrote: >>when a user logs in to my site, i load a bunch of stuff about them from a >>database and put it in session variables. right now i have the session >>expiration time set to a pretty large value. >> >>they can come back later in the day and sti

RE: [PHP] Making your include files invisible (header() in if loop)

2002-01-31 Thread Peter Brown
I don't know if this is related but header() must be called before any actual output is sent. One way to resolve this is to use the ob_start() tag at the start of the code, this turns output buffering on. Mind you I am no expert and stand ready to be corected and berated. Peter I wanted to hi

[PHP] Making your include files invisible (header() in if loop)

2002-01-31 Thread qartis
I wanted to hide the existance of my include files by making them 'invisible': give a 404 error when requested. This worked, but the files that were including were obviously 404ing too. So I decided to use $PHP_SELF and check whether the script's PHP_SELF was it's filename, which would mean that i

Re: [PHP] "sorry, your input was invalid. please re-enter the asterisked fields"

2002-01-31 Thread Jason Wong
On Friday 01 February 2002 08:49, Erik Price wrote: > SCENARIO: > > You're filling out your online web form. Unfortunately, you forgot to > fill out/check/select some data or other that is considered "required" > by the site that's hosting the form. You hit "submit", but you are > simply returne

[PHP] Re: create xml document with PHP

2002-01-31 Thread Oliver Cronk
XML isn't always going to a browser remember, it could be another application on another server that wants an XML doc to sync something or such like. And that sort of application is what PHP needs (more middleware-ish to compete with Java etc), as I feel that PHP is capable of much more than just

[PHP] Re: limit 0,30

2002-01-31 Thread Gary
Jtjohnston wrote: > I want to do something like this on a page: > > Pages: 1 2 3 [Next>>] > > How can I code SELECT * FROM `bookmarks` LIMIT 0, 30 ? > > Thanks? > > John > > This should be of some help. http://phpbuilder.com/columns/rod20001214.php3 gary -- PHP General Mailing Li

[PHP] How to have custom error pages rather than "CGI Error. The specifed ..."

2002-01-31 Thread Nyon
Hi, I am running PHP on W2k. How do I redirect an url if a php file is not found and the web browser returns "CGI not found. The specified CGI misbehaved.." Tried looking in IIS Error pages but can't find the html file. Regards Nyon -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] session.cookie_lifetime

2002-01-31 Thread Miles Thompson
At 05:15 PM 1/31/2002 -0800, Jon Drukman wrote: >At 09:03 PM 1/31/2002 -0400, Miles Thompson wrote: >>If you want persistence then use a cookie to >>- store the information >>- to provide a key for fetching data from a database >>or accept that if preservation of inter-invocation data is impt enou

[PHP] limit 0,30

2002-01-31 Thread jtjohnston
I want to do something like this on a page: Pages: 1 2 3 [Next>>] How can I code SELECT * FROM `bookmarks` LIMIT 0, 30 ? Thanks? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] HTML Email attachment problem

2002-01-31 Thread Anas Mughal
check out one of many HTML email scripts on hotscripts.com. --- Peter Atkins <[EMAIL PROTECTED]> wrote: > All, > > I'm building a tool that takes form input and sends > out an html email with a > word doc attached. > It sends the text and html version of the email but > I can't open the > attac

Re: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Tyler Longren
Agreed. - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Gregor Welters'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 7:14 PM Subject: RE: [PHP] this list has been mutated to a lamers paradise > > just wanted to point this out. > > And

Re: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Mike Maltese
Thanks, LAMER - Original Message - From: "Gregor Welters" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 5:06 PM Subject: [PHP] this list has been mutated to a lamers paradise > just wanted to point this out. > > > > > > -- > PHP General Mailing List

Re: [PHP] session.cookie_lifetime

2002-01-31 Thread Jon Drukman
At 09:03 PM 1/31/2002 -0400, Miles Thompson wrote: >If you want persistence then use a cookie to >- store the information >- to provide a key for fetching data from a database >or accept that if preservation of inter-invocation data is impt enough to >require registration of users and a login if

RE: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Jason Murray
> just wanted to point this out. And these kinds of emails make it *so* much better, of course. If the topic doesn't interest you, don't read it. (I don't read 90% of the emails I get on the list, I just dump them into a folder because I don't know anything about the topic, don't care, or I mig

[PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Gregor Welters
just wanted to point this out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Erik Price
On Thursday, January 31, 2002, at 06:12 PM, Lars Torben Wilson wrote: > On Thu, 2002-01-31 at 14:57, Erik Price wrote: >> I'm running PHP 4.1.0 on LAMP w/register_globals=off > > > Since register_globals is off, the $_SERVER array will no

Re: [PHP] session.cookie_lifetime

2002-01-31 Thread Miles Thompson
If you want persistence then use a cookie to - store the information - to provide a key for fetching data from a database or accept that if preservation of inter-invocation data is impt enough to require registration of users and a login if the client has cookies turned off. Sessions are suppose

[PHP] session.cookie_lifetime

2002-01-31 Thread Jon Drukman
is it possible to have session.cookie_lifetime different for each user? some users may want their cookies to live past a browser shutdown and others may not. i'd like to give them a choice, if possible. -jsd- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Hi - newbie questions...

2002-01-31 Thread Miles Thompson
At 02:14 PM 1/31/2002 -0500, Michael Kimsal wrote: >>>4th >>>sessions, can they be accessed from an asp script and the other way round? >> >>No, they cannot. They are specific to PHP. > > >not directly, but an ASP script on the same domain should be able to read >the cookie storing the session I

[PHP] "sorry, your input was invalid. please re-enter the asterisked fields"

2002-01-31 Thread Erik Price
SCENARIO: You're filling out your online web form. Unfortunately, you forgot to fill out/check/select some data or other that is considered "required" by the site that's hosting the form. You hit "submit", but you are simply returned to the same page. All of the data that you entered is st

Re: [PHP] Accessing piped data in PHP shell script

2002-01-31 Thread Jeff Sheltren
Have you tried running the program from your php script? Something like: $stuff = System("cat foo.txt"); I have done something similar, but I don't recall exactly how I did it. Jeff At 04:30 PM 1/31/2002 -0800, David Yee wrote: >How can I access data/parameters piped into a PHP shell script?

Re: [PHP] Accessing piped data in PHP shell script

2002-01-31 Thread David Yee
Oops, nevermind- I found the answer: $fp = fopen("php://stdin", "r"); while(($buf=fgets($fp, 512)) != false) { $input .= $buf; } echo "$input"; - Original Message - From: "David Yee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Jan

[PHP] Sessions in URL not being recognized!

2002-01-31 Thread Grant Boggs
I have an existing production machine running Red Hat Linux 7.1, Apache 1.3.19, and PHP 4.0.6. I have a new machine I'm *TRYING* to replace it with. It's a clean machine that I just did a fresh install of RedHat Linux 7.1 on. I downloaded MySQL 3.23.47, PHP 4.0.6, and Apache 1.3.22. Everythin

[PHP] Accessing piped data in PHP shell script

2002-01-31 Thread David Yee
How can I access data/parameters piped into a PHP shell script? E.g: cat foo.txt | php -q myscript.php In this example I want to take the contents of foo.txt and store it into a variable/array in myscript.php. I tried $argv[] but no go. Thanks. David -- PHP General Mailing List (http://ww

Re: [PHP] Need Urgent Help!!

2002-01-31 Thread Jason Cox
Scott, Apparently I'm too stupid to be able to use my mail client correctly and sent this email from my wife's account. (It was an early morning for me so please forgive me. Anyway, to answer your question you would do the following: 1) Create the page that you want to send the email. Creat

[PHP] Re: redirection rather than include()

2002-01-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > This is a PHP newbie trying to figure something out. > > I am creating a web-app which begins with a login page and goes through the > typical user/pass validation and upon success moves to a frameset where the > application will run.

[PHP] Re: destroy session on close?

2002-01-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > is there any way to destroy a session automaticly when a user closes down > you page? > And preferably perform an action like a database removal at the same time. Have a look at the Connection Handling section of the manual, and the fu

[PHP] session.cookie_lifetime

2002-01-31 Thread Jon Drukman
can you change session.cookie_lifetime on the fly? some users might want their sessions to persist between browser invocations, and others might want their sessions to expire. -jsd- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[PHP] Re: redirection rather than include()

2002-01-31 Thread Oliver Cronk
use the: http://www.whatever.com/whatever.php); ?> MAKE SURE header is used before any code that outputs anything, other wise it won't work (as header sends additional HTTP header commands). Alternatively the frameset could just be sent back to browser (i.e. make your frameset dynamic (if user

[PHP] HTML Email attachment problem

2002-01-31 Thread Peter Atkins
All, I'm building a tool that takes form input and sends out an html email with a word doc attached. It sends the text and html version of the email but I can't open the attachment. It opens blank. Anyone have a thought or two about this? if ($attachment) { $fp = fopen($attachm

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
that's alright - i'm using 4.0.6 and the suppression works thnx again -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 10:33 AM To: Christopher William Wesley Cc: [EMAIL PROTECTED]; Martin Towell Subject: Re: [PHP] suppressing divisio

Re: [PHP] suppressing division by zero errors

2002-01-31 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 15:16, Christopher William Wesley wrote: > You really need to do some error checking on the denominator. > $num = 5; > $den = 0; > > echo $den != 0 ? $num/$den : "0"; > > A number divided by zero isn't defined, so you have to circumvent the > situation by making sure it nev

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 15:26, Martin Towell wrote: > I was thinking of writing a _very simple_ graphing program - enter an > expression and php will generate an image with the graph on it, I didn't > want to spend too much time parsing the expression up and seeing if there's > a division or anythin

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
I was thinking of writing a _very simple_ graphing program - enter an expression and php will generate an image with the graph on it, I didn't want to spend too much time parsing the expression up and seeing if there's a division or anything else that may cause an error/warning [eg tan(PI/2), etc]

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Chris Randall
I too just had this problem, it seems that this happens when php is installed as a cgi binary with apache, perhaps if you use $_SERVER["PATH_INFO") or perhaps $_SERVER["SCRIPT_NAME"] or even $path_info, just some ideas, i've not tested this at all yet... good luck 1/31/02 2:57:55 PM, Erik P

Re: [PHP] suppressing division by zero errors

2002-01-31 Thread Christopher William Wesley
You really need to do some error checking on the denominator. $num = 5; $den = 0; echo $den != 0 ? $num/$den : "0"; A number divided by zero isn't defined, so you have to circumvent the situation by making sure it never happens. ~Chris /"\

Re: [PHP] suppressing division by zero errors

2002-01-31 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 15:00, Martin Towell wrote: > Is there a way to suppress division by zero errors? > > echo 5/0; // this give a warning - obviously!! > > @echo 5/0; // this gives a parse error > > echo @5/0; // this still comes up with a warning > > unless I turn error_reporting off be

Re: [PHP] where is PHP_SELF?

2002-01-31 Thread Lars Torben Wilson
On Thu, 2002-01-31 at 14:57, Erik Price wrote: > I have a file called "index.php". This file includes another file, > "foot.inc". In the file "foot.inc", amidst much HTML code, I have a > simple line: > > echo "$PHP_SELF" ; > ?> > > The expected result is that "index.php" will appear in my

[PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
Is there a way to suppress division by zero errors? echo 5/0; // this give a warning - obviously!! @echo 5/0; // this gives a parse error echo @5/0; // this still comes up with a warning unless I turn error_reporting off before and turn it back on afterwards, but I don't want to do that unl

[PHP] where is PHP_SELF?

2002-01-31 Thread Erik Price
I have a file called "index.php". This file includes another file, "foot.inc". In the file "foot.inc", amidst much HTML code, I have a simple line: $PHP_SELF" ; ?> The expected result is that "index.php" will appear in my web page, or at least something will appear. Yet, when the page is s

Re: [PHP] table row

2002-01-31 Thread John Fishworld
duh ! yep exactly like ! thanks ! :-)) > something like ? > > $cntr = 0; > echo ""; > while ($r = mysql_fetch_array($result0)) > { > $cntr++; > $cityid = $r["t_city_id_city"]; > $cityname = $r["t_city_name"]; > echo " > href=\"city_person.php?city_id

[PHP] Re: Newbie: Question about filesize()

2002-01-31 Thread Jim Winstead
Manuel Ritsch <[EMAIL PROTECTED]> wrote: > $file_s = filesize($file); you want $file_s = filesize("images/$file"). jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

RE: [PHP] table row

2002-01-31 Thread Martin Towell
something like ? $cntr = 0; echo ""; while ($r = mysql_fetch_array($result0)) { $cntr++; $cityid = $r["t_city_id_city"]; $cityname = $r["t_city_name"]; echo " $cityname "; if ($cntr % 2 == 0) echo ""; } // from while result 0 echo""; -Original

[PHP] table row

2002-01-31 Thread John Fishworld
apologies for a stupid question ! but it's late ! everthings fine, mysql query, results etc but I want to produce a table with two columns instead of just one long column ie answer1answer2 can someone please give me a hint how to do it ? while ($r = mysql_fetch_array($result0))

RE: [PHP] redirection rather than include()

2002-01-31 Thread Martin Towell
use: { header("location: new_full_url_here"); exit; } -Original Message- From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:42 AM To: PHP Subject: [PHP] redirection rather than include() This is a PHP newbie trying to figure something out. I am creatin

[PHP] redirection rather than include()

2002-01-31 Thread Benjamin deRuyter
This is a PHP newbie trying to figure something out. I am creating a web-app which begins with a login page and goes through the typical user/pass validation and upon success moves to a frameset where the application will run. The action of the login form is act_login.php. In that script I vali

[PHP] Printing from mysql

2002-01-31 Thread Rambo Amadeus
Hi, Lets say that i have a database, and some names in it (Name and adress). When it's new year:) id like to send letters to those guys, from db. How would i print those names on envelopes, or how should i print one name at one A4 page, other name on next etc... If I open those names in browser an

[PHP] destroy session on close?

2002-01-31 Thread Hawk
is there any way to destroy a session automaticly when a user closes down you page? And preferably perform an action like a database removal at the same time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

[PHP] PHP vs Ruby

2002-01-31 Thread Anas Mughal
Anyone able to comment on Ruby's features, pros and cons as a web scripting alternative to PHP. Thanks. = Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! ht

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi! > > mysql_error returns nothing... > > The error arrives while selecting the database via: > > $link = mysql_connect("host","user","passwd"); > mysql_select_db("bla", $link); > > echo $link returns always '1'! > > > > > David

[PHP] Re: problems with mt_rand()

2002-01-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I need to generate a random number (range is not crucial) and I have been > trying to use mt_rand(). However, I am finding that is generates the same > value EVERY time. This is true whether I supple a range or not. For > example, the

[PHP] Re: Plz help w/ query

2002-01-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > The following query displays 0 e-mails. Why? > > Tbl con_inf holds 51 records w/ 51 usernames. Tbl scr_149 holds 37 > records with 37 equivalent usernames of which 14 show date_done=0. > > > $connection=mysql_connect("localhost",

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
\\1, actually. \\0 refers to the entire source string, not just to the part inside the parentheses... so I think it would put the bold tags around the entire contents of $str, not just the "this" words. At least, that's according to the source I'm using (_Professional PHP Programming_ by Castagn

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Wow, thanks a lot... although it should be \\0 here... didn't see anything in the manual about the \\ maybe gotta look for it again :-) Thanks, Edward - Original Message - From: "Richard Crawford" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]> Cc: <[EMAI

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
Sorry, that should be: eregi_replace("(this)","\\1",$str); On Thu, 2002-01-31 at 14:20, Richard Crawford wrote: > Seems like that makes it a LOT easier. > > Use eregi_relace() instead of ereg_replace(). eregi allows for > case-insensitivity. > > Try > > eregi_replace("this","

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Richard Crawford
Seems like that makes it a LOT easier. Use eregi_relace() instead of ereg_replace(). eregi allows for case-insensitivity. Try eregi_replace("this","\\1",$str); That should do it, though I haven't tried it myself. On Thu, 2002-01-31 at 14:14, Edward van Bilderbeek - Bean IT wrote: >

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Maybe I better ask my question different... what i want to do is, to highlight certain text in a string... for example: "This equals this equals tHis..." has to become: "This equals this equals tHis"... so dispite the case, the 's should be put around it... does that make it easier? not for me

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hmm, that's not what i wanted to hear :-))) e.g. try doing that for the word: transparancy looots of different possibilities then... Edward - Original Message - From: "Jeff Sheltren" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED

RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rodolfo Gonzalez
On Thu, 31 Jan 2002, Rick Emery wrote: > To timeout users after 20 minutes, use a cookie which is set for 20 minutes. But once again you can have problems with cookies, they're not reliable (user can have cookies support turned off) and they tend to be good for CSS attacks :( You could have a ti

[PHP] php.jobs

2002-01-31 Thread Brian Williams
Hi, Where can I find a list of PHP Jobs (help wanted)? Thanks, Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] ereg et all

2002-01-31 Thread Jeff Sheltren
Ahhh, ok makes more sense now. Although, I don't think that there is an "easy" way to do what you are asking. I think that in order to accomplish that, you will have to specify all possible cases of a string, and have a ereg_replace() statement for each of them. Jeff At 11:01 PM 1/31/2002 +

RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rick Emery
To timeout users after 20 minutes, use a cookie which is set for 20 minutes. I'm not exactly sure what you are attempting to limit on database: 100 entries per hour, per day, per year, concurrently? -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Oh, that was a typo... sorry... it should be: "This equals this equals tHis" -> "That equals that equals tHat" Edward - Original Message - From: "Jeff Sheltren" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 31

[PHP] Best way to frequently check database?

2002-01-31 Thread Hawk
Let's say I have a database that recieves new information about 6 times/minute and I want the database to be checked to frequently to limit the maximum entrys to the database to.. let's say 100. And also timeout users if their session has been inactive for, let's say 20 minutes. -- PHP General

Re: [PHP] ereg et all

2002-01-31 Thread Jeff Sheltren
I'm not sure why you wanted the last word "tHis" to be changed to "That" (with a capital)... can you explain further? Jeff At 10:52 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote: >that is not what I meant... I want the cases to remain... > >- Original Message - >From: "Rick

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
that is not what I meant... I want the cases to remain... - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'Edward van Bilderbeek - Bean IT'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 10:47 PM Subject: RE: [PHP] ereg et all > try: eregi_r

[PHP] COM Question- Please Help

2002-01-31 Thread Mainolfi, Joe
This is what I am trying to do. I am trying to add a border to the bottom edge of a cell. The Range and some other methods seem to not work with the syntax that the VB editor in excel says. Like Range in the vb editor is Range("A1:B9").Select. When I try this in php it gives me and error. I

RE: [PHP] ereg et all

2002-01-31 Thread Rick Emery
try: eregi_replace("this","that","This equals this equals tHis"); -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: [PHP] ereg et all hi, is there a simple way to replace an occu

[PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hi, is there a simple way to replace an occurence of a string, into another, maintaing capital positions... Like: $str = "This equals this equals tHis"; and I wanna replace all occurences of "this" in "that", that the result will be: $str = "That equals that equals That"; Edward -- PHP Ge

[PHP] Newbie: Question about filesize()

2002-01-31 Thread Manuel Ritsch
Hello There I'm new to PHP and trying to code a function that reads all teh files out of a directory and printing out a link and the filesize, but it seems that the filesize() function doesn't work, here's the code so far: $handle = opendir ('images'); echo "Fil

Re: [PHP] Pregenerating Script Again

2002-01-31 Thread Jason Wong
On Friday 01 February 2002 03:52, karthikeyan wrote: > Hi Guys, > > I got some sweet responses like using cat and using Output Buffering > functions. But then what i really want is to provide user with the > interface like this : > > Pregeneration Program > -

[PHP] WIN CE builds

2002-01-31 Thread Mike Krisher
Anyone know of an Apache and PHP build for Win CE? I would rather build a Web app for my device than completely have to learn eMbedded VB, or use the IIS port with something like PocketASP from modezero. Thanks in advance, __ Mike Krisher Director of Technology hyperQU

Re: [PHP] PHP and listbox multiple selections

2002-01-31 Thread sundogcurt
Notice the "[ ]" at the end of the select box name, this prompts php to treat the values as an array. $myrow[1]"; } } ?> When the form is submitted I fire this code $mycount = count($options); // get the number of elements in the array (selected in the drop down) while($myc

RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
I thought about the case insensitivity, but I wanted to be certain that A-Z was captured. Personnally, I'd use ereg(), as you suggest. -Original Message- From: Administrator [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 2:38 PM To: Rick Emery Subject: Re: [PHP] newbie: regu

[PHP] Pregenerating Script Again

2002-01-31 Thread karthikeyan
Hi Guys, I got some sweet responses like using cat and using Output Buffering functions. But then what i really want is to provide user with the interface like this : Pregeneration Program --- Step 1 - Choose you Header file [ ] [Browse]

RE: [PHP] newbie: regular expression suggestios

2002-01-31 Thread Rick Emery
try: if (eregi("^[a-zA-Z0-9]*$", $name)) This searches for [a-zA-Z0-9] between start and end of line with no other intervening characters -Original Message- From: Lee P Reilly [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:45 PM To: PHP List Subject: [PHP] newbie: regula

Re: [PHP] PHP and listbox multiple selections

2002-01-31 Thread Erik Price
On Monday, January 28, 2002, at 10:41 AM, Simos Varelakis wrote: > A php form contains a listbox (named foolist) with n Items which can > be > multiple selected and form posted to > results.php how can results.php determine which items were selected in > order > to add all the items in a My

[PHP] COM

2002-01-31 Thread Mainolfi, Joe
is anyone out there familiar with COM built into Php? This is my code: $sheet = Range("B6:B9")->Select; $sheet->Selection->Borders(xlEdgeBottom); $sheet->Selection->LineStyle = 9; //xlContinuous $sheet->Selection->Weight = 2; //xlThin I get an error everytime I use the Range method and some othe

RE: [PHP] Need Urgent Help!!

2002-01-31 Thread Rick Emery
mail("[EMAIL PROTECTED]","Subject line",$message,"From: $txtname <$email>"); -Original Message- From: Scott's Mail [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 2:00 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need Urgent Help!! Shannon, I appreciate

RE: [PHP] Help with JPGraph in PHP.

2002-01-31 Thread Matthew Walker
You need to send the headers to tell the browser what kind of data you're sending. Try something like this: header("Content-type: image/png"); Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Thursda

[PHP] libmcrypt v2.4.x

2002-01-31 Thread Mike Frazer
Just a quick question: the v2.4.x function declaration for several mcrypt functions requires a path to the library (at least thats what I have gathered), whereas previous versions didn't require this. Are they looking for a specific file path, or a general path to the library files? Mike Frazer

RE: [PHP] problems with mt_rand()

2002-01-31 Thread Matthew Walker
Did you remember to seed it? See http://www.php.net/manual/en/function.mt-srand.php for info on how to seed it. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:02 PM T

Re: [PHP] problems with mt_rand()

2002-01-31 Thread Christopher William Wesley
On Thu, 31 Jan 2002, Benjamin deRuyter wrote: > I need to generate a random number (range is not crucial) and I have been > trying to use mt_rand(). However, I am finding that is generates the same > value EVERY time. This is true whether I supple a range or not. For > example, the follow line

RE: [PHP] zend encoded files dont work

2002-01-31 Thread Matthew Walker
I'd imagine it's because windows zend has to compile them in a slightly different manner. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:41 PM To: php-list Subject: [

  1   2   >