[PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread aka MacGuru
Hi, I am need to pass serialized assotiative array via form hidden field (not GET or POST). In order to do it, I did the following: urlencode(serialize($my_array)). However, after retrieving data from hidden field and unserialize I've got junk. Someone can explain me what I did wrong? Also,

[PHP] Re: Passing Serialized Array via Hidden field

2003-07-21 Thread Sam Baum
am Monday 21 July 2003 09:24 schrieb Andrei Verovski: I am need to pass serialized assotiative array via form hidden field (not GET or POST). What does this mean? If you dont use GET or POST your form cant be submitted. In order to do it, I did the following:

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread Mirek Novak
Andrei Verovski (aka MacGuru) napsal(a): Hi, I am need to pass serialized assotiative array via form hidden field (not GET or POST). In order to do it, I did the following: urlencode(serialize($my_array)). However, after retrieving data from hidden field and unserialize I've got junk. Someone

[PHP] PHP 5 and COM problem

2003-07-21 Thread Aaron
I just updated my binaries to their PHP 5 counterparts (from http://kromann.info/php4.php) and im getting issues with COM. The following line: $foo=new COM(GnucDNA.Core); Generates this error: Fatal error: Class 'com' not found in path to script on line line num The COM object has been

[PHP] regex help?

2003-07-21 Thread John Herren
Can't seem to get this to work... trying to yank stuff xxx from TD class=a8b noWrap align=middle width=17 bgColor=#ccxxx/TD and stuff yyy from TD class=a8b noWrap width=100nbsp;yyy/TD preg_match(nbsp;(.*)/TD$|i, $l, $regs); works for the second example, even though it isn't the correct

[PHP] regex help?

2003-07-21 Thread John Herren
Can't seem to get this to work... trying to yank stuff xxx from TD class=a8b noWrap align=middle width=17 bgColor=#ccxxx/TD and stuff yyy from TD class=a8b noWrap width=100nbsp;yyy/TD preg_match(|nbsp;(.*)/TD$|i, $l, $regs); works for the second example, even though it isn't the correct

[PHP] Re: Mail From option in PHP.ini

2003-07-21 Thread Ivo Fokkema
Hi, Paul is right, you can't change the Return-Path header. On a windows server you could use the 'sendmail_from' setting in php.ini, but that doesn't work on Linux/Unix. Also, the -f 5th argument of the mail() function does not function with safe_mode on in php. It also generates a

Re: [PHP] Re: Passing Serialized Array via Hidden field

2003-07-21 Thread aka MacGuru
On Monday, Jul 21, 2003, at 10:38 Europe/Helsinki, Sam Baum wrote: am Monday 21 July 2003 09:24 schrieb Andrei Verovski: I am need to pass serialized assotiative array via form hidden field (not GET or POST). What does this mean? If you dont use GET or POST your form cant be submitted. I am need

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread Jacob Vennervald Madsen
Just tried it out and you should use htmlspecialchars() instead of urlencode(). When you put it in a hidden field the browser is responsable for urlencoding the data. Jacob On Mon, 2003-07-21 at 09:24, Andrei Verovski wrote: Hi, I am need to pass serialized assotiative array via form hidden

Re: [PHP] Sending email with the windows version of php

2003-07-21 Thread Ivo Fokkema
hello, My client is wanting to transfer their web site from a system that uses: freebsd, apache, mysql and php, to a windows based hosting service. Did you tell them this is a bad idea. :) So I was wondering if the Windows version of PHP sends e-mail with the same commands as Sendmail

[PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
I put this PHP script on web server: ?php if (mail([EMAIL PROTECTED], brati, peda, From: Peda)== TRUE) print(U redu je); else print(Greska); ? But It seems that mail function doesn't work. I don't get any e-mail. Can anyone tell me what is wrong. Does mail() return true? I mean, do

Re: [PHP] Re: mail function

2003-07-21 Thread Chris Hayes
At 10:39 21-7-03, you wrote: I put this PHP script on web server: ?php if (mail([EMAIL PROTECTED], brati, peda, From: Peda)== TRUE) print(U redu je); else print(Greska); ? But It seems that mail function doesn't work. I don't get any e-mail. Can anyone tell me what is wrong. Does

[PHP] Re: mail function

2003-07-21 Thread Peda
Thank you!!! Headers solved my problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help?

2003-07-21 Thread chenqi1
I installed apache1.3.12 as the web server and php5 beta version,I write a test.html and test.php like this: //test.htm form action=test.php method=post Name:input type=text name=namebr input type=image src=image.gif name=sub /form //test.php ?php echo Hello!.$name ; ? the same source works

Re: [PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
Does mail() return true? I mean, do you get printed U redu je? If so, your email should've been sent by PHP. You are really missing a bunch of headers. I'm not sure if this is your problem, but I think it's not a bad idea to include more headers, also because more and more ISP's add some

Re: [PHP] Help?

2003-07-21 Thread Ryan Gibson
See archive posts about register_globals which came in php 4.1 (I think) if you don't want to change your scripts you can turn off register_globals in the .htaccess or php.ini files On 21/7/03 10:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I installed apache1.3.12 as the web server and

[PHP] Re: Help?

2003-07-21 Thread Ivo Fokkema
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I installed apache1.3.12 as the web server and php5 beta version,I write a test.html and test.php like this: //test.htm form action=test.php method=post Name:input type=text name=namebr input type=image src=image.gif name=sub /form

[PHP] SQL select

2003-07-21 Thread Ji Nmec
heloo, i have got a MySQL table: id_comp id_goods type cooler aa1256 n cooler aa1255 n cooler aa1317 f cooler aa1196 n cpu cpu183 n cpu cpu177 f cpu cpu190 n gk gk1265 f gk gk1258 n gk NULL i gk gk1193 n gk gk1257 n mb mb f ram mem713 n ram me1112 f ram mem704 n ram me1081 n and I need

Re: [PHP] scoring/sorting db search results based on score

2003-07-21 Thread Marek Kilimajer
I use mysql, so this was for mysql - LIKE is case insesitive and returns 0 for false and 1 for true. Dean E. Weimer wrote: Try SELECT , (((keywords LIKE '%$search%') * 5) + ((title LIKE '%$search%') * 3) + (description LIKE '%$search%')) score FROM . ORDER BY score DESC PostgreSQL

Re: [PHP] scoring/sorting db search results based on score

2003-07-21 Thread Marek Kilimajer
I don't know how postgres server would optimize the query, but in teory there should be only a slight overhead as the (I)LIKE results should be cached. How much takes to order by depends on the number of rows returned. Dave [Hawk-Systems] wrote: Appreciate the responses... We are talking a db

Re: [PHP] ANY ONE CAN TELL ME WHAT PORT mssql_connect uses?

2003-07-21 Thread Nabil
Dear Michael; I am Requesting your help, Redhat 7.3 to connect to the remote windows MS SQL 7.0 Days and trying to use FreeTDS.. can you help please how to confiure php with sybase as you said?? because it told me mssql_connect call for undefined function... but actualy i need to use

Re: [PHP] SQL select

2003-07-21 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 21 Jul 2003 at 11:08, lines prefixed by '' were originally written by you. heloo, i have got a MySQL table: id_comp id_goods type has somebody some idea hot to select? This is off topic for this list but here goes... SELECT * FROM

Re: [PHP] Image Stored in DB has errors

2003-07-21 Thread Marek Kilimajer
I'm not sure if this solves you problem, but addslashes escapes BOTH single and double quotes. Use str_replace(', \\', ) instead Guru Geek wrote: Hello, I went to bed last night and this was working. I woke up this morning and something has happened or someone has tampered with it. I

Re: [PHP] regex help?

2003-07-21 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 21 Jul 2003 at 08:59, lines prefixed by '' were originally written by you. Can't seem to get this to work... trying to yank stuff xxx from TD class=a8b noWrap align=middle width=17 bgColor=#ccxxx/td Try this:

[PHP] Re: regex help?

2003-07-21 Thread sven
hi john, try a regex like this: '/td[^]*(.*)/td/i' ciao SVEN John Herren wrote: Can't seem to get this to work... trying to yank stuff xxx from TD class=a8b noWrap align=middle width=17 bgColor=#ccxxx/TD and stuff yyy from TD class=a8b noWrap width=100nbsp;yyy/TD

[PHP] help with ad serving

2003-07-21 Thread electroteque
hi there my next project at work is to build an ad server for both image and flash , i am storing each ad entry into a banner_ads table then another table media to store each of the banners into which links to the banner , although in the created admin tool i allow for multiple uploads so a flash

Re: [PHP] popping up download dialog box

2003-07-21 Thread Michael Müller
try this: ?php function download($file , $name) { $size = filesize($file); header(Content-type: application/octet-stream); header(Content-disposition: attachment; filename=.$name); header(Content-Length: .$size); header(Pragma: no-cache); header(Expires: 0);

[PHP] How to..

2003-07-21 Thread Haseeb
hi, i have heard a lot of people commenting about the coding style of other programmers. i think everyone has his own style. but i also say that there should be a standard that should be followed by everyone. i know that there are many good tutorials that explain how to code. anyway i have

[PHP] constants

2003-07-21 Thread Michael Müller
hi, why should I use constants? thx for help Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD2 makes black thumbnails

2003-07-21 Thread Marek Kilimajer
Use imagecreatetruecolor() instead of imagecreate() Ji Nmec wrote: hello everyone, i have got a question about creating thumbnails from original JPG files. users upload their own pohotos in JPG format to server, and system makes a thumbnails. these thumbnails are sometime black. probably there

Re: [PHP] How to..

2003-07-21 Thread Jon Haworth
Hi Haseeb, i.e. divide the functions into files. and then include only that file that has the function. That's how I usually do it - for example, I have a file called dates.lib.php which contains all my functions for handling dates and times, a file called db.lib.php which has my database

[PHP] Register Globals

2003-07-21 Thread Daryl Meese
I would like to rewrite my scripts to work when register globals is off. The problem is that my scripts encompass several thousand files. Does anyone have any suggestions for an effective tool to help in this process? Daryl Meese -- PHP General Mailing List (http://www.php.net/) To

[PHP] News Reader

2003-07-21 Thread David Goodchild
Could someone advise me of a good news reader. I'm using MS Outlook at the moment, and if I reply to any post it sends it to the users email and not to the news server. Plus, its not that great in general terms. Thanks Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Register Globals

2003-07-21 Thread skate
a good editor with a good find and replace tool... i know dreamweaver MX can do a find and replace for an entire site once you've defined it. - Original Message - From: Daryl Meese [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 1:17 PM Subject: [PHP] Register

RE: [PHP] Register Globals

2003-07-21 Thread stfmoreau
Hi, include this code in your header file : // _GET if (isset($_GET)) while (list($key, $val) = each($_GET)) { eval ($.$key. = '.$val.';); } // _POST if (isset($_POST)) while

RE: [PHP] Register Globals

2003-07-21 Thread Petre Agenbag
a simple extract($_POST) or extract($_GET) would also work On Mon, 2003-07-21 at 14:22, stfmoreau wrote: Hi, include this code in your header file : // _GET if (isset($_GET)) while (list($key, $val) = each($_GET)) { eval

Re: [PHP] News Reader

2003-07-21 Thread Jon Haworth
Hi David, Could someone advise me of a good news reader. Agent is pretty good: http://www.forteinc.com/agent/ Mozilla has a mail and news component, which you can download on its own if you don't want the browser, IRC client, HTML editor, etc: http://www.mozilla.org/projects/thunderbird/

RE: [PHP] Register Globals

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: stfmoreau [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 13:23 include this code in your header file : // _GET if (isset($_GET)) while (list($key, $val) = each($_GET)) { eval ($.$key. =

RE: [PHP] free hosting

2003-07-21 Thread electroteque
spam ! -Original Message- From: Bang Dodi [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:55 PM To: [EMAIL PROTECTED] Subject: [PHP] free hosting http://cmax.port5.com __ Mau ringtones yang gaya ? --

Re: [PHP] constants

2003-07-21 Thread Haseeb
hi, you can use constantswhenever you want something whosevalue you don't want changed accidently.for e.g. i use a constant to keep track of the path. if i am at the root level then i store "./" in it. and if i am one folder under the root then istore "../" in it. now as i tend to name

RE: [PHP] Register Globals

2003-07-21 Thread stfmoreau
OK, sorry, I tried to help... and finaly I learn (I didn't know extract...) -Message d'origine- De : Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Envoyé : lundi 21 juillet 2003 14:35 À : 'stfmoreau'; Daryl Meese; [EMAIL PROTECTED] Objet : RE: [PHP] Register Globals -Original

[PHP] Help with Date

2003-07-21 Thread Elliot Tobin
I need a function to create the dates of previous Fridays, in 21-JUL-2003 format. I figure this has already been done, so I wanted to ask before I continued writing my own. Thanks, Elliot = -[ Elliot Tobin, [EMAIL PROTECTED] ]- America has never been united by blood or birth or soil.

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread John Nichel
Andrei Verovski (aka MacGuru) wrote: Hi, I am need to pass serialized assotiative array via form hidden field (not GET or POST). In order to do it, I did the following: Uis there a third form method that I'm not aware of? urlencode(serialize($my_array)). However, after retrieving data

Re: [PHP] Register Globals

2003-07-21 Thread John Manko
whoa, i didn't know that. i love this mailing list! :) Petre Agenbag wrote: a simple extract($_POST) or extract($_GET) would also work -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generating .rtf file

2003-07-21 Thread Aliaksei Kurets
This is my problem: I have a text in my DB in HTML format (with some tags, such as br, ul and other). I need to include DB' text in .rtf file. And my question: is there any beautifull way to convert my HTML text to a plain text (with formatting). Maybe someone can advise me a good converting php

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
I'd settle for a function that will generate a date for this upcoming friday. ;) Elliot Tobin wrote: I need a function to create the dates of previous Fridays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Date

2003-07-21 Thread Jon Haworth
Hi Elliot, I need a function to create the dates of previous Fridays, in 21-JUL-2003 format. It'll be different depending on what you want to happen if you pass a Friday timestamp to the function, but it should be something like: function friday($ts) { while (date(w, $ts) != 5) $ts -=

Re: [PHP] Help with Date

2003-07-21 Thread Adam Voigt
Umm. echo(date('U',strtotime('next Friday'))); Notice the strtotime part. On Mon, 2003-07-21 at 09:25, John Manko wrote: I'd settle for a function that will generate a date for this upcoming friday. ;) Elliot Tobin wrote: I need a function to create the dates of previous Fridays

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 14:29 echo(date('U',strtotime('next Friday'))); Actually, for this upcoming Friday, that'd just be echo(date('U',strtotime('Friday'))); Slightly confusingly, 'next Friday' would be the Friday after

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
Ha. Not what I have in mind. :) Adam Voigt wrote: Umm. echo(date('U',strtotime('next Friday'))); Notice the strtotime part. On Mon, 2003-07-21 at 09:25, John Manko wrote: I'd settle for a function that will generate a date for this upcoming friday. ;) Elliot Tobin wrote: I need a

Re: [PHP] Auto session timeout

2003-07-21 Thread Hardik Doshi
Hi John, Thanks for your response. Actually i am thinking on the same way except saving the URL of the page. You gave me a really good tip of storing the URL with all other information. Additionally, i was thinking to implement the Save feature of MS word. So user can keep saving his/her work

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
More like: echo(date('Jennifer Lopez',strtotime('next Friday'))); John Manko wrote: Ha. Not what I have in mind. :) Adam Voigt wrote: Umm. echo(date('U',strtotime('next Friday'))); Notice the strtotime part. On Mon, 2003-07-21 at 09:25, John Manko wrote: I'd settle for a function that

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: Elliot Tobin [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 14:08 I need a function to create the dates of previous Fridays, in 21-JUL-2003 format. I figure this has already been done, so I wanted to ask before I continued writing my own. Take a look

[PHP] PHP POSTGRESQL AND WML

2003-07-21 Thread haydo hassan
Hi. I am trying to send two variables from login.wml to auth.php. But auth.php gets empty variables. here is the code for login.wml: ?xml version=1.0? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml card newcontext=true title=Fuhrpark Login

Re: [PHP] News Reader

2003-07-21 Thread Steve
David Goodchild wrote: Could someone advise me of a good news reader. I'm using MS Outlook at the moment, and if I reply to any post it sends it to the users email and not to the news server. Plus, its not that great in general terms. XNews, slrn, Fortitude and of course Thunderbird (Gecko

[PHP] Print help

2003-07-21 Thread Ron Allen
What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? Please help!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I looked in the error log which showed hte problem... See two

RE: [PHP] Print help

2003-07-21 Thread Jay Blanchard
[snip] What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? [/snip] Start by RTFM at http://us3.php.net/printer HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] File download by php header...

2003-07-21 Thread Chris Hayes
At 16:15 21-7-03, you wrote: Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I looked in the error log which showed

Re: [PHP] Re: mail function

2003-07-21 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Does mail() return true? I mean, do you get printed U redu je? If so, When PHP sends an email to a non existing email address such as [EMAIL PROTECTED], the warning mail you normally get returned often does not arrive in your mailbox.

Re: [PHP] File download by php header...

2003-07-21 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I

[PHP] Re: Error - when trying to connect to postgresql

2003-07-21 Thread Peter Torraca
When I try to connect to postresql with my php script below I got hhis eror: I can insert into the table from psql. Please help Thanks, --- Warning: pg_exec() query failed: ERROR: invention:

Re: [PHP] Mail From option in PHP.ini

2003-07-21 Thread Peter Torraca
On 07/18/2003 12:00 PM, Brian S. Drexler wrote: Ok, I want to specify who the mail is coming from by using the sendmail_path option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else.

Re: [PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
Um, problem is I don't have any scripts before this sample header function. So, something is up. Does the file size 49 MB have something to do with it? Okay, saw both of the replies, so will check them out. Thanks, Scott Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] *

[PHP] Re: How to..

2003-07-21 Thread Paul Chvostek
On Tue, Jul 22, 2003 at 04:08:35AM +0500, Haseeb wrote: i like keeping all the functions in one file and the include the file whenever i need any function. ... some programmer that prefer to use only one file as front end and place switch or if conditions and include other files

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread Chris Shiflett
--- Andrei Verovski [EMAIL PROTECTED] wrote: I am need to pass serialized assotiative array via form hidden field (not GET or POST). This is impossible. A hidden form field is simply a form field that is not displayed to the user. Form actions must be GET or POST. In order to do it, I did the

[PHP] a good PHP free forum?

2003-07-21 Thread Denis L. Menezes
Hello friends. Can someone suggest a very good and easy to customise forum? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help with mysql union

2003-07-21 Thread r-militante
hi, i'm trying to select * through 3 tables - is the following syntax correct? $sql=(SELECT * FROM mjp_cc); $sql=UNION; $sql=(SELECT * FROM imc_cc); $sql=UNION; $sql=(SELECT * FROM pmp_cc); $sql.= ORDER BY savedccactivity DESC; i basically just want to spit out the contents of these tables...

RE: [PHP] a good PHP free forum?

2003-07-21 Thread Dan Joseph
phpBB is pretty good. -Dan Joseph -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:57 AM To: [EMAIL PROTECTED] Subject: [PHP] a good PHP free forum? Hello friends. Can someone suggest a very good and easy to customise forum?

RE: [PHP] a good PHP free forum?

2003-07-21 Thread Jonathan Villa
www.phpbb.com -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] a good PHP free forum? Hello friends. Can someone suggest a very good and easy to customise forum? Thanks Denis -- PHP

[PHP] need help with MySQL full text searching!!!!

2003-07-21 Thread Angelo Zanetti
Hi I have a table which contains 3 fields (ID, Title, Abstract) the title and abstract fields have been fulltext indexes like this: ALTER TABLE biblio ADD FULLTEXT (title,abstract); that worked fine, however my problem is whenever I want to do a select statement only comparing 1 of the

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread John Manko
Just a small point, you can have both GET and POST. -- search.html - form method=POST action='page.php?action=searchsid=09h34fnn3f0qn34f8n38fn34htq83th83qh' input name=search type=text input type=submit value='Find It!' /form - page.php $sid = $_GET['sid'];

Re: [PHP] a good PHP free forum?

2003-07-21 Thread Step Schwarz
Hello friends. Can someone suggest a very good and easy to customise forum? Thanks Denis No disrespect intended, but this question gets asked every week. For a complete history just search the archives for free php forum -- take a look at a thread like [PHP] Need a forum and it should

Re: [PHP] Register Globals

2003-07-21 Thread Curt Zirzow
* Thus wrote stfmoreau ([EMAIL PROTECTED]): Hi, include this code in your header file : // _GET if (isset($_GET)) while (list($key, $val) = each($_GET)) { eval ($.$key. = '.$val.';); } // _POST if

Re: [PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
btw, also on the content-disposition, not only will some browsers not honor that, they will just use the name of the script as the 'save-as' filename. That's okay with the 'save as' filename because no one know hte real filename on the webserver because it is renamed when it is download

[PHP] Re: need help with MySQL full text searching!!!!

2003-07-21 Thread James Rodenkirch
You need to use mysql 4.0.10-gamma for full text searching to work Angelo Zanetti wrote: Hi I have a table which contains 3 fields (ID, Title, Abstract) the title and abstract fields have been fulltext indexes like this: ALTER TABLE biblio ADD FULLTEXT (title,abstract); that worked fine,

RE: [PHP] jpeg photo file upload problem

2003-07-21 Thread motorpsychkill
You may want to try getimagesize(), as this is more consistent in determining mime types. That is what I wound up doing as it appears to override the browser/platform idiosyncracies. -m -Original Message- From: John T. Beresford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003

[PHP] Re: Print help

2003-07-21 Thread Kevin Stone
Ron Allen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? Please help!!! Look in the manual under 'printer'..

[PHP] CSV import

2003-07-21 Thread jwulff
When using something like this: LOAD DATA LOCAL INFILE '/tmp/phpKBjUWb' INTO TABLE `indoma` FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' How do I also insert a field not in the CSV. For example there are 8 fields in the CSV and 9 in the table. I want the ninth field to be the name of the

[PHP] Changing numbers

2003-07-21 Thread zavaboy
I have the following numbers: 12.400 666.75 23 369.2 3.234 How can I make them have at least 2 decimal places? So, they will output: 12.40 666.75 23.00 269.20 3.234 Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Changing numbers

2003-07-21 Thread Jay Blanchard
[snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CSV import

2003-07-21 Thread Jay Blanchard
[snip] When using something like this: LOAD DATA LOCAL INFILE '/tmp/phpKBjUWb' INTO TABLE `indoma` FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' How do I also insert a field not in the CSV. For example there are 8 fields in the CSV and 9 in the table. I want the ninth field to be the name

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
What about if I had 2.856 that function will make it 2.86. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH! -- PHP General Mailing List

Re: [PHP] Changing numbers

2003-07-21 Thread James Rodenkirch
try rounding it first http://www.php.net/manual/en/function.round.php Zavaboy wrote: What about if I had 2.856 that function will make it 2.86. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
*Sigh*, lets say I have: 2.65 3.3 5.2670 12.030 I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: 2.65 3.30 5.267 12.03 James Rodenkirch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] try rounding it first

Re: [PHP] need help with MySQL full text searching!!!!

2003-07-21 Thread CPT John W. Holmes
I think you need to make a second index that just consists of the one column ALTER TABLE biblio ADD FULLTEXT (title) if you want to search on just that one column. ---John Holmes... - Original Message - From: Angelo Zanetti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July

Re: [PHP] need help with mysql union

2003-07-21 Thread CPT John W. Holmes
hi, i'm trying to select * through 3 tables - is the following syntax correct? $sql=(SELECT * FROM mjp_cc); $sql=UNION; $sql=(SELECT * FROM imc_cc); $sql=UNION; $sql=(SELECT * FROM pmp_cc); $sql.= ORDER BY savedccactivity DESC; i basically just want to spit out the contents of these

[PHP] IE Issues

2003-07-21 Thread Stephen
Hello, This is a little off topic but I do need some help. I have had IE 6 for about a month now (just got a new computer in June and have been using IE6 since). When I first started running it, it was fine. A few weeks ago, though, all my fonts have greatly increased and I have done nothing that

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread CPT John W. Holmes
--- Andrei Verovski [EMAIL PROTECTED] wrote: I am need to pass serialized assotiative array via form hidden field (not GET or POST). This is impossible. A hidden form field is simply a form field that is not displayed to the user. Form actions must be GET or POST. In order to do it, I

RE: [PHP] Changing numbers

2003-07-21 Thread Jay Blanchard
[snip] I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: [/snip] RTFM for formatted string http://us3.php.net/sprintf or http://us3.php.net/printf HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread Chris Shiflett
--- John Manko [EMAIL PROTECTED] wrote: Just a small point, you can have both GET and POST. -- search.html - form method=POST action='page.php?... Notice your form method is POST, not both GET and POST. The HTTP request sent after a user submits this form will be a POST request,

Re: [PHP] IE Issues

2003-07-21 Thread Stephen
Thank you so much! I now have to wonder how it got set to that. Probably my brothers or that power surge a while back. Anyway, thanks again! Thank you, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. Lead Programmer/Webmaster WiredPHP (http://php.melchior.us) - Original

RE: [PHP] IE Issues

2003-07-21 Thread Jaime Bozza
Ctrl-MouseWheel will increase or decrease the text size in an IE browser window. I've found that I've accidentally increased the font size since I use the Mouse Wheel quite a bit. (As well as CTRL-W to close an IE window if one pops up) Jaime Bozza -Original Message- From: Stephen

[PHP] regexp help...

2003-07-21 Thread Doug La Farge
Hi all, I have a string that for all practical purposes should probably be a list (array). I need one line from the string and need to send the rest to /dev/null. The string starts: HTTP/1.1 200 OK Date: Tue, 22 Jul 2003 01:34:12 GMT Server: Apache/1.3.27 (Unix) mod_jk/1.1.0 mod_ssl/2.8.12

Re: [PHP] Changing numbers

2003-07-21 Thread John Nichel
zavaboy wrote: *Sigh*, lets say I have: 2.65 3.3 5.2670 12.030 I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: 2.65 3.30 5.267 12.03 James Rodenkirch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] try rounding it first

Re: [PHP] regexp help...

2003-07-21 Thread Doug La Farge
I guess I should point out that the line i want is the XML line '?xml..' On Monday, July 21, 2003, at 11:44 AM, Doug La Farge wrote: Hi all, I have a string that for all practical purposes should probably be a list (array). I need one line from the string and need to send the rest to

Re: [PHP] Changing numbers

2003-07-21 Thread bob parker
On Tue, 22 Jul 2003 04:03, zavaboy wrote: *Sigh*, lets say I have: 2.65 3.3 5.2670 12.030 I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: 5.267 is 3 decimal places - count them -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Changing numbers

2003-07-21 Thread John Nichel
bob parker wrote: On Tue, 22 Jul 2003 04:03, zavaboy wrote: *Sigh*, lets say I have: 2.65 3.3 5.2670 12.030 I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: 5.267 is 3 decimal places - count them He said at least 2 decimal places, not exactally two decimal

Re: [PHP] IE Issues

2003-07-21 Thread Stephen
Hmm, yeah, you're probably right. I probably did push CTRL+MouseWheel since I use it a lot and CTRL+C. Thanks for the info. The power surge did do a lot of funky stuff to my files. I found bits of messed up code here and there and my date was set to 2069. Thank goodness for System Restore. ^_^

[PHP] can't restart session

2003-07-21 Thread Chris W. Parker
Hello, PHP 4.2.2 I'm working on a cart program right now and I can't properly log the user out. The only way I've been able to get a different session id is by closing all browser windows and reloading the site. Scenario: I go the site I'm working on and click the login page. I have 'echo

  1   2   >