Re: [PHP] Re: change value of session variable?
Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php I also have ( apache/php 4.3.4/mysql ) installed on my computer and I get much more satisfactory results on it. I have made progress and some of my confusion on the subject has been cleared up so I'll just keep at it and see what happens. Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] change value of session variable?
Is it possible to assign a value to a session variable on say, page1.php: $_SESSION['favcolor'] = 'blue'; and then on another page, say page2.php reassign the value: $_SESSION['favcolor'] = 'green'; ? So far experimentation says no. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: change value of session variable?
page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: change value of session variable?
Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? Actually the above code doesn't initialize the variable as either green or blue. It leaves it blank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? Actually the above code doesn't initialize the variable as either green or blue. It leaves it blank. Are you behind any kind of firewall or proxy? Are you blocking cookies? These could be stopping the session from working period. You should have said that it wasn't working period. Your original e-mail lead me to believe that it could be set initially. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- The test code at http://ca.php.net/manual/en/function.session-start.php worked so I knew sessions were working to some extent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? Actually the above code doesn't initialize the variable as either green or blue. It leaves it blank. You might want to echo a variable after you set it (page1.php) or after you change it (page2.php). :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. I was actually trying to do this to pass values in another script. I'm writing some code that has to do with storing and retrieving images in mysql. I'm having trouble passing image information (the kind needed for getimagesize( ) to work) and I can't get session variables to initalize in that either. More experimentation with echo (and other code) placement needed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 18:43:12 -0400, Five [EMAIL PROTECTED] wrote: Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 21 Jul 2004 17:50:36 -0400, Five [EMAIL PROTECTED] wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? Actually the above code doesn't initialize the variable as either green or blue. It leaves it blank. Are you behind any kind of firewall or proxy? Are you blocking cookies? These could be stopping the session from working period. You should have said that it wasn't working period. Your original e-mail lead me to believe that it could be set initially. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- The test code at http://ca.php.net/manual/en/function.session-start.php worked so I knew sessions were working to some extent. Did you use the normal link or the SID link? -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- Both. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and that's why no one else was able to answer your question. Code is executed in order. Consider this: ?php $foo = 'one'; echo $foo; $foo = 'two'; ? This script will output one, and it should. :-) My problem isn't the logic of when and where to output variable values. It's figuring out when a session variable will accept initialization and what enables and/or prevents it from doing so. I would like to be able to initialize a session variable on one page, call a second page, have the code on the second page process some information and reinitialize the session variable to another value so that new value could be available to be used on the first page. A lot like having a function return a value. The problem is that the session variable won't accept a new value just any old where in the code on the second page (apparently.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Chris Shiflett wrote: --- Five [EMAIL PROTECTED] wrote: That did it! I wonder if there is a way, then, to have it work even if the variable is initialized after it is echoed. You see, that makes no sense, and that's why no one else was able to answer your question. Code is executed in order. Consider this: Maybe some custom output buffer will make it work!? :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com Good idea. I'll look into that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
The problem is that the session variable won't accept a new value just any old where in the code on the second page (apparently.) Or on the first one for that matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Five [EMAIL PROTECTED] wrote: My problem isn't the logic of when and where to output variable values. It's figuring out when a session variable will accept initialization and what enables and/or prevents it from doing so. There's no magic. Session variables behave exactly like any other variable. If you output a session variable before initializing it, you will see nothing (and a notice is generated, depending on your error_reporting setting). The only difference, in terms of using session variables, is that they persist from page to page. page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? When I tested the above example, no matter how many times I clicked back and forth between the two pages, the session variable would not accept assignment of values 'blue' or 'green', while there should be no value on the first look at page1 but should have echoed 'green' on the first visit to page2 as that was the value it was assigned on page1. When I changed the initialization and assignment of the session variable to before attempting to echo it's value, it then worked. That started me thinking that placement of the initialization/assignment might make a difference on whether a session variable would accept assignment of a value. An ordinary variable would have accepted assignment of a value after an attempt to echo it's value. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: change value of session variable?
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Five wrote: page1.php ?php session_start(); echo 'page #1br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'green'; echo 'bra href=page2.phppage 2/a'; ? page2.php ?php session_start(); echo 'page #2br'; echo $_SESSION['favcolor']; $_SESSION['favcolor'] = 'blue'; echo 'bra href=page1.phppage 1/a'; ? This code works exactly the way it's supposed to!! No value first time, then rotating value!! If it does not work for you, are you sure you're accepting the session cookie? How are you sure? Do you have a valid session.save_path? How do you know? Are you displaying errors? How do you know? If you see an SID in the URL when navigating the pages, does it stay the same between pages or change? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com If you had read my replies you would know how I know. And, oh yeah, if you're not a troll, how would I know? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload an image and store it in mysql
Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You're seeing raw data and need to specify the mime type with headers. Search the mailing list archive, there's a few example scripts in there. Just keep in mine that you need to create a separate script that handles the display of images. Thanks, that seems to work. Although trying to retrieve them and show them in a browser shows characters / symbols instead. This kind of stuff: jw4ëÜqÈHæQI'?Úeã@D[?A\Á `Ñ*[#?j ¥q6Ñ]Q.b Oâ¶(YO:9£-Òª(K\¯'½È ZÛÃEbXÊê£W(Ìe 9ƹpã´EXZaâÑlÑ˵m8=~±{ãx´fî ©ÜÎ Lãùy§ùeñ©±(£Zâ5O ¢µPP?3aª - Ãç?o XSÓD ~ûüJ¢ ÜVиܶF·7´s© cæ[3bä±C°EôÐî I've been playing with this for two days and am wondering if there's a way to retrieve and display the images in a browser using only php or is it necessary to use a graphics library like GD? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload an image and store it in mysql
Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The approach that an overwhelming majority of PHP developers (and other developers for that matter) use is to simply store the image on the file system. If these images are part of a web application you can then store a reference to the image in the database (ie: the filename only). Yes, I understand that, but for some reason I want to learn both ways : ) Anyhow, it's finally working (woohoo!) so thanks again everyone for your help. Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] upload an image and store it in mysql
I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload an image and store it in mysql
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Five wrote: I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? although I'm against storing files in databases... $file = mysql_real_escape_string(file_get_contents($_FILES['yourfile']['tmp_name'])); $query = INSERT INTO yourtable (imgdata) VALUES ('$file'); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com Thanks, that seems to work. Although trying to retrieve them and show them in a browser shows characters / symbols instead. This kind of stuff: jw4ëÜqÈHæQI'[EMAIL PROTECTED] `Ñ*[#j ¥q6Ñ]Q.b â¶(Y:9£-Òª(K\¯'½È ÛÃEbXÊê£W(Ìe 9ƹpã´EXaâÑlÑ˵m8=±{ãx´fî ©ÜÎ Lãùy§ùeñ©±(£â5 ¢µPP3aª Ãço XÓD ~ûüJ¢ ÜVиܶF·7´© cæ[3bä±C°EôÐî -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql - can't use the copy/paste function
Windows 98 se When using the dos window command line for mysql commands everything works fine except if I try to use the paste function to paste pre-typed commands, the window freezes. This is aaannnoooyyyiiinnnggg. advance thanks Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] string function that inserts a char
I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to insert a space without replacing or losing any of the original characters. Is there a function to do that? advance thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: string function that inserts a char
Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to insert a space without replacing or losing any of the original characters. Is there a function to do that? advance thanks, Dale I should add that, unless there's a function that does it all, I'm not really concerned with the finding the 50th char part. I know there's other funcs for that kind of thing. It's just that all I'm trying to do is make sure that when the string is output, it will wrap to the width of a table and not stretch the table width to suit it's fancy. If I manufacture a function to do all of the little things necessary to make this thing wrap, it seems like a lot of ugly code to do a simple task. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: string function that inserts a char
Jason Giangrande [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Five wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to insert a space without replacing or losing any of the original characters. Is there a function to do that? advance thanks, Dale I should add that, unless there's a function that does it all, I'm not really concerned with the finding the 50th char part. I know there's other funcs for that kind of thing. It's just that all I'm trying to do is make sure that when the string is output, it will wrap to the width of a table and not stretch the table width to suit it's fancy. If I manufacture a function to do all of the little things necessary to make this thing wrap, it seems like a lot of ugly code to do a simple task. Use substr_replace() and set the length value to 0. Here's an example: $text = Thistext; echo $textbr /; $text = substr_replace($text, , 4, 0); echo $text; Test it and you will see that a space is added into the text without replacing any of it. -- Jason Giangrande [EMAIL PROTECTED] http://www.giangrande.org http://www.dogsiview.com Thanks Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Javascript Mouseover Help
I would be very interested in a solution to this problem because I have a similar one. I stored tables on a page. examp: $table_1 = tabletrtd.$name./td/tr/table; $table_2 = tabletrtd.$message./td/tr/table; etc... and included the page and used the variables (echo $table_1;) The table displayed as it should, however the variables didn't have values( for $name, $message, etc..) I began testing for the problem by defining the string variable for the table on the same page as the php code examp: ?php $table_1 = tabletrtd.$name./td/tr/table; $table_2 = tabletrtd.$message./td/tr/table; $name = blah blah; if(blah blah){ echo $table_1;} else{ echo $table_2;} ? Again, the tables printed fine, but the variables ($name, $message) had no values. Most recently, I put the whole dam table in each conditional option. if (blah blah){ echo tabletrtd.$name./td/tr/table;} else{ echo tabletrtd.$message./td/tr/table;} Voila, the variables have values. It would seem that if a solution was found for Jake's problem it would also solve, or provide a key for solving, this one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Javascript Mouseover Help
F ?php F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F $name = blah blah; F if(blah blah){ F echo $table_1;} F else{ F echo $table_2;} ? You have to define variable $name before you try to use it. The only other way would be to eval the string but that is not the way to go :) Doesn't $name = blah blah; define it enough? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Re: Javascript Mouseover Help
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on E_ALL error reporting and it will tell you things like this. -- regards, Tom Cool, it works! include (the file where the tables are stored) after the the variables are defined, and it works. I took 3 semesters of C and C++ programming. I should have figured that out myself. Thanks Tom. Can you steer me to where the E_ALL error reporting gets activated? Some ini file I imagine? And oh yeah, I don't know if it helped Jake, but it worked for me. Thanks for starting the topic, Jake. Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to convert array into integer
Firman Wandayandi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Kenneth, You can implode an array first, and convert it to integer, see below. $number = (int) implode('', $yourarray); Good Luck, Firman - Original Message - From: Kenneth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 12:48 PM Subject: [PHP] how to convert array into integer To all, I have an Array ( [0] = 2 [1] = . [2] = 2 [3] = 0 [4] = 8 ) but i want to convert it into integer 2.208 in order to use it to plot graphhow can i convert it? thx, Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php implode(,) T'hat's a good one. What won't they think of next? Now I can get rid of my loops. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Are $_POST and $_GET interchangable?
David Jackson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I understand the difference between how they process from data. Most application seem to reply on $_GET which display the session/from/cookie values in the URL windows. What I'm not clear on are there times when you have to either $_POST or $_GET? TX, david That's a good question. Your post prompted me to check the manual. Searching the different categories at www.php.net for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to these two phenomena? tia Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Are $_POST and $_GET interchangable?
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to these two phenomena? [/snip] This is more of a general web programming question (see the info at http://www.w3c.org) GET and POST are two different methods of moving data from client to server. The GET method utilizes the URL for passing data and is limited in size (I forget the total number of characters allowed in the URL). It is also makes spoofing a little easier. Let us say I am an employee of a company and my app designers have done a poor job at security. I go to employee information at http://www.foo.com/employee.php?eid=jsmith If I have some snap and I want to see some other employee's info I can then type it into the URL http://www.foo.com/employee.php?eid=bstreisand POST removes the information from the view of the user, and IIRC you can pass tons of information to the server. The rules for usage come down to this - A little common sense goes a long way. There are really no specific rules. For web apps at my company I set the rules, I have seen other companies with other rules for the use of these two. I googled a few different queries and can't find any direct documentation. http://www.w3c.org has a lot of info, but none that I can find' on this subject (they need a 'search this site' option) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Are $_POST and $_GET interchangable? MORE
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] stuff [/snip] From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the processing agent. This attribute may take two values: get: With the HTTP get method, the form data set is appended to the URI specified by the action attribute (with a question-mark (?) as separator) and this new URI is sent to the processing agent. post: With the HTTP post method, the form data set is included in the body of the form and sent to the processing agent. The get method should be used when the form is idempotent (i.e., causes no side-effects). Many database searches have no visible side-effects and make ideal applications for the get method. If the service associated with the processing of a form causes side effects (for example, if the form modifies a database or subscription to a service), the post method should be used. Note. The get method restricts form data set values to ASCII characters. Only the post method (with enctype=multipart/form-data) is specified to cover the entire [ISO10646] character set. I'm begining to see. The definitions of $_POST and $_GET are word for word identical as predefined variables: http://ca.php.net/reserved.variables However they are designed to be paired with post and get form methods, the $_GET to be used with a href query string (after the '?' in a url) as mentioned in the page you supplied above (reposted below): http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 So apparently, one of the morals to the story is that the $_GET method is more prone to security breach? I still don't see the whole picture, but for what I'm doing now I don't really need to. Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php/mysql run on Microsoft Personal Web Server 4.0 ?
I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. It's getting to be a drag uploading each script change to check if it works. I think this can be done but wanted to double check before starting instalation. Will Microsoft Personal Web Server 4.0 running on Win98se support php and mysql? advance thanks Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php/mysql run on Microsoft Personal Web Server 4.0 ?
Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. It's getting to be a drag uploading each script change to check if it works. I think this can be done but wanted to double check before starting instalation. Will Microsoft Personal Web Server 4.0 running on Win98se support php and mysql? advance thanks Dale I can tell you if you install the server, install php using the windows installer, and then try to run a php script, nothing happens : ( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php/mysql run on Microsoft Personal Web Server 4.0 ?
Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've been learning php/mysql by uploading my scripts to a php/mysql enabled website. It's getting to be a drag uploading each script change to check if it works. I think this can be done but wanted to double check before starting instalation. Will Microsoft Personal Web Server 4.0 running on Win98se support php and mysql? advance thanks Dale If anyone is sstill interested, here's an excelent website that walks you through downloading, installing and configuring apache, php, and mysql. http://internetmaster.com/installtutorial/index.htm If it can work for my dyslexic eyes, it can work for anyone. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Get MySQL table field names
Michael Kunze [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. use 'DESC table_name;' -- Michael Kunze http://www.smrealms.de/ Caterva carissima mea est Ille Quis. Could you elaborate on that a litttle? I spent about an hour researching and experimenting with DESC and can't get it to work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Get MySQL table field names
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Monday 01 March 2004 10:04, Five wrote: Michael Kunze [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. use 'DESC table_name;' Could you elaborate on that a litttle? I spent about an hour researching and experimenting with DESC and can't get it to work. mysql_list_fields(), read it before you use it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* A man is only a man, but a good bicycle is a ride -- Murphy's Laws on Sex n50 */ Thanks, that's much easier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Text cleaning?
You mean something like this? $message = ereg_replace( \n, , $message); It seems to replace all new line instances with a blank space. Karl Timmermann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone have some PHP code to remove incorrect carriage returns? Example: Sentence should be Hi, my name is Karl and I like PHP. but is: Hi, my name is Karl and I like PHP. or Hi my name is Karl and I like PHP. I think I saw some code before that does it, but can't find it anywhere. Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php