Re: [PHP] form variables issue
Can you check the source code? are there values in source, but it is not displayed on the browser? input type=text value=My Name is Richard name=first_name check this code snippet ?php echo get_magic_quotes_gpc(); // 1 echo $_POST['lastname']; // O\'reilly echo addslashes($_POST['lastname']); // O\\\'reilly if (!get_magic_quotes_gpc()) { $lastname = addslashes($_POST['lastname']); } else { $lastname = $_POST['lastname']; } echo $lastname; // O\'reilly $sql = INSERT INTO lastnames (lastname) VALUES ('$lastname'); ? Thanks Richard On 1/31/06, All U Want [EMAIL PROTECTED] wrote: Hi folks, I'm sure it is a very simple question for you but I'm getting almost crazy. I've got a simple form with several form objects, one of them is a text field. After submitting the form if one of the form objects hasn't been modified I will show the same form but keeping the data previously introduced. My problem is the text field, I can't show any special characters again, even if there was any space only the first word is shown, etc. I've been playing with different function like urldecode, urlencode, stripslashes, htmlspecialchars, etc. but couldn't show the same text. Do you know how I can fix this? Thanks a lot, David. Note that magic_quotes_gpc is enabled. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with realpath()
I think the DOCUMENT_ROOT is changed for new php implementation. Thanks Rich On 1/31/06, Ron King [EMAIL PROTECTED] wrote: Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a few bugs regarding realpath(), but none related to 4.4.1. When I try the following: ?php echo phpversion() . \n; echo dirname(__FILE__) . \n; echo realpath(__FILE__); ? With version 4.4.0, I get the following answer: 4.4.0 /web /web/realpath.php But on version 4.4.1 I get a fatal error: 4.4.1 /data/... -- different server, therefore different path, of course Fatal error: Call to undefined function: realpath() in /data/...). I'm too much of a newbie to know what to do on my own. Is this something my ISP has turned off? Thanks for any help, -- Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session loss
Which php version and platform? Thanks Rich On 2/1/06, Dave Goodchild [EMAIL PROTECTED] wrote: Hi all - does anyone know why, in certain cases, session variables are lost from the $_SESSION superglobal array? I am writing a session-driven app and for some reason the testing crew lose a certain variable while traversing forms but I cannot replicate the situation myself. Any knowledge of this will be appreciated!
Re: [PHP] Embedding HTML in PHP
Try to pass your content through htmlentities function. You can see the use of this function at http://www.weberdev.com/get_example-4208.html Thanks Rich On 1/31/06, Jedidiah [EMAIL PROTECTED] wrote: I apologize for the multi-post if this has reached the group already, but I have never heard any reply back on it, which seems unusual for this group. If I am asking in the incorrect place, could someone please direct me to the correct forum? I send out a daily devotion via a CRON job. This devotion is a PHP file with embedded html. The problem I am having is that when this job runs, an exclamation point or two are added randomly in the document and I cannot figure out why. I am not sure if I can attach fi
Re: [PHP] query regard forms in PHP
Another die hard question .. huh? Your all problems can be solved if you spend some time on http://weberdev.com. The answer to your question is www.weberdev.com/get_example-3927.html Thanks Richard Correia On 1/29/06, suresh kumar [EMAIL PROTECTED] wrote: hai, i am having 3 files,namely page1,page2 and page3,when i enter username and password in my first page i want 2 display my username and password in my third page through second page. A.suresh - Jiyo cricket on Yahoo! India cricket
Re: [PHP] PHP5 Build - test.php not working
I think your webserver is not treating .php as script file. AddType application/x-httpd-php .php http://www.weberdev.com/Manuals/PHP/install.windows.apache2.html The above instructions are for windows, but you will get the idea. Thanks, Rich On 1/31/06, Tod Thomas [EMAIL PROTECTED] wrote: I just built phpV5.1.2 with the same options I used to build php4: ./configure --prefix=/opt/php5 --with-apxs2=/opt/apache/bin/apxs --with-mysql=/opt/mysql --disable-cgi --with-zlib After make install I had libphp5.so in the ./apache/modules directory as expected. I commented out my LoadModule directive for php4 and uncommented out the directive for php5. I copied php.ini-dist to /opt/php5/lib/php.ini and restarted apache. I expected the test.php page that displays the date, time and the output of phpinfo() to work. Instead it just prints out all of the text, never interpreting the code. When I switch it back to php4 everything works fine. Neither the access or error logs display any problems. ldd of libphp5.so shows everthing as resolved. The apache user owns that lib as well as liphp4.so so no problems there. httpd -t says everthing is syntactically correct. I've really changed nothing other than the library and its name in httpd.conf. What else could I be doing wrong? Is there something I can try to debug and get it to tell me what's up? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP5 Build - test.php not working
can you try httpd -v, which all dynamic modules are listed? Rich On 1/31/06, Tod Thomas [EMAIL PROTECTED] wrote: Richard Correia wrote: I think your webserver is not treating .php as script file. AddType application/x-httpd-php .php http://www.weberdev.com/Manuals/PHP/install.windows.apache2.html The above instructions are for windows, but you will get the idea. Thanks, Rich I thought about doing that but I already had an AddHandler directive that took care of php. I expect if that was the problem it would have presented itself when I first installed php4. But I tried it and got the same result. Thanks - Tod
Re: [PHP] A black thumbnail.
Hi Tedd, Dynamic Thumbnail generation: http://www.weberdev.com/ViewArticle-388.html On 1/28/06, tedd [EMAIL PROTECTED] wrote: Hi: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. What's wrong here? I get an image that's the correct size, but it's black. Any ideas? Thanks. tedd code $dbQuery = SELECT image_type, image, image_width, image_height ; $dbQuery .= FROM pictures ; $dbQuery .= WHERE image_Id = $pic_id; $result = mysql_query($dbQuery) or die(Couldn't get file list); if(mysql_num_rows($result) == 1) { $fileType = @mysql_result($result, 0, image_type); $fileContent = @mysql_result($result, 0, image); $width_orig = @mysql_result($result, 0, image_width); $height_orig = @mysql_result($result, 0, image_height); // Set a maximum height and width $width = 200; $height = 200; if ($width ($width_orig $height_orig)) { $width = ($height / $height_orig) * $width_orig; } else { $height = ($width / $width_orig) * $height_orig; } // Resample $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($fileContent); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output imagejpeg($image_p, null, 100); } /code --
Re: [PHP] Apache is not parsing .php files
have you added .php .php3 .php4 extenstions to be treated as php files? Thanks, Richard On 1/27/06, sanjay [EMAIL PROTECTED] wrote: Hi, I have a strange problem while trying to run php based applications. Lets start with phpMyAdmin, a very popular open source tool to manage MySQL written in php. I have already installed phpMyAdmin and was running fine. One day suddenly when I pointed my browser at : http://localhost/phpMyAdmin Instead of running the phpMyAdmin browser opened a message window with options- Open With or Save to disk . I am sure its not browser problem because I tried on Firefox-1.5, Mozilla, Epiphany and Konqueror. One more point I would like to add here that if I write one small php program and save it in as php file (test.php) then http://localhost/test.php executes properly I am using Fedora 2 and apache2, php-4.3x and mysql-3.x were part of the Fedora installation. The only change I made in the /etc/php.ini file was to increase the memory limit from 8MB to 12MB. (Then restarted the http server) Now even php.ini file is in the original state but problem is still there. The http.conf file is unchanged. Can any one give me some sort of idea. Thanks, Sanjay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload_max_filesize
check MAX_FILE_SIZE attribute of file tag. Also does your webserver impose any file upload limit? Thanks Richard On 1/25/06, Daniel Lahey [EMAIL PROTECTED] wrote: A client has started experiencing problems with uploading files larger than the default 2M set in php.ini. The problem only started occurring a few weeks or so ago, and I cannot figure out how to get around it. I have a php.ini file in the /public_html folder that reads: post_max_size 8388608 upload_max_filesize 8388608 I've also tried peppering the code with calls to ini_set ('upload_max_filesize', '8388608'); In desparation, I've also tried a .htaccess file that reads:
Re: [PHP] function preg_match()
Hey Denyl, Simple workaround ... you can use ereg_replace insted of preg_replace http://www.weberdev.com/get_example.php3?Function=ereg-replace You can sort out your PCRE installation/configuration later. Thanks, Richard On 1/26/06, Denyl Meneses Guillén [EMAIL PROTECTED] wrote: When I try to use preg_match(), I get this... Fatal error: Call to undefined function preg_match() in /usr/home/www/library/defines.php on line 25 I have php5.0.4 ,web server Apache (Linux) . as I can solve it? Thanks, Denyl.
Re: [PHP] forwarding from virtual email account to real email account
Are you looking for something like this? SMTP using PHP? http://www.weberdev.com/get_example-4295.html Thanks Richard On 1/25/06, Binay [EMAIL PROTECTED] wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL PROTECTED] will be automatically forwarded to the real email account [EMAIL PROTECTED] Is it achievable using PHP ? Please throw some light as this becoming a major requirement of my client. Thanks in adance, Binay
Re: [PHP] absolute vs relative path?
I would suggest to keep a simple variable $HOSTNAME in your config file. Thanks Richard On 1/25/06, William Stokes [EMAIL PROTECTED] wrote: Hello, I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification. For example build this link dynamically: http://www.domain.com/www/test.php In test server the same should be: http://internalserver/www/test.php Thanks -Will
Re: [PHP] imagettftext, text values. How to add a new line? is it \n?
hey, Check the properties at http://www.weberdev.com/Manuals/PHP/function.imagettftext.html You can try second imagettftext with new X and Y co-ordinates. Thanks Richard On 1/25/06, Louie Miranda [EMAIL PROTECTED] wrote: imagettftext($im, $size, 0, 2, 13, $text_color, includes/resources/SHELAS.TTF, $text); I have generated this image text width=300 x height=300. The value of the $text is Hello World I want to get the second word which is World into the second line. I have tried \n but it has no effect. Would that be possible? Please help. -- Louie Miranda http://www.axishift.com -- under development
Re: [PHP] Problem with Sessions
upgrade to 4.4.X 4.2 has known problems in session handling. Thanks, Richard On 1/24/06, Barry [EMAIL PROTECTED] wrote: Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some session vars just get NULL. Not the whole session dies. nah just a few vars O_o I dont understand that. It happens not often, but at least 2 times a week. I have no var overwriting them. I wonder if anyone has an issue for that. Btw its PHP 4.2-2 running on a Red Hat system under GNu linux. really no idea what that is _ Thanks Barry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: (SCL: 5) [PHP] query problem.
Remove those brackets and . Or print htmlentities($email_address); Thanks Richard On 1/24/06, Duffy, Scott E [EMAIL PROTECTED] wrote: Viewing in browser? If so view source. -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 7:01 AM To: PHP List Subject: (SCL: 5) [PHP] query problem. Hi guys. I got an entry in a field called emailfrom in my table (MySQL db). The data in that field is: Sams Bank [EMAIL PROTECTED] I then do the following to retrieve the info, using a DB class $recordset=$conn-Execute(SELECT * FROM wiml_history WHERE id = $task_id); $row=$recordset-GetArray(); $emailfrom=$row[0]['emailfrom']; then I echo what I get out and I just get Sams Bank It doesnt bring back the whole entry in that field, however when I manually change the info in the field in the DB to: Sams Bank [EMAIL PROTECTED], it retrieves it correctly. Why does the cause that not to be displayed? or is it retrieving it correctly but not showing it because of the (which might be conflicting with HTML tags? thanks in advance --
RE: [PHP] Use of Ampersand in php
Hey, Check out this example at famous http://www.weberdev.com http://www.weberdev.com/get_example-3871.html Let me know if you need more information. Thanks, Richard -Original Message- From: Nirmalya Lahiri [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 8:34 AM To: php-general@lists.php.net Subject: [PHP] Use of Ampersand in php Hi everybody, Can any one tell me, what is the use of ampersand '' in php? Is it a pointer operator like 'C' language? Kindly note the example ?php $a=1; $b= $a; $c=$a; echo $b,$c; ? After running this example I got result 1 for both variable $b and $c. Why so? --Nirmalya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Search files in a directory!
Hey, Checkout the following example. This example lists the directory content; you can do a simple string matching. http://www.weberdev.com/get_example-1572.html Thanks, Richard Correia -Original Message- From: Nicholas Couloute [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 6:15 PM To: php-general@lists.php.net Subject: [PHP] Search files in a directory! I want to setup a search box that will search all the filenames in a given directory for the keyword provided by the user and display all the files that have that keyword? how would I do this? at least the searching part? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpmyadmin import
Hey Will, Following example will give you correct idea where to look. http://www.weberdev.com/get_example-3688.html Thanks, Richard Correia -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Monday, January 23, 2006 7:08 PM To: php-general@lists.php.net Subject: [PHP] phpmyadmin import Hello, When importing data from file with phpmyadmin the file max size is 2 048kb. Can this be changed to accept larger files? It would be more convenient to import data to my test DB if this could be done via single file export/import. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cookie reposted
By any chance, you are rewritting it/deleting it? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ??? Interesting -- the first time it's read correctly and the second time it's a security risk -- how doe that work? tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cookie reposted
Can you check your temporary internet files for the cookie? Does that cookie is deleted from the browser cache? With OS/Webserver/browser you are using? Thanks Rich On 1/24/06, tedd [EMAIL PROTECTED] wrote: By any chance, you are rewritting it/deleting it? Thanks Rich Rich: I'm definitely not rewriting the cookie, for if I quit the browser and return to the url again, the cookie data is still there. It's only when I return to the same url a second time that it doesn't appear again. It looks like I'll provide this to you only once per starting your browser. Maybe this is the way it works, but it's contrary to what I think should happen. tedd On 1/24/06, tedd [EMAIL PROTECTED] wrote: Tedd, The cookie is being set on the www.xn--ovg.com domain. The cookie is being read on xn--ovg.com domain. This is perceived to be a security risk, so the cookie isn't sent. David ???
Re: [PHP] Reference Notices -- Urgent
Hey Todd, You need to check the setting of error reporting in php.ini file. http://www.weberdev.com/Manuals/PHP/ref.errorfunc.html Thanks Richard On 1/24/06, Todd Brown [EMAIL PROTECTED] wrote: I'm getting the following notices: Notice: Only variables should be assigned by reference in Notice: Only variable references should be returned by reference in The code in question comes from PayPal (their CC processing API,) so modifying it to correct the reference issues is *not* an option. On the actual implementation server (PHP 4.4.1), I am not receiving these errors. On my test server (also 4.4.1), I am. I have run phpinfo() on both servers and carefully compared the output; as far as I can tell they are configured identically. I really need to be able to
RE: [PHP] Count of elements in XML
Hi Jay, Check the example at http://www.weberdev.com/Manuals/PHP/function.simplexml-element-children.html Thanks, Richard -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 11:06 PM To: PHP LIST Subject: [PHP] Count of elements in XML I was wondering if there is a way to get the number of foo elements in my XML below? This way I could loop through each element and print out the attributes. $string = a foo name=\one\ game=\lonely\1/foo foo name=\two\ game=\again\2/foo foo name=\three\ game=\blah\3/foo foo name=\four\ game=\goodness\4/foo /a; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getting list of files included
Check the example at http://www.weberdev.com/Manuals/PHP/function.get-included-files.html Thanks, Richard -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 11:55 PM To: php-general@lists.php.net Subject: [PHP] getting list of files included does anyone know of a command in php that will give you a list of the files already included . Something that would tell you whether a file is already included before you do the require_once ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help me pllzzzzzz
Whatever Suresh, I know as a beginer you are facing this problems. I would suggest that you check standalone htm version of php document. The dynamic combo script can be located at http://www.weberdev.com/get_example.php3?count=4074mode=text This site has 1000s of FREE ready to use PHP,MySQL scripts. Check out and list can saved from future urgent requests :) Thanks, Richard Correia On 1/18/06, suresh kumar [EMAIL PROTECTED] wrote: hi, i am having 2 combo box one for city another one for country,when i select particular country say india their corresponding cities will be displayed in city combobox as delhi,bangalore.,when i select Australia thier cities like perth,brisbanewill be displayed.plz help me itz very urgent. A.suresh Send instant messages to your online friends http://in.messenger.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how 2 open File Browser window in PHP
I think you need to take a close look at http://http://www.weberdev.com/ You can locate a cool file upload script at * http://www.weberdev.com/get_example-3923.html* Thanks Richard On 1/17/06, suresh kumar [EMAIL PROTECTED] wrote: hi, i dont know exact PHP code for how 2 open file browser window to uplad file or an image plz help me.its very urgent. A.suresh Send instant messages to your online friends http://in.messenger.yahoo.com
Re: [PHP] need help arranging files!
You can locate a good directory reading script at http://www.weberdev.com/get_example-1456.html Thanks, Richard On 1/17/06, Nicholas Couloute [EMAIL PROTECTED] wrote: I need to know how to arrange files alphabetically in my directory when I display it on the browser! I have it display the filename foreach that exist is there a way to arrange by alphabet? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: header data being inserted into message
Hey, You can use the readymase mailer class from http://www.weberdev.com/get_example-462.html and http://www.weberdev.com/get_example-3724.html Thanks Richard On 1/17/06, ET Support [EMAIL PROTECTED] wrote: Hello all, I am having a problem using PHP's mail function to send mail via BCC to multiple recipients. Here's my code; -- $get_emails = pg_exec($dbh,SELECT email FROM mailing_list WHERE conf = 1); $count = pg_numrows($get_emails); $bcc_count = $envelope_count = 0; $bcc_limit = 200; $subject = $body = 'test message'; $from = '[EMAIL PROTECTED]'; $header = From: $from\r\n; for($x = 0; $x $count; $x++) { $email = pg_result($get_emails,$x,0); if($bcc_count = $bcc_limit) { if($x 0) { $envelope_count++; mail($from,$subject,$body,$headers); } $headers = $header . Bcc: $email\r\n; $bcc_count = 1; } else { $headers .= Bcc: $email\r\n; $bcc_count++; } } # send the last envelope mail($from,$subject,$body,$headers); -- The problem is that for some recipients they get a message body like this; -- Message-Id: [EMAIL PROTECTED] Date: Mon, 16 Jan 2006 17:06:40 + (GMT) test message -- Any idea why those headers are being inserted into the message body and how that can be prevented? Thanks, Ben King [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Best way to do this: www.domain.com?page=var
I think you can do it using Location header. There is no need to use refresh. get more info at http://www.weberdev.com/Manuals/PHP/function.header.html Thanks Richard Correia On 1/17/06, Michael Hulse [EMAIL PROTECTED] wrote: Hello, What would be the best way to get a page variable like this: www.domain.com?page=home to show up when a user types in: www.domain.com My current fix is to have this: header(Refresh: 0; URL=http://www.domain.com/start.php?page=home;); ... on a index.php page on the root. Is there a way I can do this and avoid having a page that just does redirection? Thanks for help. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] Best way to do this: www.domain.com?page=var
Hey Steve, I know it can be done easily using apache rewrite rules. Since this user may not know it, I suggested location header. Rich On 1/17/06, Steve Clay [EMAIL PROTECTED] wrote: Tuesday, January 17, 2006, 10:54:21 AM, [EMAIL PROTECTED]: If you can't set a new 'default page' on your server, using a header('Location: ...') will simulate the same thing. Not really. Sending a Location: header says, this page is temporarily moved and the browser has to send a 2nd request for the new location. Whether redirecting via PHP (header), javascript or meta-refresh, these all needlessly force the browser to ask for the page twice, and potentially cause bookmarking/spidering issues when used for the home page. Amazon does this and it's annoying; some browsers just will not remember the plain old http://amazon.com/; that you typed in because only a redirect lives there. With a proper server config, the contents of start.php would be immediately sent to the browser. This is good. But if you can't set this on the server, this simple PHP script (index.php) does the same thing: ?php require 'start.php'; ? Steve -- http://mrclay.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help plz
Hey Suresh, I know ..we all have faced similar problem when we started our career in php perl mysql. Please visit the http://weberdev.com for ultimate article and code example for Php and Mysql. Try Wrox books for php5. Thanks Richard On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: hi, i am working as a web designer in PHP Mysql.i know the basics of PHP Mysql,i want 2 become PHP Expert,i am planning to buy one Book,but i dont know which book 2 buy.plz give me info . A.suresh
Re: [PHP] how 2 stroe images in Mysql Database using PHP
Hey ... Ready example ... http://www.weberdev.com/get_example-4062.html Thanks, Richard On 1/16/06, suresh kumar [EMAIL PROTECTED] wrote: Hi, i dont know how 2 store images in gif/jpeg format in Mysql Database.i also want 2 know PHP Code 2 store images in Mysql Database .reply me soon its very urgent . A.suresh Send instant messages to your online friends http://in.messenger.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP5/MySQL5/Apache2 Problems
can you post the exact errors? Richard On 1/16/06, Death Gauge [EMAIL PROTECTED] wrote: I've done everything I can think of to make PHP run with MySQL and Apache. I added PHP as a module to Apache2. I then told PHP that the extension_dir=./ext and then uncommented extenstion=php_mysql.dll But PHP isn't showing anything about MySQL when I restart Apache and now Apache won't start cause it is running into errors with PHP/MySQL. How do I fix this? All help is appreciated.
Re: [PHP] Parsing a large file
best way I think is nohup grep -i string log1 log2 log3 ...logx newfile This will run this command in background and you can work on other meanwhile. Thanks Richard On 1/13/06, Wolf [EMAIL PROTECTED] wrote: I have large log files from a web server (about a gig in size) and need to parse each line looking for a string, and when encountered push that line to a new file. I was thinking I could have PHP read in the whole file, but thinking it could be a major pain since I have about 20 log files to read through. Anyone have some suggestions? Thanks, Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Lions and tigers and slashes, oh my!
I think right you need to check urlencode. You can check a nice example at following php mysql resource site http://www.weberdev.com/get_example-481.html Thanks Richard Correia On 1/13/06, Jay Blanchard [EMAIL PROTECTED] wrote: I am having a problem with a an ampersand sign. I have a list of things on a page, in which one category is 'Oil Gas'. I store it in the database as 'Oil amp; Gas'. When the category is clicked the query string shows just an ampersand, i.e. Filter=ProcessFilterKey=Oil%20%20GasOrder=ApplicationDirection=ASCcomm ents= and therefore just shows as an '' and the query only sees 'Oil'. I guess that I am too tired to deal with this or the answer would come to mind immediately. Can someone drop kick me in the right direction? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP for Mac
Hi, I want to install PHP5 on Mac powerbook G4. Can someone please let me know where I can find it and it's related module? I am mainly looking for GD and mingswf module on Mac. Thanks Richard