Re: [PHP] Re: PHP vs. ASP

2002-01-10 Thread John Meyer
ing ASP (or PHP) as long as they are basing it on the facts and there particular needs; what I don't like are advocates (read a**holes) turning this into a heated debate devoid of any facts or basis in reality. BTW, I use both and have used both. I'm more concerned with results, not egos.

[PHP] sessions and mysql

2002-01-10 Thread John Branstad
re this out, we have no choice but to roll back to 4.0.6, but I really love the security additions of 4.1.0 - Help!!! MUCH THANKS IN ADVANCE. John begin 666 sessions.php.txt M/#]P:' -"@T*+RH-"BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ M*BHJ*BHJ*BH-"BHJ#0HJ*@E.86UE.B!T96UP;&am

[PHP] include with call

2002-01-13 Thread John Cuthbert
Hello, I have a file which does several different things depending on how its called Ie file?mode=show is to show it etc But I want to include the output from the show so I tried but this causes errors. It goes away with including as only file.php but doing that also causes problems because mod

[PHP] Decryption

2002-01-13 Thread John Cuthbert
Is there a method for decrypting encrypted things by md5? -- 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]

[PHP] Re: include with call

2002-01-13 Thread John Cuthbert
Thanks :) "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (John Cuthbert) wrote: > > > I have a file which does several different things depending on h

[PHP] Re: Creating rich interfaces for web applications??

2002-01-14 Thread John Lim
gards, John Geoff Caplan <[EMAIL PROTECTED]> wrote in message 006c01c19cfb$c04caf60$0339a8c0@ajanta">news:006c01c19cfb$c04caf60$0339a8c0@ajanta... > Hi folks > > I have been looking for a practical way to create rich dynamic forms in the > client using PHP, and would appr

Re: [PHP] Persistent Database Resources?

2002-01-15 Thread John Lim
Hi, Both PEAR DB/Cache and ADOdb database libraries support cacahed recordsets. See the PEAR sources and http://php.weblogs.com/adodb Rgds, John Nick Wilson <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE-

[PHP] Passing PHP Variables

2002-01-17 Thread John (News)
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- PHP G

[PHP] Include() and URLs

2002-01-17 Thread John (News)
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Hippie. At 05:02 PM 1/17/02 -0700, you wrote:

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: > > The file is running on an NT box and can be accessed fine > > through IIS. It is only when using the include() statement to > > this file that p

Re: [PHP] Using include() and URL's

2002-01-17 Thread John (News)
In regards to 1, neither of them are. they're just examples I was testing. As for your second note, it need only include the page, it needs only to display the page. It works fine with local references, just not with URL's. At 06:33 AM 1/18/02 +0200, you wrote: >A couple of comments: >1. Your i

[PHP] problems with system()

2002-01-24 Thread John Gurley
it does write the first couple of lines of the code output to the file. Can anyone see anything wrong? Any help would be great, thanks again John _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com

[PHP] re: copying files

2002-01-24 Thread John Deer
I posted a message earlier about copying files and it was asked why I need to copy them. I need to copy files because I am building a content management system in which the base template files need to be copied to instantiate a new page. Its completely web-based and built towards the typical web

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread John Steele
ducts - not that I'm complaining, it does generate some consulting business for me on the client side :) Thanks, John >We're all in a good position right now. The economy is beginning a strong >rebound, the pretenders have been weeded out, and a lot of companies are now >b

RE: [PHP] Re: getting a LAMP job in this economy

2002-01-26 Thread John Lewis
I like this view. It's not so much a technology we're all speaking as much as a language. Computers are computers and while linux is fun and kick's ass sometimes you just need to get a job done. tools are tools and php rules until php rules! john l >> It's hard, I

[PHP] Re: php login scripts

2002-01-27 Thread John Cuthbert
$user = $HTTP_GET_VARS["user"]; $pass = $HTTP_GET_VARS["pass"]; $real = "superduperunlieklytobeguesedpass"; if($user == $validuser && $pass == $real) { echo "thank you for logging in here is the page"; ?> etc and call the page as http://superdomain.com/login.php?user=Imasuperduperuser&pass

Re: [PHP] mailing to 19000 users

2002-01-27 Thread John Meyer
How about croning the job and splitting up the load as you go. - Original Message - From: "Mostafa Al-Mallawani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 27, 2002 11:23 PM Subject: [PHP] mailing to 19000 users > hi, does anyone know how to send mail to 19000 use

Re: [PHP] php vs asp

2002-01-28 Thread John Meyer
You can use ASP with Mysql, as long as you have myodbc installed on your machine. For me, ASP has been a bit slower, but you can still use it. - Original Message - From: "liz lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 7:14 AM Subject: [PHP] php vs as

[PHP] using eregi

2002-01-31 Thread John Gurley
Hello, Just wondering if there is a way to print out parts of a text file (i.e from line x to line y) using php, the way it is being done now is using eregi and comparing strings, but it would be alot better if I could specify which lines to print. Thanks a million. _

[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] table row

2002-01-31 Thread John Fishworld
_city_name"]; > echo " > href=\"city_person.php?city_id=$cityid\">$cityname > "; > if ($cntr % 2 == 0) echo ""; > } // from while result 0 > echo""; > > > -Original Message- > From: John Fishworld [mailto:[EM

RE: [PHP] php.jobs

2002-02-01 Thread John Steele
Hi Boaz, Personally, I found the jobs list at weberdev much more useful when you could list all jobs by date descending, as opposed to the seperated by country links. Anyway that might be put back someday? Thanks for a great PHP resource site, John >You can check out h

[PHP] Re: Adding 6 digits to a str?

2002-02-03 Thread John Lim
Try http://php.net/str_pad Andy <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi guys, > > I am trying to force a int to be 8 digits. If it is only 3 dig filling the > first ones with 0. > > Anyhow I tryed it with type casting, but it does not matter what I t

[PHP] Using session functions in PHP4.1.1

2002-02-03 Thread John Mpaliza
pens when using functions: session_start and session_register What can I do to resolve the problem. John Mpaliza

[PHP] Re: Multi Threading in PHP

2002-02-06 Thread John Lim
Hi Bart This can be simulated using non-blocking sockets. However this is one time when using Perl or Python might be a better solution (sigh). Bart Frackiewicz <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, a few days ago i saw here a thread about multi t

[PHP] in_array algorithm

2002-02-06 Thread John Fulton
n) comparisons? Is it up to me to maintain a sorted array in the later case? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Online tutorials for form validation in PHP

2002-02-06 Thread John Fulton
Laurie, You should use the funtions isset() and empty() along with the appropriate conditionals. I have a tutorial which demonstrates a way to do this: http://www.rci.rutgers.edu/~jfulton/php1/forms.html John -- John Fulton, Webmaster, Rutgers University Computing Services. On Wed, 6

[PHP] eregi

2002-02-08 Thread John Gurley
hello, I'm using eregi to print out parts of a text file, and I was just wondering how you get the code to print out a newline as it appears in the file. John _ Send and receive Hotmail on your mobile device: http://mobile.ms

Re: [PHP] PHP Work in New York

2002-02-12 Thread John Fishworld
Well as an englishman in Germany - php is pretty damm big here ! A lot more than in the UK ! So maybe he should have stayed in Germany ! lol Although the market has collapsed a bit at the moment ! > I guess I'm lucky living in Australia then - there's quite a few places > using ASP but there's a

[PHP] printing files

2002-02-13 Thread John Gurley
Just a quick question, is there a way to echo in your php code lines of a file that you specify. i.e. you want to output lines 1,4,7 of a certain text file Thanks John _ Join the world’s largest e-mail service with MSN Hotmail

Re: [PHP] Php is serversided????

2002-02-14 Thread John Meyer
Two ways this is possible: 1. The user has selected an item and hit the submit button, thereby sending everything to the server and it is working there. 2. The user comes in from a different link, different server, or has a cookie on their machine. - Original Message - From: "Morten Niel

[PHP] fopen

2002-02-14 Thread John Smythe
i wanna know if there is a way of opening a file in a certian mode so when i write to a txt file it writes at the top of the file, and doesnt overwrite whats at the start of the file Regards, John Smythe http://www.smythey.org/

[PHP] stupid problem

2002-02-18 Thread John Gurley
I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff } the problem is that no matter what the value of $inst the code enters the loop. I know it is some thing small and stupid, but any help would be appreciated. john

[PHP] response

2002-02-18 Thread John Gurley
here is the html part of the code:: Instrument Beeps Violin and the php:: echo($inst); if($inst == 2) { } cheers _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PH

[PHP] code

2002-02-18 Thread John Gurley
not trying to be sneaky or hide anything, the only thing is that it is a long code and what ever is wrong with what I am using it will not let me paste the code over!?! when I echo $inst i get the expected result (i.e. 1 or 2) but even if the result is 1 it goes into the loop...and yes the sele

[PHP] got the code

2002-02-18 Thread John Gurley
here is a larger chunk of the code: WEB BASED MUSIC COMPOSITION Enjoy the Tune Tone Row: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace("/^\//".. doesnt work?

2002-02-20 Thread John Ericson
xs=/usr/local/apache/bin/apxs' '--with-db2--disable-debug' '--disable-static' '--enable-sockets' '--with-yp' '--with-zlib' Regex Library: Bundled library enabled PCRE (Perl Compatible Regular Expressions) Support: enabled PCRE Library Version: 3.4 22

[PHP] Re: preg_replace("/^\//".. doesnt work?

2002-02-20 Thread John Ericson
thanks! On Feb 20 11:55, Philip Hallstrom wrote: >$a = "/test/"; >$a = preg_replace("/^\//", "", $a); >echo $a; > > Notice the difference in the second line... > > On Wed, 20 Feb 2002, John Ericson wrote: > >

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread John Steele
php";); and that it is a GET ($REQUEST_METHOD == 'GET'). The fact that some web servers will display the page anyway is no reason to depend on that. For PHP4+ of course you can use $_SERVER['REQUEST_METHOD'] instead. HTH, John >I'm sure that this is

[PHP] How do I overwrite file via FTP without changing owner/group?

2002-04-15 Thread John Kelly
Hi, I am using the example code at php.net to FTP a file to a remote server. I am trying to overwrite an existing file, but want to maintain the owner/group of the file being overwritten but it keeps giving the overwritten file the owner/group name of the userid that I am loggin in via FTP with. W

Re: [PHP] Re: Cross DB application

2002-04-16 Thread John Lim
Thanks Richard, ADOdb is also dual licensed under a more open license - BSD too. You might also find interesting this article: http://php.weblogs.com/portable_sql Regards, John Lim "Richard Ellerbrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

[PHP] Re: Performance question

2002-04-16 Thread John Lim
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ "Mike Fifield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok I have a performance question. I run a wallpaper site; this is the u

[PHP] How do I check if a remote file exists?

2002-04-16 Thread John Kelly
How do I check if a remote file exists that is in a directory protected by an .htaccess file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do I check if a remote file exists?

2002-04-16 Thread John Kelly
"John Kelly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How do I check if a remote file exists that is in a directory protected by > an .htaccess file? > I should have added that this is the code I have tried without su

[PHP] How can I change directories after fsockopen?

2002-04-16 Thread John Kelly
I have multiple domains hosted on a server. When I fsockopen to one of them I end up in the document root of another one. Is there a way to specify the directory one ends up in after establishing an fsockopen connection OR issuing a command via fput to CD to a different system path after connectin

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
Manuel, > Prepared queries in practice are the same as what John Lim calls in this > document http://php.weblogs.com/portable_sql as "binding", except that > he doesn't seem to be aware that it is the same thing, so he says that > only some database can use it! :-

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
port. > Of course. Unneeded portability that is not used by most users is of no interest to me. You disagree. That is fine. The code is there for people to read. Let them judge for themselves. > John, as a marketeer you still have a lot to learn before you realize > that you can't

[PHP] ereg() not matching same text each time script is run...

2002-04-23 Thread John Holmes
93.71 13 www.validatethis.com 978 2002-01-01 20011229161124 2 20 www.geocities.com 734 2002-01-01 20020420013724 63.225.246.25 32 www.nethitters.com 634 2002-01-01 20020420110423 12.237.218.113 18 www.network-underground.net 626 2002-01-01 20011229161124 2 19 omniflare.devfx.org 594 2002-01-01 20011229161124 2 --- TIA, ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mySQL Data Limits

2002-04-23 Thread John Holmes
Silent Column Specification Changes.Note that because the server/client protocol and MyISAM tables has currently a limit of 16M per communication packet / table row, you can't yet use this the whole range of this type. See section 6.2.3.2 The BLOB and TEXT Types. ---John H

RE: [PHP] ereg() not matching same text each time script is run...

2002-04-23 Thread John Holmes
Someone gave me the preg_match equivalent preg_match( '/([-_a-z]+)\.([a-z]+)$/i', $row['site'], $match2 ); I tried that and it took care of the problem, as far as I can tell. To me, that narrows it down to a problem (bug?) with ereg... anyone else have any id

RE: [PHP] 4.2.0 release and bug #15983

2002-04-23 Thread John Holmes
I read through the changelog (4.2 -> 4.0.6) and didn't see any mention of it. ---John Holmes... > -Original Message- > From: Chris Cameron [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 5:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP] 4.2.0 release an

RE: [PHP] file permissions on counter?

2002-04-24 Thread John Holmes
I would add some file locking to your code to make it more reliable. If you start having a lot of traffic, your code will start missing people. www.php.net/flock ---John Holmes... > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23,

RE: [PHP] To store or not to store . . .

2002-04-24 Thread John Holmes
Store a link to it. I see no advantage at all to storing binary data in a database. It just creates a lot more work for you by putting the data in a table. You have to create an "interface" to get at the data...or select it out into a file to get back the image, etc. ---J

RE: [PHP] Regular Expressions

2002-04-24 Thread John Holmes
27;http' [host] = '127.0.0.1' [port] = 6667 (Is an INT, not a STRING) [user] = 'user' [path] = '/pages/page.php' [query] = 'foo=bar' [fragment] = 'bookmark' Hopefully this will help someone. I don't know if it does any checking or vali

[PHP] alternatives to mail()

2002-04-24 Thread John Hughes
fall-back option from PHP to send mail when the mail() function is not working? John Hughes __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Form validation

2002-04-25 Thread John Holmes
function or class handy that I might use? (for free) I've got one... www.php.net/strip_tags www.php.net/htmlentities You can have them for free if you send me $20. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Security Leak (plaintext)

2002-04-25 Thread John Holmes
be said for validation. Make sure what you think is a number really is, and that a string is properly quoted...then this won't be a problem. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parse Error - Help? (AGAIN)

2002-04-25 Thread John Holmes
viewers can't glean any info from failed scripts like path directories and file names... ---John Holmes... > -Original Message- > From: Maxim Maletsky (PHPBeginner.com) > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 11:19 AM > To: 'Nathan'; &#x

RE: [PHP] authorization headers

2002-04-25 Thread John Holmes
Couldn't you use something like this: header("Location: http://user:[EMAIL PROTECTED]/path/to/file.php";); ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 11:11 AM > To: [EMAIL

RE: [PHP] PHP Security Leak (plaintext)

2002-04-25 Thread John Holmes
t the user from putting a value like --> 12,'bad value')# <-- into $my_val_a and putting a bad value into the second column. Now if you validate that the two are numbers, then you won't have this problem. And if you are validating a string, yes then use addslashes(), and the # w

RE: [PHP] Form validation

2002-04-25 Thread John Holmes
urity numbers for example. You can validate and accept the input in a variety of formats, but have the validation routine return them in a common format to insert into the database. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 4.2 new GLOBALS question

2002-04-25 Thread John Holmes
;dump it into $start"?? Where is $start coming from? Also, if you are using index.php?s=something, then 's' will be in HTTP_GET_VARS or _GET ...not POST. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Redirect

2002-04-25 Thread John Holmes
You can use header() for that...just don't display anything before you redirect them. Otherwise you need a client side solution like a META REFRESH ---John Holmes... > -Original Message- > From: Jennifer Downey [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 200

RE: [PHP] Callin PHP gurus...figure this out

2002-04-26 Thread John Holmes
Use wordwrap() to wrap the text to 75 characters and str_replace() to replace " with ' www.php.net/wordwrap www.php.net/str_replace ---John Holmes... > -Original Message- > From: r [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 3:08 PM > To: [EMAIL PROT

RE: [PHP] passing authorization code

2002-04-26 Thread John Holmes
e. If they are allowed, then send the appropriate .mov headers with header() and then output the data. ---John Holmes... > -Original Message- > From: wm [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 11:01 AM > To: [EMAIL PROTECTED] > Subject: [PHP] passing author

RE: [PHP] Sessions with register_globals = off

2002-04-26 Thread John Holmes
Make sure you are using session_start() on each page and you should be using $_SESSION["var"] = "value";, not $HTTP_SESSION_VARS... ---John Holmes... > -Original Message- > From: Padraig Kitterick [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 12

RE: [PHP] web application development question

2002-04-26 Thread John Holmes
, etc. I've gotten into the habit, from working with GeekLog, to put everything into a $_CONF array. $_CONF["database"] = "MySQL"; $_CONF["multiplier"] = 1.5; etc... ---John Holmes... > -Original Message- > From: Richard Baskett [mailto:[EMAI

Re: [PHP] BBS system

2002-04-26 Thread John Hughes
Visit www.sourceforge.net --- r <[EMAIL PROTECTED]> wrote: > Hey all, > > Just a small q, > does anybody know of any particular good BBS system that is free? > (I aint > rich :-( ) Been to hotscripts.com can you recomend any? > > (Actually if i were rich I would not care a damn for > PHP-MyS

RE: [PHP] Opening manual - .bz2

2002-04-26 Thread John Holmes
Read the download page, it tells you what you need to open it. Also, you're the one with the username 'r'. Now whenever I write a message, every single 'r' in it is underlined with a #$%@#$%@ "Smart Tag"... :) That's annoying. ---John Holmes... > -

[PHP] reg-ex please

2002-04-27 Thread John Fishworld
Help please from one of the reg-ex experts out there please ! I'm trying to find the pattern &#(5 number); example 𑃸 This works $code[$i] = ereg_replace("&#([0-9])+" , "replace\\0.bing" , $code[$i] ); and I get back replace 𑃸.bing but I also want to lose the &# and the ; so I get back 69880.bi

Re: [PHP] reg-ex please

2002-04-27 Thread John Fishworld
endet: Samstag, 27. April 2002 1:26 PM > An: [EMAIL PROTECTED] > Betreff: AW: [PHP] reg-ex please > > Try it like this : > $code[$i] = ereg_replace("&#([0-9] {5});" , "\\1.bing" , > $code[$i] ); > > -Ursprüngliche Nachricht- > Von:

RE: [PHP] Re: date format

2002-04-27 Thread John Holmes
No...Do it in your query. Use DATE_FORMAT in your query. ---John Holmes... > -Original Message- > From: George Nicolae [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 12:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: date format > > try &g

RE: [PHP] Another silly email

2002-04-27 Thread John Holmes
How about number_format www.php.net/number_format ---John Holmes... > -Original Message- > From: baldey_uk [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 10:20 PM > To: Php-General > Subject: [PHP] Another silly email > > Um im trying to take the inpu

RE: [PHP] PHP is making errors for no apparents reason..?

2002-04-27 Thread John Holmes
> $zquery = "SELECT name from users WHERE handle like > '$row[handle]'; Missing an ending quote " here. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] current date query

2002-04-27 Thread John Holmes
SELECT * FROM calendar WHERE date_column = CURDATE() ---John Holmes... > -Original Message- > From: Thomas Goeminne [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 5:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] current date query > > Hi, > >

RE: [PHP] POST/GET is not working for PHP 4.2.0 on W2K Advanced Server

2002-04-27 Thread John Holmes
Register_globals is off by default and you have to use the $_GET and $_POST arrays for your data. ---John Holmes... > -Original Message- > From: JaseyX [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 1:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] POST/GET

RE: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread John Holmes
Use $_SERVER["SERVER_NAME"] ---John Holmes... > -Original Message- > From: The_RadiX [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 21, 2001 10:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Apache: SERVER_NAME gone? > > Hi Y'all... > >

[PHP] tutorial on global variables

2002-04-27 Thread John Hughes
that is preferred. John Hughes __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
to send them back to that page. ---John Holmes. -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 2:37 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions and Query String Variable Handling Env: Apache 1.3.x/php4.0.6/mysql3.23.x Scenario: I

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
You'll have to add an http:// to that string, too. ---John Holmes... > -Original Message- > From: John Holmes [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 5:50 PM > To: 'Dennis Moore'; [EMAIL PROTECTED] > Subject: RE: [PHP] Sessions and

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
esult, and just echo that variable where ever I need to. ---John Holmes... > -Original Message- > From: Dennis Moore [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 5:24 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Sessions and Query Stri

RE: [PHP] class PHP

2002-04-27 Thread John Holmes
Can someone translate this to English? > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 7:21 PM > To: [EMAIL PROTECTED] > Subject: [PHP] class PHP > > The text of this proposal, test code, and updates live at > petermoulding.com/class. I plac

RE: [PHP] passing variables to scripts

2002-04-28 Thread John Holmes
Try $_GET["entry_id"] or $HTTP_GET_VARS["entry_id"], depending on your version of PHP. ---John Holmes... > -Original Message- > From: Mark Gallagher [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 4:04 AM > To: [EMAIL PROTECTED] > Subject:

RE: [PHP] Wrapping Text

2002-04-28 Thread John Holmes
et confused. If there is no editing, then you'll save processor time by only doing the conversion once, instead of for every view. ---John Holmes... > -Original Message- > From: Scott Reismanis [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 27, 2002 11:58 PM > To: [

RE: RE: [PHP] Wrapping Text

2002-04-28 Thread John Holmes
It should have a % for the width at least, and then it should wrap itself. ---John Holmes... > -Original Message- > From: Scott Reismanis [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 7:42 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re:

RE: RE: [PHP] Wrapping Text

2002-04-28 Thread John Holmes
gth of that 'word'. Right, that's why I told him to put a space around his image tags. Then, with that space, and a % width, it should (?) wrap. I think he was ending up with a long 'word' like you were saying; only made of image tags. etc... so it would not wrap

RE: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread John Holmes
It means your query failed. www.php.net/mysql_error ---John Holmes... > -Original Message- > From: Dan McCullough [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 3:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Supplied argument is not a valid MySQL result reso

RE: [PHP] Hey PHP PPL - Great Question !!!

2002-04-28 Thread John Holmes
Yes > -Original Message- > From: Vins [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 3:52 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Hey PHP PPL - Great Question !!! > > Session Data. > > What is the best. > to save in database, or to save as file ??? > > let me know. > >

RE: [PHP] register_globals=Off Question

2002-04-28 Thread John Holmes
You are missing an ending quote to begin with. Either add it in and use braces, or remove the quotes. action = '' or... action = '' or... action = '' Adapt to your needs... ---John Holmes... > -Original Message- > From: Kirk Babb [mailto:[EMA

RE: [PHP] Date and Time

2002-04-28 Thread John Holmes
What version of PHP, OS, web server, etc are you running? Is that the exact code you used? Did you try it in a file all by itself and did it return the same result? ---John Holmes... > -Original Message- > From: baldey_uk [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 200

RE: [PHP] Append a line to a Text File

2002-04-28 Thread John Holmes
How about you send us your code, because you're the one doing something wrong. "a" is what you want, if it's not working, then there is an error in your code or logic. ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent

RE: [PHP] append line to text file HELP !!!

2002-04-28 Thread John Holmes
Do you read the replies that were sent to you. Where did you get file() from and why are you using fopen() to write to a file?? You're lucky Miguel is such a nice guy and helping you out. ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] >

[PHP] reg-ex again

2002-04-29 Thread John Fishworld
I'm trying to find files in my array for example ="lg_imode.gif" and ="/db/imodeklein/edgar-IMODE-1-.gif" I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I' m having problems with the correct regex At the moment I'

Re: [PHP] Re: reg-ex again

2002-04-29 Thread John Fishworld
No the problem is I'm reading a file into an array and then need to change any of the links in the file from relative links to absolute links ! So that my lg_mode.gif gets the full server path in front of it http://www.ltest.com/lg_mode.gif and exactly the same with the other one but of course I

Re: [PHP] Re: reg-ex again

2002-04-29 Thread John Fishworld
r path and written to the file ! > On Monday 29 April 2002 17:10, John Fishworld wrote: > > No the problem is I'm reading a file into an array and then need > > to change any of the links in the file from relative links to absolute > > links ! > > So that my

[PHP] RE:

2002-04-29 Thread John Holmes
PHP cannot open that file. If you’re on a *nix type system, adjust the permissions of the file so that the user that PHP runs as has access to the file. Also, the beginning / is probably causing trouble, because it’s looking from the root of your server for a file named public_html. ---John

RE: [PHP] text problem.

2002-04-29 Thread John Holmes
t if you search. ---John Holmes... > -Original Message- > From: r [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 2:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP] text problem. > > Greetings all, > Special greetings to all my new PHP list pals, yo

[PHP] More reg-ex probs

2002-04-29 Thread John Fishworld
I'm trying to find files in my array for example ="lg_imode.gif" and ="/db/imodeklein/edgar-IMODE-1-.gif" I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I' m having problems with the correct regex At the moment I'

Re: [PHP] create textfile if not existing?

2002-04-29 Thread John Fishworld
This works but the "w" means that it writes over whats already in the file (look at the manual about fopen for more details) $new_file = "txt/whatever.txt"; $fh = fopen($new_file , "w"); // write the changed new file fputs ($fh, $new_code); // now close the f

<    10   11   12   13   14   15   16   17   18   19   >