[PHP] Re: Passing string variable to HTML TITLE tag fails within Netscape but works well within IE.

2002-10-15 Thread Owen Prime
Have you considering putting the inside a Cheers, Owen Prime http://www.noggin.com.au Dwalker wrote: > Passing string variable to HTML TITLE tag fails within Netscape but work > well within IE. > > I have a single page consisting of inventory items to be sold. When an > i

[PHP] Re: how to user

2002-10-15 Thread Owen Prime
("warthog", "guinness"); if you select the first two items. Cheers, Owen Prime http://www.noggin.com.au Khalid El-Kary wrote: > hi, > If i have a form that has a with multiple="ture" how would i be > able to retireve it's multiple values in the PHP scr

[PHP] Re: upload directory

2002-10-14 Thread Owen Prime
Just a thought from left field. Probably wont help much but if the clients side were willing to upload a zip file, you could decompress & expand it on the fly after uploading. Cheers, Owen Prime http://www.noggin.com.au Jennifer Swofford wrote: > Is there an easy way to upload an

[PHP] Re: file_exists for URLs

2002-10-14 Thread Owen Prime
Have a look at the fopen() function in the FileSystem Function section of the Docs. fopen() can open a file over http:// and I imagine it returns FALSE if it cant open it. If it doesn't return false, you could analyse the headers in $http_response_header. Hope this helps. Cheers, Owen

[PHP] Re: Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Owen Prime
Sorry, that should be window.opener.location.reload() instead of refresh(). Owen Prime wrote: > You will have to use mainly Javascript for this. What I have done in the > past is: > > STEP 1. > In the tag put a onSubmit argument which does a window.open(). This > should pop

[PHP] Re: Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Owen Prime
Brings the main window to the top window.close(); // Closes the popup window. This should sort you out. Cheers, Owen Prime http://www.noggin.com.au Monty wrote: > For a form that allows people to upload image files to the server, I'd > like to pop open a small browser wind

[PHP] Re: Odd Problem

2002-10-13 Thread Owen Prime
If you showed us the SQL your trying to execute and the table schema you may get more helpful responses. Cheers, Owen Prime http://www.noggin.com.au Stephen wrote: > Hello, > > I'm running a script that inserts a form's contents into a MySQL table. > However, when I

Re: [PHP] Detecting GD version

2002-10-13 Thread Owen Prime
Been there. The function still exists in GD < 2.0. Thats why it produces such a specific error message. Otherwise it would say function doesn't exist. Thanks for you input anyways. Cheers, Owen Prime http://www.noggin.com.au Andrew Brampton wrote: > try function_exists('im

[PHP] Detecting GD version

2002-10-13 Thread Owen Prime
y the "requires GD 2.0" error message is triggered before the argument validation errors. Anyone got a better idea? Thanks, Owen Prime http://www.noggin.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: MySQL back up

2002-10-09 Thread Owen Prime
Haven't really been following this thread but you may want to make sure that 1. mysqldump & gzip are executable by apache 2. $backupdir is writeable by apache 3. You have taken into consideration your php safe mode settings Cheers, Owen Prime http://www.noggin.com.au Ken wrote: &g

[PHP] Re: Extract HTML tags

2002-10-09 Thread Owen Prime
is in the php source for htmlstriptags. Note that Regex's are extremely expensive on large strings. Cheers, Owen Prime http://www.noggin.com.au Shawn McKenzie wrote: > I've loaded an html file into a string. What I'd like to do is create two > new strings: > >

[PHP] Re: displaying a select number of rows from a sql query

2002-10-09 Thread Owen Prime
nment. I would suggest that you use: while ($tmp = mysql_fetch_array($result)) { list($link, $title, $content) = $tmp; Cheers, Owen Prime http://www.noggin.com.au Keith Posehn wrote: > Ok, here is the question: > > I have a sql query, nothing special. It has 3 variables.

Re: [PHP] Image problem

2002-10-09 Thread Owen Prime
ose and reopen my browser to see >> these changes take place or is there something else I >> can do? >> >> Ben >> >> __ >> Do you Yahoo!? >> Faith Hill - Exclusive Performances, Videos & More >> http://faith.yahoo.com >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> -- Cheers, Owen Prime http://www.noggin.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Speeding up a Mysql Select

2002-10-08 Thread Owen Prime
while to execute... The timestamp fieldtype is varchar(10)... > Will I see any speed difference with a different column type? > > Any advice on how to speed this up would be greatly appreciated! :) > > Best Regards > Bob Irwin > Server Admin & Web Programmer > Plane

[PHP] Re: HTML and text email

2002-10-08 Thread Owen Prime
My advice would be to set your mail program's preferences to send messages in text & html (you can do it in NS or Moz), send yourself a message with a link or bold or something to make it an html message, then view the source. Cheers, Owen Prime http://www.noggin.com.au Chris C

[PHP] Re: PHP to Excel (csv)

2002-10-07 Thread Owen Prime
uot;" . str_replace("\"", "\"\"", $value) . "\""; } else { return $value; } } Run this function on each value then implode them with a comma and put a \n at the end. Cheers, Owen Prime http://www.noggin.com.au Ivo Stoykov wrote

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Owen Prime
Good answer. I tend to put the following line in my css which gets rid of this problem in pretty much all browsers. FORM { vspace: 0px; hspace: 0px; } Cheers, Owen Prime http://www.noggin.com.au @ Edwin wrote: > Yes, I agree, this is an html/css question... but you can try this. > >

[PHP] Re: is there an alternative to this code?

2002-10-07 Thread Owen Prime
You may have already been here but what about a border="0" and align="absmiddle" on the image button. Cheers, Owen Prime http://www.noggin.com.au Jeff Bluemel wrote: > I would like to do this without using a form... is there a way I can > recode this? >

[PHP] Re: Division by zero

2002-10-07 Thread Owen Prime
Make sure that vote1, vote2, and vote3 are not null. Maybe you need to use the IFNULL(vote1, 0) function. Cheers, Owen. Gary wrote: > I am trying t get the percent of votes form the table poll, but keep > getting Division by zero for the line commented below. > > > if ($res) { > echo "b