Re: [PHP] WHat has happened to parse_str in the Docs????

2001-11-29 Thread Papp Gyozo
Hello, The manual says that parse_str does it. (btw, I didn't try it) Look on the second sentence pasted here. manual void parse_str (string str, array [arr]) Parses str as if it were the query string passed via an URL and sets variables in the current scope. If the second parameter

[PHP] unbale to send mails using mail function

2001-11-29 Thread sanjay
Hi I have successfully installed PHP 4.0.6 with apache 1.3.22 on my mandrake Linux box. Now, the problem is I am not able to send email using mail () of php. However, I am able to send it using mail command. Any help will be highly appreciated. Regards Sanjay -- PHP General Mailing List

[PHP] Please Help! Sorting the results of directory indexing

2001-11-29 Thread Kevin Garrett
Hi all, I have a script that lists directory contents but I'm trying to put the results in reverse order. I've tried the arsort array reverse but have so far been unable to get them working, can somebody please help me! Here's a look at my script:

[PHP] problem with urlencode

2001-11-29 Thread Oosten, Sjoerd van
Hi there, I have a problem putting through a variable which contains an in the string. When the variabele is something like: a href=test.php?name=robsjoerdclick here/a the next file sees $name as rob instead of $name=rob sjoerd i've tried the urlencode function but that doesn't work.

Re: [PHP] ? print $val; ?

2001-11-29 Thread Andrey Hristov
probably from 4.1.0 or 4.2 this construction will be available ?php=$var;? Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Papp Gyozo [EMAIL PROTECTED] To: Berthold [EMAIL PROTECTED]; faeton [EMAIL PROTECTED]; PHP-General

[PHP] Quoting strings

2001-11-29 Thread Jason Rennie
Hi all, I have a fnction that needs to quote a strings in php to make them easy to stick into an mysql db. I need to do basically $msg, which is easy enough, but I would like to not quote strings that are already quoted and also escape any single or double quotes in the string. IS there a

Re: [PHP] Quoting strings

2001-11-29 Thread Andrey Hristov
$sql=insert into some_table (.stripslashes(mysql_escape_string($your_var)).);; Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Jason Rennie [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 2:12 PM

[PHP] PHP Memory Error

2001-11-29 Thread John Monfort
Hey all, Need some help. Two questions: 1) =Environment= PHP 4.0.5 Win2k Apache 1.3.20 MySQL ..3.24 === I created a login page which uses MySQL to verify the username and password. When I run the script (submit the html form), PHP returns this error: The instruction at

[PHP] Query help needed

2001-11-29 Thread Payzillee
Hi, could anyone tell me what is wrong with this Insert query? I get an 'Invalid query' error but I can't see the problem at all. All the fields match exactly what is in my database, it's all in lowercase too. Cheers. mysql_query (INSERT INTO listserve (title, surname, forename, job_title,

[PHP] Need help with a stupid problem!

2001-11-29 Thread De Necker Henri
Hi there! I want to do the following piece SQL query : $search .= ba = '.$b.'; I want it to be like the following : ba = 'someting' But this is what i get : ba = \'someting\' What am i doing wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Query Help Needed

2001-11-29 Thread Payzillee
Hi, could anyone tell me what is wrong with this Insert query? I get an 'Invalid query' error but I can't see the problem at all. All the fields match exactly what is in my database, it's all in lowercase too. Cheers. mysql_query (INSERT INTO listserve (title, surname, forename, job_title,

[PHP] Re: PHP Memory Error

2001-11-29 Thread lallous
John, Question 1, are you using PHP as ISAPI or CGI? John Monfort [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey all, Need some help. Two questions: 1) =Environment= PHP 4.0.5 Win2k Apache 1.3.20 MySQL ..3.24 === I created a

[PHP] Parsing HTML

2001-11-29 Thread Ulrich Hacke
Hi, I have some HTML including several pseudo tags like tag parameter1=doo parameter2=something parameter3=what should i say After parsing I have an array $content[$i][name] where name is the name of the parameters and $i the Counter of the tag. I'm using a regular expression to find these tags

[PHP] Digit Grouping Function

2001-11-29 Thread Sascha Ragtschaa
Hi, I have a small question? Does anyone know (or has written) a function about digit grouping symbols, that means: when I have a value of 1000, it should print out like this: 1.000 The same when I have a value of 100, it should give 1.000.000 Does anyone know how to do it? Thanks in

[PHP] Re: PHP Memory Error

2001-11-29 Thread Julio Nobrega Trabalhando
Used to happen the same here when I was using PhpMyAdmin. On large consults, it would lock. Passing from CGI to module solved all my problems. On the manual you can see the necessary lines to do such. -- Julio Nobrega No matter where you go, this. Lallous [EMAIL PROTECTED] wrote in

[PHP] Re: Need help with a stupid problem!

2001-11-29 Thread Julio Nobrega Trabalhando
Worry not, easier typing: $search .= ba = '$b'; If above doesn't satify the needs, maybe you are mysql_escape_string(); it? -- Julio Nobrega No matter where you go, this. De Necker Henri [EMAIL PROTECTED] wrote in message

Re: [PHP] Query Help Needed

2001-11-29 Thread Michael Hall
Do those field names need single quotes too? Can't remember right now ... Are there any datatype problems (wrong kind of datatype for a field)? What about a semi-colon at the end? Mick On Thu, 29 Nov 2001, Payzillee wrote: Hi, could anyone tell me what is wrong with this Insert query? I

[PHP] db connect

2001-11-29 Thread Ian
Hello, Wonder if anyone can help me out. I am trying to run an example out of a book Beginning Php by wrox. One of the examples is supposed to allow me to connect to a database by using a function that takes a database as an argument. It has an include file that contains the function. Problem

AW: [PHP] Query Help Needed

2001-11-29 Thread Martin Lucas
take a look at your table definiton. maybe some of your fields have a diferent definition as the value you want to insert. e.g. fax_number in your query-string is defined as string and in your table as integer or something like this regards martin -Ursprüngliche Nachricht- Von:

Re: [PHP] Query Help Needed

2001-11-29 Thread Payzillee
I've got my names, web addresses etc. set up as Varchar and my telephone/fax numbers as Bigint. Special interests field as text. Only other field in the database is an auto increment number field. Michael Hall [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Do

Re: [PHP] Query Help Needed

2001-11-29 Thread Douglas McKenzie
Could be that the value you're trying to insert doesn't match up with the field type in the database - you know, putting a word in a number field. What exactly is the error message? Payzillee wrote: Hi, could anyone tell me what is wrong with this Insert query? I get an 'Invalid query'

Re: [PHP] Query Help Needed

2001-11-29 Thread Payzillee
error message is 'Invalid Query'. Douglas McKenzie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Could be that the value you're trying to insert doesn't match up with the field type in the database - you know, putting a word in a number field. What exactly is

Re: [PHP] mysql pconnect voes

2001-11-29 Thread Jani Mikkonen
- can have one process more than one persistent connection ? I dont quite understand this. What do you mean ? - how many children of apache do u have in one time ? Depending on load, around 250-350. Heavily changes between nights and businesshours and weekends. - php.ini means

AW: [PHP] Query Help Needed

2001-11-29 Thread Martin Lucas
that seems to be easy: put every string and varchar in single quotes eg '$surname' and every number like $fax_number without quotes regards martin -Ursprüngliche Nachricht- Von: Payzillee [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 29. November 2001 13:16 An: [EMAIL PROTECTED]

Re: [PHP] Re: PHP Memory Error

2001-11-29 Thread John Monfort
I'm using it as CGI. Note: I've developed these types of pages many times(on the same system). I've never seem this error before. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting,

RE: [PHP] problem with urlencode

2001-11-29 Thread Zozulak Peter
definitely you need to be replaced with amp; ... it will work ... Peter -Original Message- From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 10:45 AM To: '[EMAIL PROTECTED]' Subject: [PHP] problem with urlencode Hi there, I have a

[PHP] database question

2001-11-29 Thread Michael Hall
How can I search a MySQL database field that contains sentences (VARCHAR datatype) or entire texts (TEXT datatype) for single words? Let's say I want to search 100 articles stored in a database field as TEXT for the word bingo, is there any SQL or PHP way of doing that? Mick --

[PHP] Re: database question

2001-11-29 Thread Julio Nobrega Trabalhando
$word = 'bingo'; $sql = SELECT a_column FROM table WHERE text_column LIKE '%$word%'; $res = mysql_query($sql); // etc... for displaying results Resuming: % on the beggining - doesn't matter what comes before % on the end - doesn't matter what comes after -- Julio Nobrega No matter where

Re: [PHP] database question

2001-11-29 Thread Richard Baskett
You could try something like this: SELECT * FROM database WHERE text LIKE '%bingo%' Rick How can I search a MySQL database field that contains sentences (VARCHAR datatype) or entire texts (TEXT datatype) for single words? Let's say I want to search 100 articles stored in a database field

RE: [PHP] Re: Need help with a stupid problem!

2001-11-29 Thread De Necker Henri
My output is still the same! It looks like this : ba = \'DA\' :) -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 13:54 To: [EMAIL PROTECTED] Subject: [PHP] Re: Need help with a stupid problem! Worry not, easier typing: $search

RE: [PHP] Re: database question

2001-11-29 Thread Zozulak Peter
and what about this ... $sql = SELECT a_column FROM table WHERE text_column LIKE '% $word %'; matching the word in the text ... $sql = SELECT a_column FROM table WHERE text_column LIKE '$word %'; matching the word at the begining of the text ... $sql = SELECT a_column FROM table WHERE

RE: [PHP] ZIp files? Help needed...

2001-11-29 Thread Robert V. Zwink
This might interest you: http://marc.theaimsgroup.com/?l=php-generalm=100453803524687w=2 You can install Winzip on the machine, then shell out to unzip the file. Robert V. Zwink http://www.zwink.net/daid.php -Original Message- From: Emiliano Marmonti [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Re: database question

2001-11-29 Thread Jani Mikkonen
On Thu, 2001-11-29 at 14:59, Zozulak Peter wrote: and what about this ... $sql = SELECT a_column FROM table WHERE text_column LIKE '% $word %'; matching the word in the text ... $sql = SELECT a_column FROM table WHERE text_column LIKE '$word %'; matching the word at the begining of

[PHP] sessions url rewriting?

2001-11-29 Thread Jimi Rønberg
when compiling php version 4.06 with '--enable-trans-sid' and thereafter setting 'session.use_cookies off'. Does anyone know why the url rewriting works like this: - when it encounters a 'href' it do rewrite - when it encounters a header(Location: test.php); it does not rewrite - when it

[PHP] session_set_save_handler()

2001-11-29 Thread phantom
I am trying to set up a session setup that saves session data to a mysql database. I have gone into php.ini and set session.save_handler to user. I call the following include file up using session_set_save_handler(open, close, read, write, destroy, gc); (of course I have labeled each function

[PHP] foo-bar

2001-11-29 Thread Christoph Starkmann
BTW... Can anybody tell me where the words foo and bar come from? Thanx, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Re: foo-bar

2001-11-29 Thread Julio Nobrega Trabalhando
http://info.astrian.net/jargon/terms/f/foo.html Btw, it was just a matter of googleing for 'foo bar origins'. -- Julio Nobrega No matter where you go, this. Christoph Starkmann [EMAIL PROTECTED] wrote in message

[PHP] database conection (newby)

2001-11-29 Thread Tommy Straetemans
Hi I'am totaly new in php i work always with asp. I give the folowing hidden fields to a php script input type=hidden name=connectie value=mysqlhost.mijndomein.be:3306 input type=hidden name=uid value=U0498526 input type=hidden name=pwd value=iwinfo59 input type=hidden name=database

Re: [PHP] database question

2001-11-29 Thread Jon Farmer
Actually the sql statement you want is select whatever from articles where textlines regexp ^\Sbingo\S$ regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message -

RE: [PHP] foo-bar

2001-11-29 Thread Jon Haworth
http://www.tuxedo.org/~esr/jargon/html/entry/foo.html HTH Jon -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 14:54 To: '[EMAIL PROTECTED]' Subject: [PHP] foo-bar BTW... Can anybody tell me where the words foo and bar come from?

Re: [PHP] Query help needed

2001-11-29 Thread Miles Thompson
It looks OK, but I have lousy track record of writing out perfect sql which doesn't work. Syntax looks OK. 1. What does it look like if you write out the update statement, assign it to a var and then echo the var? 2. Can you try it at the console? 3. Try or die(mysql_error) ; to see if you

Re: [PHP] database conection (newby)

2001-11-29 Thread Tyler Longren
You've got too many parameters in the mysql_connect() and mysql_select_db() functions. You don't need the %s stuff. Here's what it should be: $conn = mysql_connect($connectie,$uid,$pwd); mysql_select_db($database,$conn); Good luck, Tyler Longren Captain Jack Communications [EMAIL PROTECTED]

[PHP] Re: foo-bar

2001-11-29 Thread Arve Bersvendsen
Christoph Starkmann wrote in B120D7EC8868D411A63D0050040EDA77111904@XCHANGE:">news:B120D7EC8868D411A63D0050040EDA77111904@XCHANGE: Can anybody tell me where the words foo and bar URL:http://www.tuxedo.org/~esr/jargon/html/entry/foo.html

Re: [PHP] database conection (newby)

2001-11-29 Thread Miles Thompson
In the include file, call it dbname.inc, ? $db_name = database_name; $db_server=Server_name; $db_user=name; $db_password=password? and then at the top of a page needing the database ... ? require( dbname.inc ); $db = mysql_pconnect($db_server,$db_user, $db_password);

[PHP] Sending fax with php, is it possible?

2001-11-29 Thread Raymond Lilleodegard
Hi all! I have a little problem here : ) A customer wants a order made by a forminput sent to fax. Is it possible with php? Or do I have to do it some other way? Best regards Raymond -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: [PHP-DB] Alternating rows pulled from database

2001-11-29 Thread Andrey Hristov
can it be index_forum1 instead of index_forum. This code presumes that it's possible while($group = $db-fetch_array($queryg)) { if($group[type] == group) { $bg = 1- $bg; eval(\$forumlist .= \.template(index_category.($bg+1).\;); if($catsonly != on || $gid) { $query =

Re: [PHP] database conection (newby)

2001-11-29 Thread Andrey Hristov
$conn = mysql_connect($connectie,$uid,$pwd); mysql_select_db($database,$conn); %s is used in printf, sprintf Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Tommy Straetemans [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] color problems when resizing image with GD

2001-11-29 Thread Michael Hall
We run on a Windows platform. If a client uploads an image to my script that is too wide, I want to use GD to resize the image down to the proper dimensions. The problem I'm having is that the resized image drops huge chunks of the color pallette, creating what is basically a monochromatic

[PHP] Global storage of objects.

2001-11-29 Thread Stefan Bergstrand
I would like to know if there is a way to store objects globally from a php-page, so that the object can be used from another page. /Stefan B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: PDF print page creation...

2001-11-29 Thread bill
If the problem is just the web address, etc., in the bottom of the page, that can be turned off. In NN, File/Page Setup and uncheck the boxes in the header and footer In IE, File/Page Setup and remove the stuff in the header and footer fields. Lauri Vain wrote: Hello, A client requested

RE: [PHP] Global storage of objects.

2001-11-29 Thread Boget, Chris
I would like to know if there is a way to store objects globally from a php-page, so that the object can be used from another page. Yes, using sessions or cookies. Chris

[PHP] upload problem

2001-11-29 Thread Miguel Loureiro
Hello all, when I want to do an upload ( form ENCTYPE=multipart/form-data action= . $PHP_SELF . method=post), sometimes ( having in form, several input file types, ex.:input type=file name=aa), after submit , dont show me the values uploaded ( aa_name ; aa_type) ?? Any ideas why ? thanks for

Re: [PHP] Global storage of objects.

2001-11-29 Thread Andrey Hristov
Simultaneously? Or you want them preloaded and constructed in memory on every page request? Regards, Andrey - Original Message - From: Stefan Bergstrand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 5:56 PM Subject: [PHP] Global storage of objects. I

RE: [PHP] Global storage of objects.

2001-11-29 Thread Christoph Starkmann
Hi Stefan! I would like to know if there is a way to store objects globally from a php-page, so that the object can be used from another page. Why not writing these objects to a *.php document which you can include wherever you need it? HTH, Kiko - It's not a bug, it's a feature.

Re: [PHP] upload problem

2001-11-29 Thread Andrey Hristov
var_dump($HTTP_POST_FILES); HTH Andrey Hristov - Original Message - From: Miguel Loureiro [EMAIL PROTECTED] To: php-gen [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 6:04 PM Subject: [PHP] upload problem Hello all, when I want to do an upload ( form ENCTYPE=multipart/form-data

[PHP] Ezmlm Hosts besides csoft.net?

2001-11-29 Thread Sondra Russell
Hello everyone! I'm wondering if you guys could suggest a hosting company that provides: php4 mySql qmail ezmlm (or ezmlm-idx). I have been with csoft.net, which was wonderful and which provided all of these things, but last night they decided to pull down my web site for six hours without

Re: [PHP] database question

2001-11-29 Thread Jani Mikkonen
select whatever from articles where textlines regexp ^\Sbingo\S$ Again, that would fail if the word 'bingo' is and the end of the sentence. Allthou i realized my own example doesnt work either in that case. Best way would be remove all characters like ,.!? and and split the string into words.

Re: [PHP] Ezmlm Hosts besides csoft.net?

2001-11-29 Thread Andrey Hristov
http://www.ispcheck.com HTH Andrey - Original Message - From: Sondra Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 6:02 PM Subject: [PHP] Ezmlm Hosts besides csoft.net? Hello everyone! I'm wondering if you guys could suggest a hosting company

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Jani Mikkonen
A customer wants a order made by a forminput sent to fax. Is it possible with php? Or do I have to do it some other way? Hey, php is a programming language, it does what ever you want (up to certain restrictions ofcourse) But for pointers, try installing hylafax (if you run *nix that is) and

Re: [PHP] Global storage of objects.

2001-11-29 Thread Jani Mikkonen
I would like to know if there is a way to store objects globally from a php-page, so that the object can be used from another page. Keyword is Serialization. If you save object to flatfile or to db, i dont see any point why the result wouldnt be accessible from other places (providing that

[PHP] Memory leaks with LDAP?

2001-11-29 Thread Darren Gamble
Hey all, Has anyone else had problems with memory leaks using PHP's LDAP functions? I put together a LDAP server the other day, and wrote a PHP program to test it. I've stripped this program down to basically a ldap_connect, ldap_bind, ldap_search on objectclass=* , ldap_get_entries,

[PHP] Re: unbale to send mails using mail function

2001-11-29 Thread Ben Holt
Have a look at the path to sendmail in your php.ini file. To get mine to work I had to set it to '/usr/sbin/sendmail -t -i'. Your path may be different, but the -t and -i switches are important. - Ben Sanjay wrote: Hi I have successfully installed PHP 4.0.6 with apache 1.3.22 on my

[PHP] APC and memory troubles

2001-11-29 Thread Shane Wright
Hi List, I'm having some troubles with APC and was wondering if anyone else had seen this and perhaps knew of a solution... Basically, random pages at random times cause the script to run out of memory. This first happened with the default 8Mb limit, so I upped it to 20Mb but the problem

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Raymond Lilleodegard
Thanks, that sounds great! I have to admit that i am pretty new with this php language. But to get this work, I have to use a faxprogram? and then send the forminput to this program? That redirect the data to a fax? I'll see what kind of program I can get. Jani Mikkonen [EMAIL PROTECTED]

Re: [PHP] Sending fax with php, is it possible?

2001-11-29 Thread Michael Geier
I have previously done this by creating either a text or PDF document with PHP and then passing it off to HylaFAX. The only problems I was having was that I would create a legal size PDF. When I sent it through HylaFAX, the destination fax machine would not scale the PDF to various size paper,

[PHP] Help anyone

2001-11-29 Thread Dan McCullough
I need to edit a entry into the database via an admin script, how do I work in a radio selection box, and populate it with the correct selection? = Dan McCullough --- Theres no such thing as a problem unless the servers are on

[PHP] Re: fsockopen() prob

2001-11-29 Thread Yura
Nop, doesn't work - the same result, supplied argument is not valid file handler... Youri Global variables are not really global in php because they are not available from within functions unless you specifically declare them as global. This should work: 130 function get_line { 131

Re: [PHP] problem with urlencode

2001-11-29 Thread faeton
Hello Sjoerd, U can try using htmlentities(). OSv I have a problem putting through a variable which contains an in the OSv string. OSv When the variabele is something like: OSv a href=test.php?name=robsjoerdclick here/a Ivan 'Faeton aka

[PHP] Re: db connect

2001-11-29 Thread Fred
How are you passing the name of the database? Are you replacing 'sample_db' in the line: $link_id = db_connect('sample_db'); in show_more_db.php? If so, then I do not see where there would be a problem. Fred Ian [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Help anyone

2001-11-29 Thread faeton
Hello Dan, Thursday, November 29, 2001, 7:11:22 PM, you've written: DM I need to edit a entry into the database via an admin script, how do I work in a radio selection DM box, and populate it with the correct selection? Something like that, maybe :) input type=radio name=var value=1 input

[PHP] CSV output displayed in Excel or similar.

2001-11-29 Thread Matthew Clark
I have a PHP script that outputs several lines of comma separated values.. I would like to display this output in Excel without having to write the output to a file with a .csv extension and redirecting. I have tried setting the content-type: application/vnd.ms-excel and Excel isn't happy.. it

Re: [PHP] Help anyone

2001-11-29 Thread Mike Eheler
ew How about: ? select name=status option value=On-Line? if ($edit['status'] == 'On-Line') { echo ' selected=selected'; } ?On-Line/option option value=Off-Line? if ($edit['status'] == 'Off-Line') { echo ' selected=selected'; } ?Off-Line/option /select ? There's much better/general ways to

[PHP] Would like to join list...

2001-11-29 Thread Steve Osborne
Can anyone email me directly and tell me how to subscribe to this list? Thanks, Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Help anyone

2001-11-29 Thread Jani Mikkonen
input type=radio name=var value=1 input type=radio name=var value=2 input type=radio name=var value=3 And if you want to make one of those selected use something like this: ? $var = 2; ? input type=radio name=var value=1 ? if ($var==1) printf(SELECTED); ? input type=radio name=var

Re[2]: [PHP] Help anyone

2001-11-29 Thread faeton
Hello Mike, And cleaner: ? print 'option value=On-Line'.($edit['status'] == 'On-Line' ? ' selected' : '').''; print 'option value=Off-Line'.($edit['status'] == 'Off-Line' ? ' selected' : '').''; ? :) ME select name=status ME option value=On-Line? if ($edit['status'] == 'On-Line') { echo ' ME

Re: [PHP] Help anyone

2001-11-29 Thread Dan McCullough
Here is what I did. if ($edit[status]==On-line) { print Status: select name=\status\\n; print option value=\On-line\ selectedOn-line\n; print option value=\Off-line\Off-line\n; print /selectbr\n; } else { print Status: select name=\status\\n; print option value=\On-line\On-line\n; print option

[PHP] in_array error

2001-11-29 Thread Steve Osborne
Can anyone explain why I am getting the following error? Fatal error: Call to unsupported or undefined function in_array() in includes/chinlib21stCentury.inc on line 3131 Code: if( (is_array($List)) AND (is_array($RemoveList)) ) { $ListItems = count($List); sort($List); for($ListItem=0;

[PHP] Server wont execute my PHP files!!

2001-11-29 Thread Mike
I am being hosted by South West Bell, and my php files are not even recognized. They are stored in the correct folder, but SWB ONLY allows read/write permissions, and NO chmod access. The tech support guy told me that I have to code the Execute permission in my php file. Is that true? and if

RE: [PHP] in_array error

2001-11-29 Thread Gerard Onorato
Steve, What version of PHP are you running. in_array is = 4.0. is_array was in 3.0 so this may be an issue for you. Gerard -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 3:08 PM To: PHP-General (E-mail) Subject: [PHP] in_array error

[PHP] resizing images.

2001-11-29 Thread faeton
BTW, could anybody share its experience in writing scripts that can resize images? And what extensions should be installed on server 4 such operationz. Thanx. --- Hit any user to continue. --- :) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266)

Re: [PHP] getting a user's ip address

2001-11-29 Thread John S. Huggins
On Thu, 29 Nov 2001, Ken Savage wrote: -Super new to PHP but I'm putting in the effort to learn quickly. -How would I output the user's IP address in a php file. - -I want the webpage to say... - -Your IP address is xx.xx.xx.xx Try finding it in these variables:

Re: [PHP] getting a user's ip address

2001-11-29 Thread Mike Eheler
Your IP address is ?= $HTTP_SERVER_VARS['REMOTE_ADDR'] ? That is all case sensitive too, by the way. Mike Ken Savage wrote: Super new to PHP but I'm putting in the effort to learn quickly. How would I output the user's IP address in a php file. I want the webpage to say... Your IP address

Re: [PHP] Help anyone

2001-11-29 Thread Mike Eheler
Maybe, but where I come from, printing HTML is illegal, and XHTML compliance must be 100%, so: option value=On-Line?= ($edit['status'] == 'On-Line' ? ' selected=selected' : '') ? option value=Off-Line?= ($edit['status'] == 'Off-Line' ? ' selected=selected' : '') ? Mike faeton wrote: Hello

[PHP] Re: resizing images.

2001-11-29 Thread Henrik Hansen
[EMAIL PROTECTED] (Faeton) wrote: BTW, could anybody share its experience in writing scripts that can resize images? And what extensions should be installed on server 4 such operationz. here are some examples: http://www.zend.com/codex.php?CID=344 you need GDlib installed or a command

Re: [PHP] in_array error

2001-11-29 Thread Steve Osborne
I'm using php 4 on my machine, however the server that I am testing on only supports php3 - Original Message - From: Gerard Onorato [EMAIL PROTECTED] To: Steve Osborne [EMAIL PROTECTED]; PHP-General (E-mail) [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 11:29 AM Subject: RE:

Re: [PHP] Re: resizing images.

2001-11-29 Thread faeton
Hello Henrik, That should be oK 4 my server, but how about my home apache+php on win? Any solution? HH here are some examples: HH http://www.zend.com/codex.php?CID=344 HH you need GDlib installed or a command line tool such as imagemagick. Ivan

Re: [PHP] PHP 4.1 out?

2001-11-29 Thread ~~~i LeoNid ~~
On Wed, 28 Nov 2001 20:57:41 +0100 impersonator of [EMAIL PROTECTED] (Zeev Suraski) planted I saw in php.general: There were some last minute issues that required further testing... It could be stated on the site, or (and) tar could be re-moved. As far as I am concerned, as soon as something is

[PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Hi, I got a linux server with many domain names using PHP and various Database. Theses applications exists and were developped with this settings in php.ini : magic_quotes_gpc= Off magic_quotes_runtime = Off magic_quotes_sybase = Off Now for a new application using a sybase

[PHP] Re: CSV output displayed in Excel or similar.

2001-11-29 Thread Fred
I have had success using tab delimted files instead of comma delimited files. For some reason Excel does not behave as expected when opening csv files from the web. At least, it acts differently than it does when opening them from the local disk. At any rate, I use tabs to delimit fields and

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread faeton
Hello Alain, In httpd.conf (or .htaccess) you can make: php_value magic_quotes_gpc On php_value magic_quotes_sybase On Yeah, just like that :) AD magic_quotes_gpc= On AD magic_quotes_sybase = On AD The problem is that if i modify the php.ini file the other applications AD will

Re: [PHP] in_array error

2001-11-29 Thread Fred
You will not be able to use this and many other functions on a php3 only machine. For your convenience, all of the function references in the manual state which versions of php support them and which do not. Fred Steve Osborne [EMAIL PROTECTED] wrote in message 008401c17916$dd87f200$[EMAIL

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Faeton wrote: Hello Alain, In httpd.conf (or .htaccess) you can make: php_value magic_quotes_gpc On php_value magic_quotes_sybase On Yeah, just like that :) I just do that in the httpd.conf, restart apache and then invoke the php function phpinfo(); but it seem that the

[PHP] Question regarding mysql_connect/pconnect

2001-11-29 Thread Jeff Lewis
I was typically using pconnect but then read that for very busy sites you can reach the max threads for mySQL quickly. So on my new server I have a couple of scripts and they are using mysql_connect. I was under the impression that these disconnected after script execution but when checking,

[PHP] Need help on current working directories

2001-11-29 Thread LeTortorec, Jean-Louis
Hi: I'm coding pages that need to include some general functions. File1 is an example of those pages. I also need to use the very same function file across several web sites. So, I created an additional file, where I have listed all the options for a particular site (which is then included into

Re: [PHP] Enabling magic quotes and sybase quotes for just one domain on a virtual server

2001-11-29 Thread Alain DESEINE
Ok i've found it ! I hould use php_flag instead of php_value and now it work fine !! Many thanks ... Alain DESEINE. Alain Deseine wrote: Faeton wrote: Hello Alain, In httpd.conf (or .htaccess) you can make: php_value magic_quotes_gpc On php_value magic_quotes_sybase On Yeah,

[PHP] Good host needed

2001-11-29 Thread Rudi Ahlers
Hi guys. I know this is OT, but I don't know where else to ask. I'm in South Africa, and I'm looking for a GOOD webserver host in the States. Bandwidth is a big thing, as well as using UNIX, else Linux. I would like to be able to manage the server from home,and not phone in every I need to do

Re: [PHP] Good host needed

2001-11-29 Thread Richard S. Crawford
I've had good luck with www.pair.com At 01:10 PM 11/29/2001, Rudi Ahlers wrote: I know this is OT, but I don't know where else to ask. I'm in South Africa, and I'm looking for a GOOD webserver host in the States. Bandwidth is a big thing, as well as using UNIX, else Linux. I would like to be

RE: [PHP] Good host needed

2001-11-29 Thread Chris Bailey
Check the mailing list archives. This topic comes up about once a month or so, and a lot of good hosts have been listed, all of which support PHP, MySQL, and typically have SSH or at least telnet access, FTP access, etc. -Original Message- From: Rudi Ahlers [mailto:[EMAIL PROTECTED]]

RE: [PHP] PHP 4.1 out?

2001-11-29 Thread Mark Charette
-Original Message- From: ~~~i LeoNid~~ [mailto:[EMAIL PROTECTED]] It could be stated on the site, or (and) tar could be re-moved. As far as I am concerned, as soon as something is placed on the web, you have no control over reference to it.. And access you can regulate of

Re: [PHP] Good host needed

2001-11-29 Thread Rudi Ahlers
No, no, no, what I meant was, I want to rent some servers, in order for me to start a webhosting company myself. Rudi Ahlers UNIX Specialist and Web Developer Bonzai Web Design - http://www.bonzai.org.za Cell: 082 926 1689 - Original Message - From: Chris Bailey [EMAIL PROTECTED] To:

  1   2   >