Re: [PHP] Reg ex help-Removing extra blank spaces before HTMLoutput

2001-12-04 Thread Steve Edberg
One way to do it is: $NewString = ereg_replace('[[:space:]]+', ' ', $String); There are also ways to do it with preg functions that are slightly more efficient; see the pcre docs. And, the standard (AFAIK) reference book for regular expressions is O'Reilly's 'Mastering Regular Express

[PHP] Re: Volume email handling: I got the email blues

2001-12-04 Thread Manuel Lemos
Hello, "Richard Creech - Dreamriver.Com" wrote: > > Hello All, > I want to grab several thousand email addresses from my subscriber list and email >them. I wrote a script to do this. The addresses come from an online database. I have >completely rewritten the script once, but still it gives me

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-04 Thread Jack Dempsey
$text = preg_replace('|\s+|',' ',$text); -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:06 AM To: PHP list Subject: [PHP] Reg ex help-Removing extra blank spaces before HTML output I want to remove all superfluous blank spaces before I sent

[PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-04 Thread Ken
I want to remove all superfluous blank spaces before I sent my HTML output, to make the output smaller. So I'd like to take $input, replace any number of blank space or newlines that are consecutive and replace them with a single blank. I.e. I will list a blank space as b and a newline as n:

Re: [PHP] New Page Escape Sequence

2001-12-04 Thread chip
On Tuesday 04 December 2001 02:35 pm, Martin Towell wrote: > if it's just a plain text file then, in theory, you can insert a FF > character (0x0C) but as mentioned, this might not work on all printers. > > if you're using html, try using: > > or put the style in some other tag if it doesn't work

[PHP] Volume email handling: I got the email blues

2001-12-04 Thread Richard Creech - DreamRiver.com
Hello All, I want to grab several thousand email addresses from my subscriber list and email them. I wrote a script to do this. The addresses come from an online database. I have completely rewritten the script once, but still it gives me email blues. The script in general is very sluggish and

[PHP] Classes within classes (Should I do this?)

2001-12-04 Thread Cameron Just
Hi, Is this a bad thing to do have a class stored within another class? I would also like to store an array of another class within a class. It seems to work apart from the fact that I can't reference an array of class directly. ie $test_array[0]->get(); This gives an error. Example code. -

[PHP] ANNOUNCE: NetWindows

2001-12-04 Thread Mirek Novak
I've found st. very interesting at http://www.netwindows.org - DOM/HTML client-side environment for "windowing". Works with IE 5.5 & Mozilla M.N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] Mac OSX and MySQL

2001-12-04 Thread David Robley
On Wed, 5 Dec 2001 15:54, René Fournier wrote: > The migration continues... > > Now I have to get my mysql database running under MySQL 3.23.46 on OSX > 10.1.1. I've dumped the structure and contents of the database (on > Windows) into a text file, and now I'd like to recreate it in the new > eni

[PHP] Mac OSX and MySQL

2001-12-04 Thread René Fournier
The migration continues... Now I have to get my mysql database running under MySQL 3.23.46 on OSX 10.1.1. I've dumped the structure and contents of the database (on Windows) into a text file, and now I'd like to recreate it in the new enivronment. I think I can use the mysql admin tools via co

RE: [PHP] mysql update query

2001-12-04 Thread Lawrence . Sheed
I concur Probably this will work $result = mysql_query("UPDATE table SET value1='$value1',value2='$value2' WHERE id=$id"); remember integers id=1 are not strings id='1'; not the same! -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: December 5, 2001 11:37 AM T

[PHP] De su interes/Publi enseñanza

2001-12-04 Thread universt
PUBLI/ENSEÑANZA Learning University

Re: [PHP] mysql update query

2001-12-04 Thread Richard S. Crawford
What error are you getting, exactly? MySQL is not case-sensitive with regards to commands, but it is case-sensitive for table names, column names, etc. Make sure that the table names are exactly exact ;-) including cases, etc. You might double-check the values in the variables: do they contai

[PHP] Re: Scripts to provide free emails

2001-12-04 Thread Julio Nobrega
You can always see more at www.hotscripts.com/PHP But here's one from a friend, people seem to like it: http://www.uebimiau.sili.com.br -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishli

[PHP] Scripts to provide free emails

2001-12-04 Thread Tshering Norbu
Hi list, Anyone got or know scripts to give free email accounts? I work in ISP and am thinking about giving free emails to people. Thanks a lot in advance. NOBBY

RE: [PHP] mysql update query

2001-12-04 Thread Martin Towell
are any of the fields of type number/integer/etc? if so, try removing the quotes for that field. -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:36 PM To: Greg Sidelinger; [EMAIL PROTECTED] Subject: Re: [PHP] mysql update query Ever

Re: [PHP] mysql update query

2001-12-04 Thread David Robley
On Wed, 5 Dec 2001 13:57, Greg Sidelinger wrote: > I'm having trouble getting an update query to work > > Here is what I'm doing > > $result = mysql_query("update table set value1='$value1', > value2='$value2' where id='$id'"); > > It is not updating the database. All the $vars have values and I

Re: [PHP] mysql update query

2001-12-04 Thread Tyler Longren
Everything looks good to me...try this: $result = mysql_query("UPDATE table SET value1='$value1',value2='$value2' WHERE id='$id'"); Although I doubt MySQL cares if certain words are capitalized. Good luck though, Tyler Longren - Original Message - From: "Greg Sidelinger" <[EMAIL PROTECT

[PHP] mysql update query

2001-12-04 Thread Greg Sidelinger
I'm having trouble getting an update query to work Here is what I'm doing $result = mysql_query("update table set value1='$value1', value2='$value2' where id='$id'"); It is not updating the database. All the $vars have values and I'm using the correct columns names. Could someone please po

[PHP] 5928 Would you like to lose weight while you sleep? 537417

2001-12-04 Thread 753741ultimate
As seen on NBC, CBS, CNN, and even Oprah! The health discovery that actually reverses aging while burning fat, without dieting or exercise! This proven discovery has even been reported on by the New England Journal of Medicine. Forget aging and dieting forever! And it's Guaranteed! Click

Re: [PHP] Logic

2001-12-04 Thread Steve Werby
"Dan McCullough" <[EMAIL PROTECTED]> wrote: > Question. I am trying to check to see if a certain piece of code should be run. Here is an > example. > if ($type != "add") || ($type != "edit") || ($type != "delete") {//if this or this or this then > then run this code As pointed out, your paranth

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Miles Thompson
In a revised scheme for a customer I'm doing # 3. User can come into any page, a bit of PHP at the top does this: starts session registers "origin" assigns PHP_SELF to $origin checks to see if another session var is set and directs to logon page if not if( !session_is_registered( "member_id"

RE: [PHP] Logic

2001-12-04 Thread Martin Towell
now change || to && and see if that does the job -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 12:57 PM To: PHP General List Cc: Richard S. Crawford Subject: Re: [PHP] Logic that didnt work,i started off with if ($type != "add") {

Re: [PHP] Logic

2001-12-04 Thread Dan McCullough
that didnt work,i started off with if ($type != "add") { that works } else { this works } I have done this before I'm just having a brain cramp. if (($type != "add") || ($type != "edit") || ($type != "delete")) { print $subcat_output; } else { print "Back to List of Subcategories"; } ---

Re: [PHP] Logic

2001-12-04 Thread Richard S. Crawford
You need parentheses around the entire antecedent: if (($type !="add") || ($type !="edit") || ($type !="delete")) { //etc ^--- Note these parentheses---^ Hope that helps. At 05:28 PM 12/4/2001, Dan McCullough wrote: >Question. I am trying to check to see if a

Re: [PHP] PHP newbie alert

2001-12-04 Thread Richard S. Crawford
HomeSite is up to version 5. I use it primarily for the built-in FTP client, which makes website maintenance very, very easy. At 05:06 PM 12/4/2001, you wrote: >EditPlus2, there might be a newer version, trial never runs out. >HomeSite 4.5, there is a Macromedia version, 60 day trial, very ver

[PHP] Logic

2001-12-04 Thread Dan McCullough
Question. I am trying to check to see if a certain piece of code should be run. Here is an example. if ($type != "add") || ($type != "edit") || ($type != "delete") {//if this or this or this then then run this code } else { then run this } Is this correct, for some reason this isn't working

Re: [PHP] PHP newbie alert

2001-12-04 Thread Erik Price
Okay, you brought it up ! ;-) EMACS. If you use Unix, then this is your supersuite. This is your Microsoft Office for plaintext editors. Pros: Easier to learn than vi Many man many many many features Supercustomizeable Integrates tightly with Unix operating system Cons: A little on the bloa

Re: [PHP] PHP newbie alert

2001-12-04 Thread Dan McCullough
EditPlus2, there might be a newer version, trial never runs out. HomeSite 4.5, there is a Macromedia version, 60 day trial, very very worthwhile for a purchase. --- Andrew Forgue <[EMAIL PROTECTED]> wrote: > On Tue, 2001-12-04 at 05:25, shaun murphy wrote: > > Hello! > > > > Being one not to re

Re: [PHP] PHP newbie alert

2001-12-04 Thread Andrew Forgue
On Tue, 2001-12-04 at 05:25, shaun murphy wrote: > Hello! > > Being one not to refuse a challenge, I have been asked to administer and > update a PHP based website. I was wondering what a good editor is for such a > task. I have been having a look at Dreamweaver as I use that quite a lot but > ar

[PHP] Re: Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread Fred
Your form returns the date as an empty string "" which is an invalid date. MySQL sets all invalid dates to -00-00. There is a big difference between an empty string and NULL. If you want to insert NULL into the MySQL date field you will need to insert "/0" which is the escape sequence for NU

Re: [PHP] Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread David Robley
On Wed, 5 Dec 2001 09:01, [EMAIL PROTECTED] wrote: > I have added a new column in an existing MYSQL table called > "event_date" - type: DATE, NULL default. > > This database field will be filled if and when the field in the HTML > form is complete. When I added the new field to MySQL, it > aut

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread David Robley
On Wed, 5 Dec 2001 04:52, Brian C. Doyle wrote: > Okay so i got rid of the echo and still no go.. > > I am using version 4.0.6 > > At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote: > >phpinfo() is a function itself. It needn't echo: > > >phpinfo(); > >?> > > > >Zliy Pes, http://www.zliype

[PHP] Re: CURL functions

2001-12-04 Thread Fred
It would be difficult at best to answer your question without first knowing two things: 1. What did you expect it to do? 2. What did it actually do? Fred Stefan Isarie <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey, > > I'm trying to use CURL for sendi

[PHP] RE: banner management system

2001-12-04 Thread Andrew Chase
Try PhpAdsNew - it uses a MySQL backend: http://sourceforge.net/projects/phpadsnew/ It may not be what you're looking for if your site gets *extreme* amounts of traffic, but otherwise it's quite capable. (And free. :) ) -Andy > -Original Message- > From: Ali [mailto:[EMAIL PROTECTED]]

RE: [PHP] : IIS server doesn't recognize PHP pages

2001-12-04 Thread Andrew Chase
I'm not at all familiar with IIS, but in Apache terms it sounds like a MIME type problem; the server doesn't know what to do with .PHP files, so it assumes they're something that should be sent as a download/attachment instead of parsing with PHP and sending as HTML - I would imagine there would b

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Jim
You could just rename the column in the db. Putting quotes around Note is not the solution because the quotes are causing the invalid name error. I don't see that Note is a reserved word anywhere. Access is quite picky about what data you send it. For instance, if a field is set to require so

[PHP] Searching when using language specific characters

2001-12-04 Thread Torkil Johnsen
Note to Kurt Lieber: Stop whining about topics that have been discussed already. If this topic has been up before, just don't open it eh? Anyways: I have a register with lots of names in it, names which in some cases contain characters that can not be found in the ordinary english aphabet. Norweg

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread mweb
On Tuesday 04 December 2001 23:25, Jim wrote: > I've searched high and low for _good_ PHP/MSACCESS info, but the fact > is not that many people use it. I know. It's not my choice, believe me.. :-(( > What I've found very helpful is to use MS ACCESS' SQL builder to test > out my queries. Fair

[PHP] CURL functions

2001-12-04 Thread Stefan Isarie
Hey, I'm trying to use CURL for sending some headers to paypal. Can anyone tell me why this code below doesn't work as expected??? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.paypal.com/cgi-bin/webscr";); curl_setopt($ch, CURLOPT_POST, 1); curl

RE: [PHP] New Page Escape Sequence

2001-12-04 Thread Martin Towell
if it's just a plain text file then, in theory, you can insert a FF character (0x0C) but as mentioned, this might not work on all printers. if you're using html, try using: or put the style in some other tag if it doesn't work for there's also "page-break-after: always;" that you could use...

[PHP] Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread sgibbs
I have added a new column in an existing MYSQL table called "event_date" - type: DATE, NULL default. This database field will be filled if and when the field in the HTML form is complete. When I added the new field to MySQL, it automatically assigned NULL to all the existing records - which is

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Jim
I've searched high and low for _good_ PHP/MSACCESS info, but the fact is not that many people use it. What I've found very helpful is to use MS ACCESS' SQL builder to test out my queries. Fairly reliably, if it works there, it'll work in PHP. Jim >On Tuesday 04 December 2001 22:47, Andrew

[PHP] Re: session in https

2001-12-04 Thread php geko
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Php Geko wrote: > > > I am trying to set some sessions variables in an https (SSL): > > session_start(); > > ... > > $row = $results[0]; > > session_register("myses"); > > if(session_is_registered("

Re: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread mweb
On Tuesday 04 December 2001 22:47, Andrew Hill wrote: > mweb, > > Just a guess - is Note a reserved word? you might want to quote/escape it. Excellent idea. Actually, putting Note between double quotes gives: INSERT INTO Red (ID, Nome, Nickname, Username, password, pict, "Note", admin, playlist

[PHP] Re: php vbulletin and postgres

2001-12-04 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Shaun Murphy wrote: > > > me again. I am going to set up a vbulletin site and I understand it uses > > php along with mysql. I can get php and postgres hosting so I was > > wondering what the differences are in postgres as opposed to mys

RE: [PHP] PHP newbie alert

2001-12-04 Thread MrBaseball34
> Being one not to refuse a challenge, I have been asked to administer and > update a PHP based website. I was wondering what a good editor is for such a > task. I have been having a look at Dreamweaver as I use that quite a lot but > are there any extensions I should be using? > If you don't wa

Re: [PHP] How to resize a jpeg?

2001-12-04 Thread Jim
Since you have GD and libjpeg installed now, you can perform transformations from the shell and hence, from php through the exec() command. Such as ... exec("djpeg -scale 1/8 test.jpg | cjpeg -outfile test_thumb.jpg"); Here's a link to the man page for djpeg and cjpeg... http://nodevice.com/

[PHP] Re: PHP Help required

2001-12-04 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Eddie, > > There are some good books to get you started running - literally - with PHP > and a database (usually MySQL). > I would recommend PHP Fast and Easy (blue cover with red writing). Each > chapter focuses on a given task... buil

[PHP] Re: php vbulletin and postgres

2001-12-04 Thread Richard Lynch
Shaun Murphy wrote: > me again. I am going to set up a vbulletin site and I understand it uses > php along with mysql. I can get php and postgres hosting so I was > wondering what the differences are in postgres as opposed to mysql. > > are they different enough to cause any problems? No, yes,

[PHP] Re: Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Richard Lynch
Mweb wrote: > Hello, > > still fighting to drive MS access from PHP, I have come into an error when > I feed odbc_exec with this statement (db connection is fine now): > > INSERT INTO Redazione (ID, Name, Nickname, Username, password, From, Note, > amministratore, playlist, email, > role, web)

RE: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread Andrew Hill
mweb, Just a guess - is Note a reserved word? you might want to quote/escape it. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: mweb [ma

[PHP] Re: sizeof($array) with a twist

2001-12-04 Thread Richard Lynch
> I'd like to count the number of rows in a 2 dimensional array that have > the same data in their fifth field. Is there a PHP function that does > this? Sizeof() appears to lack condition parameters... You'll probably have to walk the array. I don't suppose this data is coming from a database?

[PHP] Column name not liked by PHP/ODBC and Access

2001-12-04 Thread mweb
Hello, still fighting to drive MS access from PHP, I have come into an error when I feed odbc_exec with this statement (db connection is fine now): INSERT INTO Redazione (ID, Name, Nickname, Username, password, From, Note, amministratore, playlist, email, role, web) VALUES (NULL , "me", "webmi

[PHP] Re: small window scripts in Javascript?

2001-12-04 Thread Richard Lynch
> How could i get rid of the white space and show the picture exactly same > size as the window, so it would be perfect fit. What else do I miss in the > codes to make the perfect fit size? Use the BODY tag and attributes like HORIZONTAL_PADDING or somesuch. There's a bunch of them, you need th

RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112

2001-12-04 Thread Richard Lynch
>> any one here can help my problem? Eventually. >> (I 'am using hypermart.net hosting, so i am not sure which >> php version that they >> provided) will tell you the version number, and a bazillion more things or varying importance. >> $sqlshow = "SELECT * FROM $table ORDER BY id DESC LIMI

Re: [PHP] How to resize a jpeg?

2001-12-04 Thread Jim
The algorithm for imagecopyresized() that comes with PHP isn't very good. Read up on it in the user comments here: http://www.php.net/manual/en/function.imagecopyresized.php There, a user has supplied a better function... >Hi, > >after getting gd to work (thanx folks!) I am having some probs

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-04 Thread Richard Lynch
> The PHP manual says it will release any acquired semaphores if they are > not released before the end of the script processing, but this is NOT > happening as it should. Any reasons why? Is this a known bug? Has anyone > else experienced this? Show us source code. Check at http://bugs.php.net/

[PHP] How to resize a jpeg?

2001-12-04 Thread Andy
Hi, after getting gd to work (thanx folks!) I am having some probs with the commands. The simple resize of a jpeg cant be that hard?! I have a 600x400 px jpeg and want to make a 80 x 60 out of it. Do I have to use imagecopyresized? And how. The result looks bad right now. Thanx, Andy --

[PHP] Is this the expected behavior?

2001-12-04 Thread Ernesto
Hi, I was having some problems with my PHP files (the first 3 HTML lines missing and Netscape trying to save the page to disk instead of showing it). So, I telnet'd my web server and manually issued a GET as follows: GET /anglers/index.php HTTP/1.1 And this was the response: HTTP/1.0 200 OK

[PHP] Re: I'm a n00b scum...

2001-12-04 Thread Richard Lynch
Markmi6 wrote: > And I've just read the tutorial on webmonkey.com on php and now I'm > hooked, > where can I get more stuff like that on webmonkey? Or would I be better > off buying a book on php and if so which do you recommend? > > -- > "It's not the job I enjoy, it's the people I run into" -

[PHP] Re: session in https

2001-12-04 Thread Richard Lynch
Php Geko wrote: > I am trying to set some sessions variables in an https (SSL): > session_start(); > ... > $row = $results[0]; > session_register("myses"); > if(session_is_registered("myses")){ > $myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=> > $row["password"]); >

[PHP] Re: Configuring PHP. php.ini does not do what it should

2001-12-04 Thread Richard Lynch
Andy wrote: > HI there, > > I am trying to get gdlibrary to work. > > The .dll on windows are in the extension directory and the comment tags in > the php.ini are deletet. > > I always get the error message, that the file > c:/PHP_404/extensions/php_gd.dll > cant be found. But it is there! >

[PHP] Re: How can I uncompress zlib data in the browser?

2001-12-04 Thread Richard Lynch
Brian Duke wrote: > Is it possible to use the zlib functions in php to compress data, send > that data to the browser, then uncompress it? My clients will only be > using IE so is there something in IE that will do it? Javascript? > > Thanks, > Brian > - Brian > > (Be sure to remove the # symbo

[PHP] Re: setcookie BUG w/ IE 5.5, 6.0 & Netscape!

2001-12-04 Thread Richard Lynch
Kris Wilkinson wrote: > Just recently I've noticed an issue with setcookie. My scripts which > normall ran : > > setcookie ("myCookie","Blah","time()+7201"); > > Are killing the cookie immediately after you close the browser window, or > access another https:// site. It appears as though the li

[PHP] How can I uncompress zlib data in the browser?

2001-12-04 Thread Brian Duke
Is it possible to use the zlib functions in php to compress data, send that data to the browser, then uncompress it? My clients will only be using IE so is there something in IE that will do it? Javascript? Thanks, Brian - Brian (Be sure to remove the # symbol before replying to my email address

RE: [PHP] PHP newbie alert

2001-12-04 Thread Ralph Guzman
I'd suggest Homesite: http://www.macromedia.com/software/homesite/ -Original Message- From: shaun murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:25 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP newbie alert Hello! Being one not to refuse a challenge, I have been ask

RE: [PHP] Stuck on array, need a little help.

2001-12-04 Thread Brian V Bonini
Probably, unfortunately I'm working with PHP 3.x and don't have a choice about it so I do not have "foreach". > -Original Message- > From: Steve Cayford [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 04, 2001 12:37 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Fwd: [

Re: [PHP] New Page Escape Sequence

2001-12-04 Thread Manuel Lemos
Hello, Chip wrote: > > On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote: > > I wish to take some information out of a database and create a text > > file with the information, nicely formatted. Does any one know of an > > escape sequence that works as a "new page" indicator for pr

[PHP] Configuring PHP. php.ini does not do what it should

2001-12-04 Thread Andy
HI there, I am trying to get gdlibrary to work. The .dll on windows are in the extension directory and the comment tags in the php.ini are deletet. I always get the error message, that the file c:/PHP_404/extensions/php_gd.dll cant be found. But it is there! Here is the line out of the php.ini

Re: [PHP] session in https

2001-12-04 Thread php geko
Only the old session vars show up when I do print_r($HTTP_SESSION_VARS); In the unsecure http I already registered a session var called $newses. when I go to the secure part I use the same sessionid -> session_id($sid); where $sid was part of the url https://domain.com/gotosecure.php?sid=$PHPSESI

[PHP] Re: Extract all fields of a table to vars of same name

2001-12-04 Thread Fred
If you have this select statement: $Query = "SELECT First, Second, Third FROM Table1"; and you execute the statement like this: $Result = mysql_query($Query); and retrieve a row like this: $Row = mysql_fetch_assoc($Result); then extract the row like this: extract ($Row); you end up with these vari

Re: [PHP] session in https

2001-12-04 Thread Julio Nobrega Trabalhando
$HTTP_SESSION_VARS shows you this. I don't remember precisely if or where it appears on phpinfo();, but you can try this to see all registered session variables: That's a nice way to see any array, BTW. Including $HTTP_SERVER_VARS, $HTTP_POST_VARS, GET, etc... nice one. -- Julio Nobrega

Re: [PHP] session in https

2001-12-04 Thread php geko
Hi Jim, I included a phpinfo in my script, where can I see the values of them? (in PHPINFO) Luc "Jim" <[EMAIL PROTECTED]> wrote in message news:p05101026b832d339af13@[192.168.1.17]... > > Unless you have an unstated purpose for serializing/unserializing, > it's not necessary because PHP automat

[PHP] Re: Extract data

2001-12-04 Thread J Smith
For a split this simple, I'd recommend using explode("|", $data). split() uses a regex for the first character (and as others have said, the pipe is a metacharacter in a regex, so you'll need to use "\|" instead of "|"), whereas explode() is simply literal. explode() will probably be slightly

Re: [PHP] session in https

2001-12-04 Thread Jim
Unless you have an unstated purpose for serializing/unserializing, it's not necessary because PHP automatically serializes and unserializes your session variables. Can you see the correct values if you insert the phpinfo() command? If you can that should give you a clue as to how to reference

[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)
Someone came with a very clever solution to simplify the extraction of all fields when doing aselect * from table it's a command that passes all values from the fields on the table to variables of the same name than the field on that table. No need to program it manually, creates all variabl

[PHP] Re: small window scripts in Javascript?

2001-12-04 Thread Baloo :0\)
To close the window when the user clicks on the hiperlink type in your HTML tag for Body This will close the present window when the user clicks on the hiperlink. When you close the present window, you need to open a new window (or an existing one) where you will display the new page. Alfr

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread J Smith
I'd recommend urlencoding those variables if you're going to do it that way, otherwise you may get some non-sense characters resulting in a bad URL. J Jim wrote: > > There are many different ways to do this ... > > 1. Have the same PHP script that validates generate the login page. > This

Re: [PHP] New Page Escape Sequence

2001-12-04 Thread chip
On Tuesday 04 December 2001 12:30 am, Manuel Lemos wrote: > Hello, > > Chip wrote: > > On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote: > > > I wish to take some information out of a database and create a text > > > file with the information, nicely formatted. Does any one know of

Re: [PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Jim
I do this ... $query = mysql_query("SELECT * FROM foo"); $data = mysql_fetch_assoc($query); extract($data); if you need all the rows from the query, do ... $query = mysql_query("SELECT * FROM foo"); while($data = mysql_fetch_assoc($query) { extract($data); } Jim >Someone came with

[PHP] session in https

2001-12-04 Thread php geko
I am trying to set some sessions variables in an https (SSL): session_start(); ... $row = $results[0]; session_register("myses"); if(session_is_registered("myses")){ $myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=> $row["password"]); $myses=serialize($myses); } the to

Re: [PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Hank Marquardt
that would be extract() -- http://www.php.net/extract On Tue, Dec 04, 2001 at 01:09:27PM -0700, Baloo :0) wrote: > Someone came with a very clever solution to simplify the extraction of all > fields when doing aselect * from table > > it's a command that passes all values from the fields on

[PHP] Extract all fields of a table to vars of same name

2001-12-04 Thread Baloo :0\)
Someone came with a very clever solution to simplify the extraction of all fields when doing aselect * from table it's a command that passes all values from the fields on the table to variables of the same name than the field on that table. No need to program it manually, creates all variabl

[PHP] Re: I'm a n00b scum...

2001-12-04 Thread Baloo :0\)
I strongly reccomend the book called PHP Essentials by Julie C Meloni It's written very simple and at the same time you learn quite good level of PHP Alfredo Markmi6 wrote: > And I've just read the tutorial on webmonkey.com on php and now I'm hooked, > where can I get more stuff like that on w

RE: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Dan McCullough
It has been my idea to make a function, and pass the fields, then register a global feedback var and then check one by one each required field, or what ever you are trying to verify in the fields. function formCheck ($username,$password,$smellycat) { global $feedback, $username, $password; if

[PHP] I'm a n00b scum...

2001-12-04 Thread MarkMI6
And I've just read the tutorial on webmonkey.com on php and now I'm hooked, where can I get more stuff like that on webmonkey? Or would I be better off buying a book on php and if so which do you recommend? -- "It's not the job I enjoy, it's the people I run into" - Bus Driver. - www.gamerse

Re: [PHP] mad .... again jpeg files...

2001-12-04 Thread Valentin V. Petruchek
Try to specify absolute path to the jpeg - possible php do not look up for jpeg in current folder... (or use './image.jpg') Zliy Pes, http://zliypes.com.ua - Original Message - From: "Miguel Loureiro" <[EMAIL PROTECTED]> To: "php-gen" <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001

RE: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Richard S. Crawford
My approach has been to pass an "error code" back to the original form. form.php: "); print("a buncha form crap"); if ($errcode==1) print ("Your user id is wrong. You suck"); if ($errcode==2) print ("Your password is wrong. You really suck"); print(" Then in

[PHP] mad .... again jpeg files...

2001-12-04 Thread Miguel Loureiro
Hello all, I still having problem when use jpeg functions... I got: " testout.jpg is not a valid JPEG file in .." , with follow code: Header("Content-type: image/jpeg"); $img=ImageCreateFromJPEG("testout.jpg"); ImageJPEG($img,"a.jpg"); ImageDestroy($img); testout.jpg was one image created b

RE: [PHP] Dynamically created dropdowns

2001-12-04 Thread Andrew Chase
That's true, but you could use PHP and the MySQL data to generate the JavaScript arrays for the dynamic menus... you can escape into PHP within the

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Brian C. Doyle
Okay so i got rid of the echo and still no go.. I am using version 4.0.6 At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote: >phpinfo() is a function itself. It needn't echo: >phpinfo(); >?> > >Zliy Pes, http://www.zliypes.com.ua >- Original Message - >From: "Brian C. Doyle" <[EMAI

RE: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Mark Charette
I cheat and just include the original form on error ... Almost all my input values are set to PHP variables in the form. The 1st time through none are set, so the values are blank. After submitting the form, I check for validity. If there are errors I mark the errors, generate an error string, an

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Valentin V. Petruchek
phpinfo() is a function itself. It needn't echo: Zliy Pes, http://www.zliypes.com.ua - Original Message - From: "Brian C. Doyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 8:07 PM Subject: [PHP] phpinfo() returning Zero Sized Reply > hello all, > > I h

[PHP] Re: PHP Help required

2001-12-04 Thread The Big Roach
Eddie, There are some good books to get you started running - literally - with PHP and a database (usually MySQL). I would recommend PHP Fast and Easy (blue cover with red writing). Each chapter focuses on a given task... building tables, then adding to table, then selecting from a table and - of

[PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Brian C. Doyle
hello all, I have a script with and getting Zero Sized Reply i have increased my timeout in php.ini and no change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

[PHP] You owe it to yourself to read this...

2001-12-04 Thread Raquel
Dear Fellow Entrepreneur, Are you achieving the results that you are trying to achieve with your online business? If your current business is offering a product that is a quick and simple solution to a problem that concerns most people, most of the time, then you would be very happy, and wea

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Valentin V. Petruchek
Set the form receiver to $PHP_SELF. When data is posted (use $HTPP_POST_VARS to check if is) check it for correctness. If everything is ok, use Header("Location: work_for_authorized.php") otherwise show the current (i.e. login page) with $user, $pass available... Zliy PEs, http://www.zliypes.com.

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Jim
There are many different ways to do this ... 1. Have the same PHP script that validates generate the login page. This way the script always has the correct data and you don't need to pass anything. 2. Header("Location: login.php?err=$err&user=$user&pass=$pass"); This will work, but the bad pa

[PHP] Re: header("Location:blah...") - passing variables

2001-12-04 Thread Julio Nobrega Trabalhando
You should really try to do it and see if it's possible, before asking on the mailing list... mainly because you will be satisfied with the results... -- Julio Nobrega Don't eat the yellow snow. "Lee Philip Reilly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

  1   2   >