RE: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread John Holmes
The only problem I can see is that you have a column named 'desc' which is a reserved word. It can cause weird results some times, but seems like it would cause an error Don't know what to tell you... ---John Holmes... > -Original Message- > From: Austin W. Ma

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
You don't have MSSQL support in your PHP installation. Uncomment the line in PHP.ini that loads the MSSQL .dll Use a phpinfo() file to see what modules are loaded. You're making this hard on yourself...PHP is easy to learn. ---John Holmes... > -Original Message- >

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
No...remove the semi-colon to uncomment it. Restart your web server. Create a page that has just the following line in it: Save it to a file with a .php extension and call it up through your web server. Examining that page will tell you what modules are loaded. ---John Holmes

RE: [PHP] How to findout if the file is over

2002-04-29 Thread John Holmes
for($Cnt=0;$Cnt<$num_emails;$Cnt++) ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 7:39 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to findout if the file is over > > I've got the following pr

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
Maybe, but I believe he's trying to connect to MSSQL, which uses mssql_* functions. ---John Holmes... > -Original Message- > From: hugh danaher [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 8:36 PM > To: php > Subject: Re: [PHP] What's wrong

RE: [PHP] parse error after ?>

2002-04-29 Thread John Holmes
Check again. You're missing a closing bracket or an ending quote... something along those lines. ---John Holmes... > -Original Message- > From: Ironfroggy [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 9:41 PM > To: [EMAIL PROTECTED] > Subject: [PH

[PHP] regular expressions help please

2002-04-30 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] regular expressions help please

2002-04-30 Thread John Fishworld
still show even ! I've already got from the original file the original location http://www.whatever.com and now want to insert that in front of the gif files ie $imode_code[$i] = eregi_replace("( On Tuesday 30 April 2002 16:31, John Fishworld wrote: > > I'm trying to find files i

RE: [PHP] populating textboxes & list boxes from database fields

2002-04-30 Thread John Holmes
r to use global arrays and functions to create select boxes. Makes for cleaner code. ---John Holmes... > -Original Message- > From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 4:30 AM > To: [EMAIL PROTECTED] > Subject: [PHP] populating te

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
_1\\0",$imode_code[$i]); // $imode_code[$i] = eregi_replace("([^\"]+[a-z_]+[\.php]+[\"$])", "$next_path_1\\0",$imode_code[$i]); // replace imode pictos with a real gif $imode_code[$i] = ereg_replace("&#([0-9]{5});" , "" , $imode_code[$i] ); //

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
  http://www.baesurl.com/imenu/";>i-menu > On Tuesday 30 April 2002 19:43, John Fishworld wrote: > > > $imode_code = file("$url_file"); > > $file_name = basename($url_file); > > $path = dirname($url_file); > > $stripped_path = eregi_replace("^(

[PHP] mail() errors and alternatives

2002-04-30 Thread John Hughes
$body, $headers to a PHP script at the other domain and return some notification that the send did not report errors? TIA, John Hughes http://jomari.com __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
Thanks after playing about with that I've got the following which does seem to work ! $imode_code[$i] = eregi_replace("(src=)(\")([a-z0-9_\/-]+\.gif)(\")", "\\1\\2$path/\\3\\2", $imode_code[$i]); Very very very slowly getting the hang of regexs ! What does your /i do at the end ??? Thanks > T

Re: [PHP] regular expressions help please

2002-04-30 Thread John Fishworld
aha ! thats very strange then because mine works at the moment but if I add the /i at the end then it doesn't ! > On Wed, 1 May 2002, John Fishworld wrote: > > Thanks after playing about with that I've got the following which does seem > > to work ! > > > >

RE: [PHP] Help on master detail

2002-04-30 Thread John Holmes
> 1. Can u guys provide any links on php script master details forms? http://www.google.com/search?sourceid=navclient&querytime=B&q=php+script +master+details+forms > 2. data grids? http://www.google.com/search?sourceid=navclient&querytime=-ZMXjB&q=data+ grids ---Jo

RE: [PHP] mail() errors and alternatives

2002-04-30 Thread John Holmes
There are some classes that use sockets to send mail by connecting directly to an SMTP server. Look on hotscripts.com or phpclasses.com (.org?) ---John Holmes... > -Original Message- > From: John Hughes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 10:01 AM >

RE: [PHP] Login with Text Files

2002-04-30 Thread John Holmes
Why do you even bother? Just name your file SFISFWEF.html and have that as your password. If security isn't important, then don't use it at all. And please don't program anything for anyone else. ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMA

RE: [PHP] Hex2Bin??

2002-04-30 Thread John Holmes
This one will actually remove money from your bank account if you pass the constant PHP_TAKE_MY_MONEY as the 10th argument. ---John Holmes... > -Original Message- > From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 8:06 PM > Cc: [EMA

RE: [PHP] session expiry

2002-05-01 Thread John Holmes
That's not what a session if for. You'll have to set your own cookie to remember who the person is, and start a new session for them when they return. ---John Holmes... > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01

RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread John Holmes
P jobs, they'll subscribe to an ASP list. I wouldn't have anything to do with a company that does this. Keep you SPAM to yourself next time and stop wasting my time. v/r John Holmes > -Original Message- > From: Jacky Kenna [mailto:[EMAIL PROTECTED]] > Sent: Wednesday,

RE: [PHP] javascript variables from...

2002-05-01 Thread John Holmes
You realize the page will have to refresh to do this? Put the elements in the URL to the next page, or into hidden elements in a form. ---John Holmes... > -Original Message- > From: Brian McGarvie [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 4:28 AM > To:

RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread John Holmes
or learn how to write a decent job description that accurately describes what you're looking for. I'm sure other people agree with me. I should Cc: your message and response to all of the PHP lists you spammed to so everyone can know what kind of "company" you are running. v/r

RE: [PHP] Windows based Mail() problem (newbie)

2002-05-01 Thread John Holmes
ose could be handled differently on different versions of the browser on different OSs. ---John Holmes... > -Original Message- > From: Kim Kohen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 5:27 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Windows based Mail() problem (ne

[PHP] session variables and classes?

2002-05-01 Thread John Ngo
does anyone know if a session variable set within a class is accessible outside the class and by other pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Editors

2002-05-01 Thread John Fishworld
m hooked on TextPad. Let us know if you have any > experience using Dreamweaver MX. > > ---John Holmes... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread John Holmes
n why you need to do this? You can call a function name with a variable. Like for your example $variable = "new_func"; $variable("data"); That'll work. Explain what your trying to do and we can probably help you find a better approach. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread John Holmes
There is a session problem with 4.1 If register_globals is ON, then use session_register(). If it's off, then use $_SESSION["name"] = "value"; and the value will automatically be registered. ---John Holmes... > -Original Message- > From: Adam Douglas [m

RE: [PHP] Read filename and good manual

2002-05-01 Thread John Holmes
is listserve, forums like on Devshed.com, and some tutorials, you're good to go. You can download a windows help file version of the manual, too. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] bumping up hour by one

2002-05-01 Thread John Holmes
Doesn't matter, PHP will juggle the type and make it a number. What do you get for results, these look like they should work. Are you getting errors or are you getting odd results? ---John Holmes... > -Original Message- > From: Tom Beidler [mailto:[EMAIL PROTECTED]] > S

[PHP] Opinions Wanted

2002-05-02 Thread John Fishworld
Just a general question of the best way to do it ! I've got a job search site with mysql at the back of it ! You choose on the first page - type of job, where and other bits, go to the next page where query is done and then lists the jobs available! Whats the best way of keeping this page tempora

Re: [PHP] Re: tutorial on global variables

2002-05-02 Thread John Hughes
ek disabled mail() in the PHP build.) John Hughes --- Philip Olson <[EMAIL PROTECTED]> wrote: > An issue/confusion of register_globals, global, and > variable scope exists out there; here are some thoughts: > > a) As of PHP 4.2.0, register_globals default

RE: [PHP] Problems upgrading PHP..

2002-05-02 Thread John Holmes
and there are new super-global arrays. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SESSIONS

2002-05-02 Thread John Holmes
reate it. On the receiving end, PHP can take GET, POST, or COOKIE data from the user. If you want to send something to PHP, send it through one of those methods. ---John Holmes... > -Original Message- > From: Morten Nielsen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 200

RE: [PHP] Search engine indexing

2002-05-02 Thread John Holmes
om or PHPbuilder.com. ---John Holmes... > -Original Message- > From: Charl [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 1:08 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Search engine indexing > > Are PHP files indexed the same way as plain HTML files by sea

RE: [PHP] PHP with MySQL

2002-05-02 Thread John Holmes
mysql_connect("host","username","password"); If there is no password, leave it blank. "host" is the name or IP address of the MySQL server. Set it to localhost if it's on the same machine as the script. ---John Holmes... > -Original M

Re: [PHP] Re: tutorial on global variables

2002-05-02 Thread John Hughes
ned off unexpectedly? Other than the security reasons, is there any disadvantage to adding this line? John Hughes --- Philip Olson <[EMAIL PROTECTED]> wrote: > > I have several scripts that take it for granted PHP will assign > > variables to the information in the URL as in

[PHP] Re: srand thought

2002-05-03 Thread John Lim
Hello Gerard, The point is that we wanted adodb to work "out of the box" so that is why srand( ) is called. You can do it yourself if you want to (and comment out the srand) , or let adodb do it for you. Regards John "Gerard Samuel" <[EMAIL PROTECTED]> wrote in messa

RE: [PHP] Re: tutorial on global variables

2002-05-03 Thread John Holmes
Just CPU time to make all of the new variables. ---John Holmes... > -Original Message- > From: John Hughes [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 2002 9:58 PM > To: Philip Olson; [EMAIL PROTECTED] > Subject: Re: [PHP] Re: tutorial on global variables >

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread John Holmes
There's a whole section in the manual on it. There is a log_error() or errorlog() function that'll write your errors to a file of your choosing. ---John Holmes... > -Original Message- > From: .ben [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 4:04 AM >

RE: [PHP] PHP editing environment

2002-05-03 Thread John Holmes
kes a minute. ---John Holmes... > -Original Message- > From: Pag [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 4:59 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP editing environment > > > Hi, i am new to the list and i am quite impressed with whats g

RE: [PHP] Fatal error: Call to a member function on a non-object in /www/xynz on line 19

2002-05-03 Thread John Holmes
You're trying to call a function within an object. Something like Something->getthis(); Which is not a "normal" PHP function. Show your code. You're probably just calling it wrong. ---John Holmes... > -Original Message- > From: Richard Brenner [mailto:[EMA

RE: [PHP] Help php MySql link

2002-05-03 Thread John Holmes
> $db = ("localhost","databasename","databasepassword"); maybe add in a MySQL_connect() somewhere in there??? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php zip/store locator code.....

2002-05-03 Thread John Holmes
Try this: http://www.phpclasses.org/browse.html/package/522.html ---John Holmes... > -Original Message- > From: Andras Kende [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 1:23 PM > To: [EMAIL PROTECTED] > Subject: [PHP] php zip/store locator code. > &

RE: [PHP] if cant use header what should i use? or how to do this?

2002-05-03 Thread John Holmes
ore hand? It's not going to be shown, anyhow. Any page with this problem needs to have it's logic rethought. If you can't or are unwilling to do that, then use output buffering. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread John Holmes
Except that the file can't exist. If it does, fopen() will cause an error. You can use ftp_connect() instead...as per the MANUAL. ---John Holmes... > -Original Message- > From: serj [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 5:24 PM > To: Mike Eheler >

RE: [PHP] I want to use a mailer other than sendmail

2002-05-03 Thread John Holmes
ing, for example, you would put mail.mindspring.com instead of localhost. ---John Holmes... > -Original Message- > From: Alex Shi [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 6:52 PM > To: [EMAIL PROTECTED] > Subject: [PHP] I want to use a mailer other than sendmail

RE: [PHP] How to save records from MySQL in separate files?

2002-05-04 Thread John Holmes
Get your data, and write it to a file with fopen()/fwrite() ---John Holmes... > -Original Message- > From: Yura [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 2:40 AM > To: [EMAIL PROTECTED] > Subject: [PHP] How to save records from MySQL in separate files?

RE: [PHP] Javascript function

2002-05-04 Thread John Holmes
No. PHP is server side, Javascript is client side and their code does not mix. ---John Holmes... > -Original Message- > From: Morten Nielsen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 2:42 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Javascript function

RE: [PHP] Sessions

2002-05-04 Thread John Holmes
Yes, modify your php.ini file to tell PHP where to write the session to. It's trying to write it to /tmp, which is either not a valid file, or PHP doesn't have permissions to write a file there. ---John Holmes... > -Original Message- > From: Alex Francis [mailto:

RE: [PHP] Message isn't received in form mailer

2002-05-04 Thread John Holmes
> $Mensagem = $coments; Where is $coments coming from? Why do you assign a variable to a variable, without changing anything? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP 4.2.0 and the GET method URLs

2002-05-04 Thread John Holmes
Have you tried using $_GET["name"] to get the value? ---John Holmes... > -Original Message- > From: Dylan Fitzgerald [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 9:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP 4.2.0 and the GET method URLs

RE: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread John Holmes
Alternative methods are listed here: http://www.php.net/manual/en/control-structures.alternative-syntax.php ---John Holmes... > -Original Message- > From: David Jackson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 1:28 PM > To: [EMAIL PROTECTED]; [EMAIL PROTEC

RE: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread John Holmes
Have you tried looking at a phpinfo() page and seeing what variables are available? Make a page with just the following line in it and load it up through your web server. ---John Holmes... > -Original Message- > From: Kyle Gibson [mailto:[EMAIL PROTECTED]] > Sent: Saturda

RE: [PHP] global variables

2002-05-04 Thread John Holmes
This is simpler than cookies?? Anyway, that's how you have to do it. Fopen(), fwrite(), fclose()...not any way simpler that I know of. ---John Holmes... > -Original Message- > From: Jule [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 6:23 PM > To: [EMAIL PRO

RE: [PHP] HTML to mysql - from msql to html

2002-05-04 Thread John Holmes
www.php.net/nl2br ---John Holmes... > -Original Message- > From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 11:27 PM > To: PHP General List > Subject: [PHP] HTML to mysql - from msql to html > > Hey PHP General List, > > I

RE: [PHP] Initializing a db $var and retrieving a required CONSTANT

2002-05-05 Thread John Holmes
Neither of those change. You don't have to use stripslashes() on incoming DB data, unless magic_quotes_runtime is ON in php.ini. ---John Holmes... > -Original Message- > From: Dreamriver.com [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 05, 2002 2:33 AM > To: [EMAI

RE: [PHP] Defining PHP varibles from URL

2002-05-05 Thread John Holmes
> > file.php?file=inc.foobar.php > - > include("include/$file"); > That doesn't fix anything... file.php?file=../../../etc/passwd Just a matter of a few tries to see how many directories you have to go up... ---John Holmes... --

[PHP] function sql question

2002-05-05 Thread John Fishworld
I've got a small function which checks city name with post codes And because this needs to be checked in several scripts I want to have it in my common functions file and include it ! require ("common_funtions.inc"); and then use it if (!check_city_from_plz($t_zipcode)){ echo "Your city does n

RE: [PHP] replace question

2002-05-05 Thread John Holmes
Are you having trouble pulling the data out of the file, or creating the link? Do you want a link created for every row? What is the makeup of the file? Is array[0] the URL, and array[1] the desription? If it's just the link you need, that's easy... echo "" . $array[1] .

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
>return 1; >return $city_id; >return $cityname; You can't return 3 values...try returning an array, instead. $ret[0] = $city_id; $ret[1] = $cityname; return $ret; or... $ret["City_ID"] = $city_id; $ret["CityName"] = $cityname; return $ret; -

Re: [PHP] function sql question

2002-05-05 Thread John Fishworld
ray, instead. > > $ret[0] = $city_id; > $ret[1] = $cityname; > return $ret; > > or... > > $ret["City_ID"] = $city_id; > $ret["CityName"] = $cityname; > return $ret; > > ---John Holmes... > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
It will work; you're just doing something wrong. Do you want to fix it, or keep doing it this way? ---John Holmes... > -Original Message- > From: John Fishworld [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 05, 2002 10:55 AM > To: [EMAIL PROTECTED]; 'PHP-Genera

RE: [PHP] Please, can you help me?

2002-05-05 Thread John Holmes
RTM... www.php.net/flock ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 03, 2002 2:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Please, can you help me? > > Hello! > I have a big problem an

RE: [PHP] Re: help!!!

2002-05-05 Thread John Holmes
And I need a PHP script to help me take over the world. It has to be fewer than 666 lines and I don't have MySQL. Also, could you write the PHP in ASP, please? ---John Holmes... > -Original Message- > From: George Nicolae [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 05,

RE: [PHP] Newbie needs compile

2002-05-06 Thread John Holmes
should redirect output to a file or email. You can use the -dump switch for lynx to dump any output that does occur. I know he said he did not want to invoke it from a browser, but I think he meant that he didn't want to have to physically go to and load up the page himself. ---John Holmes

[PHP] Confirm Remote File exists !

2002-05-06 Thread John Fishworld
I've got a form where people can enter a link into ! What's the best and quickest way of confirming if the link exists ! Just use fpassthru and see if you get an error ? Or has anyone got any better suggestions ?? Regards John -- PHP General Mailing List (http://www.ph

RE: [PHP] MYSQL ERROR CONNECT

2002-05-06 Thread John Holmes
e manual page on mysql_connect(), you're missing some arguments. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mcrypt...

2002-05-06 Thread John Holmes
Did you restart your server and read the manual pages on mcrypt to see if you need any other files? Some extensions can only be enabled at compile time. ---John Holmes... > -Original Message- > From: Brian McGarvie [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 3:5

Re: [PHP] Re: Forum with PHP, without using mySQL..

2002-05-06 Thread John Fishworld
Why bother posting a perl forum here ! YaBB is a leading FREE, downloadable Perl forum that allows you to provide a real-time chat and support system for your visitors. While chat programs allow people to talk directly, you have to be on them 24/7 to please everyone. With forum software like YaBB

[PHP] escaping quotes in forms and redisplaying variables in form fields

2002-05-06 Thread John Hughes
but I'd prefer to be able to redisplay at text form field if possible. TIA, 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] Is the browser still open? if not then I want to kill the script

2002-05-06 Thread John Holmes
Yep... http://www.php.net/manual/en/features.connection-handling.php ---John Holmes... > -Original Message- > From: Jarrad Kabral [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 6:16 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Is the browser still open? if not

RE: [PHP] Array usage affecting server

2002-05-10 Thread John Holmes
Are you loading the entire result set of the query into an array, or just row by row? ---John Holmes... > -Original Message- > From: Kevin Meredith [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 11:48 PM > To: PHP > Subject: [PHP] Array usage affecting

[PHP] Best way for date/time

2002-05-11 Thread John Fishworld
nt to show the date later in the european from ie day/month/year ! What is the best format to use ?? Thanks in advance reagrds John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way for date/time

2002-05-11 Thread John Fishworld
lol ! no thats not what I meant ! what's best to put into MySQL datetime from MySQL now() or from php date ! Regarding the format - its a german site so not expecting many yanks there ! :-)) > On Saturday 11 May 2002 19:42, John Fishworld wrote: > > Due to the large variety of

Re: [PHP] Best way for date/time

2002-05-11 Thread John Fishworld
Okay so I've then got 2002-05-08 and whats then the best way to manipulate it regarding plus 3 days or plus 4 weeks ? > > lol ! no thats not what I meant ! > > what's best to put into MySQL > > datetime from MySQL > > now() > > or from php date ! > > > > Regarding the format - its a german si

RE: [PHP] Any difference between these 2 forms of syntax?

2002-05-11 Thread John Holmes
es embedded within them. Strings enclosed with ' will not have variables evaluated within them. $name = "John"; Echo "My name is $name"; Echo 'My name is $name"; The first echo will output "John" as the name, the second one will output a literal &quo

RE: [PHP] protecting downloads with php

2002-05-11 Thread John Holmes
Either store your files in the database (I hate saying that), or use .htaccess to protect the directory. ---John Holmes... > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 11, 2002 1:59 AM > To: php-general > Subject: [PHP] prote

RE: [PHP] protecting downloads with php

2002-05-11 Thread John Holmes
Store your files outside of the webroot if you use this method. Then they can't type in the address directly (otherwise this doesn't fix anything). ---John Holmes... > -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 11, 200

RE: [PHP] Cookies

2002-05-11 Thread John Holmes
Set a cookie, redirect to same page, and see if cookie is sent to you. ---John Holmes... > -Original Message- > From: Nookie [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 11, 2002 4:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Cookies > > Hi. > > Is t

RE: [PHP] Newbie question to everybody....PHP

2002-05-11 Thread John Holmes
hat hard to understand. Don't skip over them, read the chapter a couple times if you have to... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best way for date/time

2002-05-11 Thread John Holmes
.similar to date() in PHP. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploaded File OverWriting Old File

2002-05-11 Thread John Holmes
; $img1_name = "n"+$img1_name; > } > > should be: > > if(file_exists($img1_name)) { > $img1_name = "n" . $img1_name; > } Umm...wouldn't you want to use file_exists("mjpalpics/$img1_name") instead? Otherwise you're not checking for it

RE: [PHP] Serialize/URLencode query...

2002-05-11 Thread John Holmes
$name from the previous page in the variable $_SESSION["name"] It's a little different if you're not using PHP 4.2, so read the manuals on sessions... ---John Holmes... > -Original Message- > From: Glenn Sieb [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 11, 20

RE: [PHP] Yahoo/Cobalt servers/PHP

2002-05-11 Thread John Holmes
> Am I missing something here? If one wants to have dynamic pages and uses > PHP, > then *some* DB has to be available, correct? Ideally, yes, you'd want a database. But you could do it with text files... ---John Holmes... -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Raising a custom error -- how?

2002-05-12 Thread John Holmes
How about looking through the table of contents... ?? XXVII: Error Handling and Logging Functions http://www.php.net/manual/en/ref.errorfunc.php ---John Holmes... > -Original Message- > From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12,

RE: [PHP] random order

2002-05-12 Thread John Holmes
Nothing to do with PHP... SELECT * FROM table ORDER BY RAND(); ---John Holmes... > -Original Message- > From: Jule [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 9:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP] random order > > Hey guys and gals, > I

RE: [PHP] help with sort problem

2002-05-12 Thread John Holmes
kind of "hack" you come up with in PHP is going to be a waste of time and memory. ---John Holmes... > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 9:23 AM > To: php-general > Subject: [PHP] help with sort pr

RE: [PHP] Is This Possible? (Database - PHP)

2002-05-12 Thread John Holmes
x27; in your host. You hosting provider, if they're any good, will know all about this. It's hard to talk people into giving you access, though, because they are generally pretty paranoid. ---John Holmes... > -Original Message- > From: r [mailto:[EMAIL PROTECTED]]

RE: [PHP] random order

2002-05-12 Thread John Holmes
is up into two tables. ---John Holmes... > -Original Message- > From: Jule [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 1:28 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: [PHP] random order > > hmm it got a little mor

RE: [PHP] inserting data to mutliple mysql tables

2002-05-12 Thread John Holmes
You have to do separate inserts...you can't JOIN inserts like that... ---John Holmes... > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 8:38 PM > To: Php > Subject: [PHP] inserting data to mutliple mysql tables > &g

RE: [PHP] random order

2002-05-13 Thread John Holmes
uery would work in other database programs, too. ---John Holmes... > -Original Message- > From: Neil Zanella [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 12, 2002 9:13 PM > To: John Holmes > Cc: 'Jule'; PHP General Mailing List; MySQL Mailing List > Subjec

[PHP] php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i can't upload jpegs cause their filetype appears to be 'image/pjpeg' does anyone know of what could be happening here? -- PHP General Mailing List (http://www.

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
ote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I guess you could check the $userfile_type for the correct type. > > > "John Ngo" <[EMAIL PROTECTED]> schreef in bericht > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > basically i've

RE: [PHP] Re: PHP and mySQL

2002-05-13 Thread John Holmes
Why can't you use one query? UPDATE Book2 SET stock = stock - $quantity WHERE stock >= $quantity AND booktitle = '$booktitle' ---John Holmes... > -Original Message- > From: Matthew Ward [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 11:52 AM > T

RE: [PHP] inputted value not being correctly ready by php

2002-05-13 Thread John Holmes
'string', which will be true for every row in every table. It's no wonder you're getting an odd result. Also, are you trying to display the values from the database here? There is no fetch_* function to get anything out of the result set. Where is $id coming from?? I can

RE: [PHP] inputted value not being correctly ready by php

2002-05-13 Thread John Holmes
Is register globals on in your PHP.ini? Are you sure there isn't a cookie or session value of $user that's overwriting your POST value? I really hope this is the case, it's such a perfect argument for why PHP 4.2 is the way it is... :) ---John Holmes... > -Original M

RE: [PHP] make hitting enter in a text box =

2002-05-13 Thread John Holmes
will, umm, replace the "\n" with a "". ---John Holmes... > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 9:47 PM > To: 'Rob Packer'; [EMAIL PROTECTED] > Subject: RE: [PHP] make hitting enter in a

RE: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread John Holmes
se up extra time (processing power) unzipping things or not. Also, you're using more processing time on your computer having to do the zipping for every request, too. ---John Holmes... > -Original Message- > From: Girish Nath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14

RE: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread John Holmes
f your clients, etc. Maybe it's not that big of a deal, but I just don't want some newbie seeing this and thinking that it's going to be the answer to all of their problems. I may even look into it for a couple large pages that I have. You can control it on a page-by-page basis,

RE: [PHP] Using PHP on Windows for the first time

2002-05-14 Thread John Holmes
Your error_reporting is probably set to different levels. www.php.net/error_reporting ---John Holmes... > -Original Message- > From: Bob Strasser [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 9:48 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Using PHP on

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