[PHP] Help on using PEAR DB
Hi, I am Using PEAR DB and i got this error after I have upgraded php4 to php5. Fatal error: Only variables or references can be returned by reference in /var/www/php/lib/php/DB/common.php on line 766 Could anybody tell me what I can do to resolve that error. Regards, Marc.
[PHP] Mail with acknowledgement of delivery
Hi, I got a problem with mail function. I want to know if it's possible to send a email in php and to get back an acknowledgement of delivery. My problem is that i want to know if my emails are delivered successfully to recipients. Can you please tell how to do this if there is a solution. thank you in advance, Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RAD tool
Hi, I'm designing intranet softwares with PHP. I want to know if it exists good RAD software to speed up developpement with a database. Like creating forms in relation with database in WYSIWYG mode. thanks for your answer, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail problem with PEAR
Hi, i want to send an email with an attached file using PEAR classes. I succeed to do it with one recipients and more. I use an external SMTP to send it. My problem is that when i want to send an email with for example 4 recipients and 1 attached file, the mail is send 4 times to the SMTP server. Is it possible to use PEAR mail function to send it 1 time to SMTP server and after that SMTP server send it to the 4 recipients ? thx for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] uploading files
Hi, i want to create a form to upload a file on a server. My problem is that i want to check the filesize before sending it because if the filesize is superior than 2 MB it failed and i don't want to wait for a long time for uploading a file that will fail. Can you please give me a solution to check the filesize. Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] uploading file
Hi, i want to create a form to upload a file on a server. My problem is that i want to check the filesize before sending it because if the filesize is superior than 2 MB it failed and i don't want to wait for a long time for uploading a file that will fail. Can you please give me a solution to check the filesize. Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Classe Variable
Hi, i got a problem to write automaticaly varibles in classes. i got a simple object name test like this classes Test{ public $id; public $text; } i want to affect my value to my variable like this $test = new Test $champ = id; $valeur_champ = 4; $test->$champ = $valeur_champ; my example is stupid i know but its just for an example. in fact when i write $test->$champ = $valeur_champ; I want that php execute $test->id = 4; can someone help me plz, Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Change Object Type
hi, i'm looking for a solution to change the object's class. i got a class and a derived class like this: (just for example, completly stupid ^^) class Ex{ var a; var b; } class Ex2 extends Ex{ var c; } i want to create an object Ex and after change the object class to Ex2 to complete him like this: $ex = new Ex(); $ex->a = 1; $ex->b = 2; $ex2 = (Ex2)$ex; /// here i want to convert object Ex to object Ex2 $ex2->c = 5; Can someone help me? I know it's possible to do this in JAVA but it is possible to do the same in PHP ? thx in advance, Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mandriva and gd problem
Hi all, I have php 5 and gd install on a mandriva and i'm working with it since a long time. Now i want to use functions like imagepstext that require gd with t1lib enable. I work with a mandriva server so i use urpmi to install php extensions and other programs. I've successfully installed php-gd package but at this time it is impossible for me to enable t1lib in mandriva. I don't find any package named php-t1lib or php-gd-t1lib so i install t1lib by hand but now i don't know how to say to php to enable t1lib. Can someone explain me how to do this on a system who use urpmi. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session problem
Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this : // session_start(); if ($_POST['langue']=="us") $_SESSION['language']="us"; else if ($_POST['langue']=="fr") $_SESSION['language']="fr"; header("Location: http://".$_SERVER['HTTP_HOST'].$_POST['page_name']); /*/ When the header function is called I'm correctly redirected on the right page but all my session variables are destroyed. Can you please help me resolving this problem. I've tried directly entering the path for redirection like that: header("Location: index.php"); but it's the same problem. Thanks in advance, __ MARC SERRA MASTER Commerce Electronique IUP GMI AVIGNON FRANCE
[PHP] File input in form
Hi, I'm designing a form with an file upload process. So I've wrote something like this: This work perfectly and now I got my file valid_form.php which receive the data: In that page I want to call a function to store file like this storeFile($fichier); ps :when I write : "echo $fichier_name" the name of the file is displayed. My problem is that in the function storeFile when I want to save data I got an error and when I write: "echo $fichier_name;" nothing appear like if it doesn't know my file.. So can you please tell me how to call a function with file in parameter to store it. Thx in advance, Marc.
[PHP] zip problem
Hi, I want to know if it's possible to extract a zip file in PHP. I've read php documentation on ZZIPlib but i don't find any solution to extract file. Can you please help me to solve it. Thx in advance, Marc
[PHP] auto increment
Hi, i use PEAR DB with a mysql database and i want to know if there is a solution to get last inserted id in a table. I see that I can use sequences but it doesn't work with mysql. Thanks, Marc.
[PHP] Question on data loading
Hi, I'm currently designing a website with a catalogue containing lots of products (more than 1000). To reduce response time to database, I want to know if there is a solution like loading all objects in memory for all users like a servlet could do in java and after giving to each people connected to website a way of accessing this "shared memory" ? I'm interested in any solution, thx Marc.
[PHP] objects in session
Hi, I got problem when i want to save object in session. I got my first page when I create my object and save it to session: Load($_Get['id']); $_SESSION['save'] = $test; ?> In my second page I want to retrieve my object When I do get_class($_SESSION['test']); I got the message "__PHP_Incomplete_Class" instead of "test" Can you explain me where I can have made an error. Thx, Marc.
[PHP] Send automatic emails
Hi, I'm designing a bid system but at this time I got a problem to automatically send an email at the end of a bid. The only solution I'm thinking is to create a program that check every minute if a bid was finish and I would have prefer not to develop another program. If you have any solution or idea that could resolve my problem please let me know, Thanks, Marc
[PHP] uploading large files
Hi, I'm designing a web site and i need to let users upload large files like 10M or more. I got some solution that are using common file transfert in PHP or using FTP transfert in PHP. The problem is that if someone upload a big file he will not have any indication about the upload status. Is there an easy way to give them a status indication like file size/percentage uploaded or showing them a graphical bar. Can u indicate me if there is any classes or scripts that can help me... Thanks, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PEAR mail
hi, i'm using Mail PEAR package and i want to send a mail to a recipient and to some other in Cc. So i try to add Cc in header but it failed and mail didn't been delivered to Cc. It was only delivered to adress specified in From field. I use that code : $hdrs = array( "From"=> "[EMAIL PROTECTED]", "Cc" => "[EMAIL PROTECTED]" "Subject" => "Tests" ); $mime = new Mail_mime($crlf); $mime->setHTMLBody(stripslashes($html)); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('smtp',$params); $mail->send($recipients, $hdrs, $body); Can someone say me how to use pear package to send a mail to an adress and to send it in copy to another one ? Marc SERRA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] filling a pdf form.
Hello, I got a problem with PDF. I got a PDF form that i want to put on a server to allow users to fill it. After this, i want to collect information entered by users and recreate a PDF file with all of them. It's important that's the original PDF file and the filled one had the same shape. Can someone explain me how to do this ? I think the better way is to convert the pdf form into HTML but i don't find a software that do that automaticaly. Another solution could be to create the same form in HTML but the PDF file is 10 pages long :( I got another problem. When i will find a way to collect information of my form, will it be possible to fill the original PDF file with the collected information without created it again ? I think it could be possible to do this using XML, XSL AND FDF in which order using them... Thanks for your help, Marc. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function with argument of type array
Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function test(String $litteral, array $foo){ . } I got an error when i do something like this. Can you help me please? Thx, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php