Re: [PHP] GZIP Question

2004-02-24 Thread Richard Davey
the whole thing at once, so I dare say you're being sent a stream of encoded data rather than one big gzip file. I might be wrong, but it makes sense if it does work like this. Perhaps someone else can confirm. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -

Re: [PHP] session: permission denied (13)

2004-02-24 Thread Richard Davey
-populate the old session when moving back and forth. Hardly a tidy solution but I couldn't think of another way at the time (and still can't). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to obtain the txt content of an HTML formated document?

2004-02-25 Thread Richard Davey
ags() to clean it up. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
s "; etc.. you get the idea. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Emails

2004-02-25 Thread Richard Davey
e to keep J> our mail list clean. Set the reply-to address to come back at a script that parses out that sort of information. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
). You're probably still using ', this won't allow variables inside it to be parsed. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
knew? Yup it does indeed - see my reply to your previous message saying just this :) In my original reply to you I had swapped the single quote for a double for you, but it's easy to miss I guess. Glad you got it sorted. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.ht

Re: [PHP] PEAR file??

2004-02-25 Thread Richard Davey
r time looking there I would check to see if you don't have it in a site back-up or something. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disabling the back button

2004-02-25 Thread Richard Davey
o you need to be prepared for this eventuality also. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] [php] if $sql has returned something

2004-02-25 Thread Richard Davey
. mysql_query will return FALSE if the query is invalid. If the query is perfectly valid SQL, but just doesn't return anything, then you need to use mysql_num_rows() instead - if this is equal to nothing then nothing was returned. -- Best regards, Richard Davey http://www.phpcommunity.or

Re[2]: [PHP] [php] if $sql has returned something

2004-02-25 Thread Richard Davey
clean exit if an error occurs. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strstr

2004-02-27 Thread Richard Davey
an "@example.com"Thanks Use strpos() to locate the character (or string) you want and substr() it. Something like: $search = "@"; $email = "[EMAIL PROTECTED]"; $user = substr($email, 0, strpos($search)); -- Best regards, Richard Davey http://www.phpcommunity.org

Re: [PHP] Weird Problem with INPUT tag

2004-02-29 Thread Richard Davey
ll option enabled. See the preferences to turn the yellow background off. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] How to get the auto-incremented value?

2004-03-01 Thread Richard Davey
t query from table order by id desc Why waste time running another query? Get the value from mysql_insert_id() instead. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FTP alternative to copy() ?

2004-03-01 Thread Richard Davey
the file to a temp location before uploading it again. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Richard Davey
the following (combined they'll give you the full address): $_SERVER['HTTP_HOST']; $_SERVER['REQUEST_URI']; -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined offset

2004-03-01 Thread Richard Davey
undefined is $i. But $i is defined is JP> the for statement above it. $i should be in single-quotes, although it isn't the cause of the error. Your var (inputs) isn't defined in your class. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General

Re: [PHP] Question about magic quotes NEWBIE QUESTION

2004-03-01 Thread Richard Davey
over) in which case you cannot ever assume they will have magic quotes on so do some checks first to find out (there are PHP functions to do this). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-02 Thread Richard Davey
t fails by sending an http header of 0 bytes in size. It's not just the post form data that is lost, everything is. So trap that and you should, theoretically, with a little browser detection mojo be able to at least error gracefully. -- Best regards, Richard Davey http://www.phpcommunit

Re[2]: [PHP] Adverse performance of undefined variables and indexes?

2004-03-02 Thread Richard Davey
re are no errors, it won't need to do this. It will be pretty hard to find a script lengthy enough to give this a solid bench test, but I would honestly be amazed if B outperformed A. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Richard Davey
will not propagate (unless you make them). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session and MS-IE6

2004-03-02 Thread Richard Davey
nt even exists or not before checking to see what it equals. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] god damn "technical outsourcing.com"

2004-03-02 Thread Richard Davey
nting vent I'm going to get another one of the above. Ack! -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reorder array

2004-03-02 Thread Richard Davey
[seqnum] => 2 DC> [roomdesc] => Standard DC> ) See the array_multisort() function. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Session and MS-IE6

2004-03-02 Thread Richard Davey
ists before checking the value, regardless. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] god damn "technical outsourcing.com"

2004-03-02 Thread Richard Davey
Hello Ryan, Tuesday, March 2, 2004, 2:35:23 PM, you wrote: RA> Also anybody else getting from AirAndHotel.com? Yes, AirAndHotel.com are a pain in the ass too. I don't think *anyone* is in charge of this list. It just runs... -- Best regards, Richard Davey http://www.phpcommunity.

Re: [PHP] readfile error

2004-03-02 Thread Richard Davey
in 'insert path here' on line 6 A> Does anyone have any suggestions as to what is different or could A> be causing this problem? I have looked through the php.ini files A> and cannot determine anything that could cause this. What's line 6? I'll wager you&#x

Re: [PHP] numeric characters

2004-03-02 Thread Richard Davey
tered to ensure they are numbers and error out if not. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POST form header

2004-03-03 Thread Richard Davey
#x27;ll be happy to rtfm if someone can tell me the function name I need. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] my checkbox array striped ?

2004-03-03 Thread Richard Davey
se to iterate through a $_POST array, it should work for you too: If an element of $_POST is an array this won't work, you would need to do something like: array_walk($_POST['array_name'], 'strip') for that particular array instead. -- Best regards, Richard Davey ht

Re: [PHP] Session dilemma

2004-03-03 Thread Richard Davey
tor will NEVER see this - it happens "behind" the scenes so you can walk around your sites cleaning up the cookies as you need and finally dumping the user back onto a friendly logged-out page. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] correctly replaced?

2004-03-04 Thread Richard Davey
to me, I would have thought it should be: $val_matrix[$i][$k]= OCIResult($stmt, "$column_array"); I can't see why you need the fullstops (periods). The above will work IF $column_array = COLUMN_NAME as required. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/

Re: [PHP] regex to change ' to ?

2004-03-04 Thread Richard Davey
); Use this instead of a reg exp for such a simple task, it's quicker and will cope with the whole array in one command. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
ot; files. If you know this all already, sorry! :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
Hello Todd, Thursday, March 4, 2004, 6:52:33 PM, you wrote: TC> How can I execute "window.close()" with php? You can't, PHP is a server side language. You can echo out the above JS using PHP, but you can't "force" it to happen. -- Best regards, Richard Davey

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
ange what it can be called, but I'm no Apache admin so I couldn't tell you how. I dare say it might be a httpd.conf setting somewhere. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess... why it is deleted by the server?!!!?

2004-03-04 Thread Richard Davey
eid=navclient&ie=UTF-8&oe=UTF-8&q=htaccess+tutorial -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Executing JavaScript

2004-03-04 Thread Richard Davey
has. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] memo fields

2004-03-04 Thread Richard Davey
as any other field. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: Parse error ???

2004-03-04 Thread Richard Davey
unning as "mike" and Apache owns the file the browser is uploading. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing parameters to include

2004-03-04 Thread Richard Davey
Your included file will already be able to see anything defined in the global scope (i.e. before it was included) without you doing a thing. Read the manual re: the include function (and probably variable scope while you're at it). -- Best regards, Richard Davey http://www.phpcommuni

Re: [PHP] Best way to do this (sub selects?)

2004-03-04 Thread Richard Davey
ns differently. You should find that doing a GROUP BY and then ORDER BY on the Topic field gives you the results back in the right sequence for what you want. Your display life in PHP will then be much simpler. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP G

Re: [PHP] What to do with my array?? Advise needed....

2004-03-05 Thread Richard Davey
to a session or some way of passing that array? Question - why on earth do these email addresses need to be placed into a FORM anyway? If all you are doing is emailing them from within PHP. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (htt

Re[2]: [PHP] looking for php talent...

2004-03-05 Thread Richard Davey
s they build? Hopefully I misunderstood what you meant here because it's not sounding too appealing yet. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advanced PHP Mailing List?

2004-03-05 Thread Richard Davey
et, but things are progressing well. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 28th of March - PHP Problems!

2004-03-05 Thread Richard Davey
e(0, 0, 0, $loop3_this_month, $loop3_this_day, S> $loop3_this_year)); ?>> I changed the date to show a little more detail (date("D M d Y") and it output: Sat Mar 27 2004 for me, which is exactly what it should. Suggest you start looking for something specific to your server/

Re[2]: [PHP] 28th of March - PHP Problems!

2004-03-05 Thread Richard Davey
the exact same thing. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] 28th of March - PHP Problems!

2004-03-05 Thread Richard Davey
date("D M d Y", gmmktime(0, 0, 0, 3, 28, 2004, 1)); Will give me Sun Mar 28 2004, because its a GMT date falling into BST. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date function

2004-03-05 Thread Richard Davey
04/2.jpg graphics/2004/3.jpg (etc) 1 = January, 2 = February, you get the idea. Then to display the correct one on your site all you would need is: "; ?> Or from within your HTML: .jpg"> -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP Gener

Re: [PHP] ASCII

2004-03-05 Thread Richard Davey
Hello csko, Friday, March 5, 2004, 4:02:07 PM, you wrote: c> Is there a function to convert a ASCII char to decimal or binary? Decimal = ord($str) Binary = decbin(ord($str)) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (h

Re: [PHP] scope problem

2004-03-05 Thread Richard Davey
e 2nd (internal) where loop has finished modifying it. Move $variable = 100 above the first where loop and see what happens. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning only a row count of 1?

2004-03-05 Thread Richard Davey
; Run your query directly in MSSQL and you'll see what gets returned. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP not browser independent?

2004-03-08 Thread Richard Davey
;phishing" error. There are no solutions. Have a dig around in the mailing list archives for links to various sites that give more details about it. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To uns

Re[2]: [PHP] PHP not browser independent?

2004-03-08 Thread Richard Davey
the problem - there is nothing you can do to fix it. You could however error trap it (i.e. check that the POST data is entirely empty) and prompt them to update IE? But that depends on your audience I guess (some people just won't know how/be able to). -- Best regards, Richard Davey http://www.

Re: [PHP] absolute path

2004-03-08 Thread Richard Davey
of results: dirname() pathinfo() realpath() -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (Some?) IE6 browsers submitting empty forms??

2004-03-08 Thread Richard Davey
JW> helps. http://support.microsoft.com/default.aspx?kbid=831167 -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 500 Internal Server Error.

2004-03-08 Thread Richard Davey
y of things. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hello world == 0 ?

2004-03-09 Thread Richard Davey
Hello test, Tuesday, March 9, 2004, 2:22:08 PM, you wrote: t> why is var_dump( 0 == 'hello world') TRUE and not FALSE? The same reason: intval('hello world') will equal 0. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP Gen

Re: [PHP] Pagination & MSSQL

2004-03-09 Thread Richard Davey
tatement and the closest thing AH> to that in mssql is either TOP n, or SET ROWCOUNT which does me no good. This should help: http://rosca.net/writing/articles/serverside_paging.asp -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://w

Re: [PHP] IE 6 hotix and header problem

2004-03-09 Thread Richard Davey
ess the EC> archive site to find it. http://support.microsoft.com/default.aspx?kbid=831167 -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with cookies on new server

2004-03-09 Thread Richard Davey
problem is that i am using cookies on the script with the T> setcookie() function. It looks like the cookies aren't getting T> created or anything. anyone have any ideas? Thanks Do they still have the old URL or an invalid path in them? Post the setcookie part of the code.

Re: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
e (without their knowledge) each time they come back to the site. Anyway, onto the meat of your question - give the cookie an expiry date well into the future so it persists until the visitor returns. Look at the help file for details on the attributes you need for setcookie. -- Best regards,

Re: [PHP] image header problem

2004-03-09 Thread Richard Davey
round the PHP tags or within the script itself. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Logout Problems

2004-03-09 Thread Richard Davey
using the Does it happen to ANY user or is there a pattern in the nature of this? Could it be the current IE bug with blank POST data causing the session to be wiped? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To un

Re[2]: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
issue a cookie of your own that keeps track and re-builds the session when they return. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control Structure Syntax Question

2004-03-09 Thread Richard Davey
no tangible benefit whatsoever. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
cessive build up of session data files on your server, depending on the popularity of your site. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
in your code. You could swap the 1 and the 0 to have the reverse effect - i.e. if it's turned off, enable it and then don't have "addslashes" anywhere. I see no reason why either method won't be as portable as the other so long as you are consistent. -- Best regards, R

Re[2]: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
ichard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time delay function?

2004-03-09 Thread Richard Davey
> program (this is not spam), and I don't want to be targeted as spam. Time for sleep() -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wysiwyg editor

2004-03-10 Thread Richard Davey
ubed.com isn't too bad at all. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-03-10 Thread Richard Davey
ass those values on the query string. What situation do you have that makes you ask this question? Perhaps with a little more detail we can explain further? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] what does this mean?

2004-03-10 Thread Richard Davey
Hello Harry, Wednesday, March 10, 2004, 12:55:44 PM, you wrote: $this->>styles['shadow'] = (boolean)$bool; HW> what does "(boolean)$bool" mean? It's casting the value ($bool) to a boolean (i.e. TRUE or FALSE). -- Best regards, Richard Davey http://www.phpco

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can see it easily. Instead of a FOR loop you could do a "while" loop checking to see the end of the $result set, i.e.: whil

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH> I get this error: mysql_num_rows(): supplied argument is not a valid AH> MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of y

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
ORDER BY style"; AH> $result = mysql_query($sql); AH> $total_records = mysql_num_rows($result); Try and put single quotes around the $type in your query. Especially if it's not numeric: $sql = "SELECT blah WHERE type='$type'"; Otherwise, the

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

2004-03-10 Thread Richard Davey
remove from it, add to it, etc. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-11 Thread Richard Davey
ly way I've found around this is to use a CGI compiled version of PHP (instead of an Apache Module) specifically for when uploading and run the CGI version as my user:group. Also if you host with Pair Networks they offer a PHPWRAP function which, effectively, does this for you. -- Best regards

Re: [PHP] Empty Post Variables

2004-03-11 Thread Richard Davey
he variables, and other times it goes through on the TS> first try. Sounds like the IE POST bug to me: http://support.microsoft.com/default.aspx?kbid=831167 -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re[2]: [PHP] Get "nice" variables from POST

2004-03-11 Thread Richard Davey
or "key"...or is that a RA> typo? It creates a variable variable :) A variable variable takes the value of a variable and treats that as the name of a variable. See Chapter 7 (Variables) of the PHP manual. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296

Re[2]: [PHP] OT Kinda - Top Posting

2004-03-11 Thread Richard Davey
(idiotic subscribers with autoresponders, virus mails, attachments, inane questions that blatantly haven't even tried looking at the manual, etc etc etc). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Get "nice" variables from POST

2004-03-12 Thread Richard Davey
s in PHP5 :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
ing to user a blank user, P> Any Ideas? You said that you use "apache" as the username for MySQL - is this something you've configured yourself? If not, it should be "root" and the password should be blank unless you have also set that? In which case it's missing f

Re[2]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
purposes, there is no harm in it. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello trlists, Friday, March 12, 2004, 6:48:03 PM, you wrote: tcc> Agreed, as long as he's not connected so someone can try to connect to tcc> the MySQL port. If he's connected that long and not running a firewall, he deserves it ;) -- Best regards, Richard Davey http://www.

Re[4]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[6]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
on't just remove the "user" and "password" parts, fill them in. If there is no password, put "". -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[8]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help for getimagesize

2004-03-13 Thread Richard Davey
12 = JB2 and 13 = SWC. JPX and JB2 are JPEG-2000 File Formats. Not sure about SWC, but JPC is a Jpeg2000 CodeStream. You can download the excellent FREE XnView from www.xnview.com which will load (and save) JPX and JB2 files (as well as hundreds of other formats). -- Best regards, Rich

Re[2]: [PHP] help for getimagesize

2004-03-13 Thread Richard Davey
Hello Norbert, Saturday, March 13, 2004, 3:13:10 PM, you wrote: NP> I'm sorry - bad reply ... :-( NP> Hi Richard, NP> unfortunately you err. NP> I use already XnView. NP> This program does not support the looked for formats. Yes, it does. Look harder. -- Best regards,

Re[2]: [PHP] help for getimagesize

2004-03-13 Thread Richard Davey
. No errors at all. This is XnView 1.68.1 on Windows XP. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] use of @ operator to suppress errors

2004-03-15 Thread Richard Davey
normal? Yes because @ suppresses the errors on function calls, not variables (which is all $_GET['this'] is). It's like saying @$this - i.e. as you can see, it doesn't make sense. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP Gen

Re: [PHP] help with storing multiple values in session variables.

2004-03-15 Thread Richard Davey
-- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP ftp web client

2004-03-15 Thread Richard Davey
Hello Mario, Monday, March 15, 2004, 11:40:45 AM, you wrote: MO> Can someone recommend me a good/stable PHP-FTP Web client? MO> I wasnt quite happy with the google search results :P Search hotscripts.com or Freshmeat.net -- Best regards, Richard Davey http://www.phpcommunity.org/wi

Re: [PHP] stripping content and parsing returned pages?

2004-03-15 Thread Richard Davey
om It will do EXACTLY what you need. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with mkdir() under windows.

2004-03-15 Thread Richard Davey
the 's and the directory BJC> returns an error. Is there a way around this? This works fine for me on a Windows XP box: how are you building the directory name? Or did you mean some other "special" characters? -- Best regards, Richard Davey http://www.phpcommunity.org/wi

Re: [PHP] failed to open stream: No such file or directory in

2004-03-15 Thread Richard Davey
hassle will be to define a global variable/constant called something like $basedir and set that. $basedir = "/var/www/html"; Now just use this in all your include lines: include "$basedir/lib/lib_main.php"; This will work from *anywhere* and not fail. -- Best regards, Richard Da

Re[2]: [PHP] failed to open stream: No such file or directory in

2004-03-15 Thread Richard Davey
Hello Mike, Monday, March 15, 2004, 6:15:04 PM, you wrote: MM> Is it possible in php.ini declare $basedir(for libraries)? Not exactly, but you can add a path to the include path list which should have the same end result. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/

Re: [PHP] PHP Certification

2004-03-15 Thread Richard Davey
already have those then I don't see how that expertrating thing can hurt, but don't bank on it holding too much sway. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] current url function

2004-03-15 Thread Richard Davey
ng... any LM> ideas? If you are running PHP as an Apache module (and not CGI) then a correctly validated user will have their details in: $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] There is a whole chapter on this (16) in the manual. -- Best regards, Richard Dave

<    2   3   4   5   6   7   8   9   10   11   >