[PHP] back-up mysql database using PHP
hello thereis there a way to create a back-up database through PHP?...i would like to create a file maybe an sql file that would served as back up of my database. Im using mysql database. I know i could use phpmyadmin to do this but i just like to have a function that would do this without going to phpmyadmin.any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] export data of html table
helloo.. i have a table generated using PHP javascript...the data on that table came from a form where several data was inputted... I want to let them see a preview of the data they entered, so i put a link or button that when clicked, will display all the data in the table and they will also have an option to print them. Is there a way to easily do this? does it really need exporting data to another application like excel in order to print it? please give me some advice...thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem with require_once
Good day to all... I would like to ask for some help.. I have a form created in javascript codes. The page is a pop up window. I am passing the values of the form using the method post. The PHP file that handles the form displays the values from that and had the following code in the beginning: ?php require_once('myclass.php'); //this class contains all functions for me to connect on the database rest of the code for displaying and saving values to an existing databse-- ? when i clicked the submit button, nothing happens and the page wouldl just refresh... but when i removed the require_once code of my PHP, the values from the form is displayed but of course, will not be saved since the class isnt there. can anyone help me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if extension loaded
The GD library was installed by the administrator, so nowthe function already works.:-) Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, July 18, 2007 4:37 am, Vanessa Vega wrote: I have a function that creates a thumb file(thumbnail) and and an image file(preview pic) in php. It starts with: function ($picFile, $thumbFile, $imageFile) { if (extension_loaded('gd') { ..codes to create thumb and preview pic... else ..creating images failed } everytime i test it, the function fails to create the images... This function works in joomla.. sorryim just new to php programming.:-) Is joomla running on the same server as your php script? I will assume not. Does ?php phpinfo();? list GD as one of the loaded extensions? I will assume not. The solution, then, is to install GD so that you have the GD functions available to you. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session_start(): Cannot send session cache limiter...
Hello to all! I encountered this error when the site is uploaded on the server: session_start(): Cannot send session cache limiter - headers already sent I already put session_start() on topmost part of the file..but i saved the file as utf-8..and that seems to be the problem..can anyone share their knowledge on this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] checking if extension loaded
I have a function that creates a thumb file(thumbnail) and and an image file(preview pic) in php. It starts with: function ($picFile, $thumbFile, $imageFile) { if (extension_loaded('gd') { ..codes to create thumb and preview pic... else ..creating images failed } everytime i test it, the function fails to create the images... This function works in joomla.. sorryim just new to php programming.:-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creating thumbnails
Good day to all! I would like to ask for some help with creating automatically thumbnail pictures using PHP.. thanks in advance! vanessa vega -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating thumbnails
Sorry for not being too specific...Well, to give an overview, i am uploading images on the server, i save the names of the images on my database(mysql) for retrieving them when i display it on the site.. im doing some kind of a gallery using thumbnails but i just resize the images to a smaller size using javascript.anyway..ill check out the links u provided...thanks! Stephen Edberg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 17 Jul 2007, Vanessa Vega wrote: Good day to all! I would like to ask for some help with creating automatically thumbnail pictures using PHP.. thanks in advance! Well, that's a pretty vague question. The more specific you are, the better answers you'll get. That being said, I'm happy with phpThumb - http://phpthumb.sourceforge.net/ Also see http://www.php.net/manual/en/ref.image.php http://www.php.net/manual/en/ref.exif.php and http://www.catb.org/~esr/faqs/smart-questions.html - steve ... . Steve Edberg [EMAIL PROTECTED] . . Computer Consultant University of California, Davis . . (530)754-9127 . ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP mail with attachment
Hello to everyone!..I had problems with attaching a document to an email using PHP..can somebody share some ideas on how to properly do it? Thanks in advance! Vanessa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fopen - warnings
Hello List, this is probably a very stupid question, but I dont know how to solve this little problem: I have a script with which text files (exported access db data sheets) can be uploaded to the mysql tables. It all works fine, but very annoyingly I get warning messages, if the text file is not resident on the server. But I want it in a way that it doesnt have to be on the server...a catch. The php manual says that if the file cannot be opened fopen returns false. All nice and good working, but I get those additional warning messages. Im not sure if it has maybe something to do with the server, but I am not convinced. Ill put the code below. Any suggestions are highly appreciated (I tried die command but it somehow messed up the routine). [schnipp] $file = array (colours.txt, categories.txt, stockmain.txt, stockcolours.txt); $i = 0; while ($file[$i]) { //öffne das textfile $datei = ; if ($datei = fopen($file[$i], r+)) { $zaehler = 0; //check wieviele zeilen das textfile hat //um zu verhindern, dass es leer ist! while (!feof ($datei)) //liest jede zeile einzeln mit fget() { $buffer = fgets($datei, 1000); //echo $buffer; //echo br; $zaehler++; } //end while (!feof ($datei)) // MORE CODE AFTER THIS // . } else { ? tr tdThe file ? echo $file[$i]; ? could not be opened: no Mysql insert./td /tr ? } $i++; if ($datei) { fclose($datei); } } [/schnipp] Warning messages are: Warning: fopen(categories.txt,r+) - No such file or directory in *some directory* on line 32 I hope anybody can help... - Nessi -
Re: [PHP] Forum script
Hi I personally like tForum, not as many features as ezboard but it gets pretty close and no banners or popup windows (ugh!). And you can pretty much design everything the way you want, easy setup too. http://www.sitehelpers.com/ Cheers, Nessi At 16:23 20/06/01 , you wrote: Hi Can someone recommend me some good script for forums ? Thanks, Rosen -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Select
Hi This is what I always do... 1. for one row (saved in array $reihe)... $bla = SELECT * FROM table WHERE id = '$something'''; // db is your database connection $test = mysql_query($bla, $db); // you dont have to use the if...i do that to check if anything was returned if ($reihe = mysql_fetch_row($test)) { echo $reihe[0] . $reihe[1]; } //this will output field one and two of the queried row 2. to get several rows in an array: $bla = SELECT * FROM table'''; // db is your database connection $test = mysql_query($bla, $db); while ($reihe = mysql_fetch_array($test)) { echo $reihe[0]; } //this will output the first field of all rows in this table - Nessi - (heh my first contribution to the mailing list! woohooo) ;))) At 14:32 23/05/01 +0100, you wrote: ok...sorry to ask a stupid question but $result = mysql_query(SELECT jazz FROM funk WHERE foo='bar') but where do you go from there. How would you iterate through the array a row at a time, doing your thing as you go along? thanks, jamie -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
[PHP] fput
Hi there, I am trying to upload a picture via ftp_put, but I keep getting the error message: Warning: ftp_put: url/image.jpg: No such file or directory. in /web/www/www.domain.com/upload.php on line xxx Does that mean I can only use the php locally where the file is? The php file is on one server and I am trying to upload a local file to another server. The normal copy function caused problems since it saves the files as user=nobody and i had problems with the directory modes. I thought the ftp functions were a good alternative. Am I wrong? I am not sure as what exactly has to be inserted into localfile and remotefile in the ftp_put function either. Any suggestions are welcome!!! Thx, Nessi *confused*