Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server
引述 Richard Quadling rquadl...@googlemail.com: 1 - Can you confirm that the ini file you are editing is the one that is reported in phpinfo() as the file being used? Yes, BUT there is no MSSQL info of it... 2 - At a command prompt, change directory to your PHP installation and type ... php -m See if you have any errors being reported. If the INI file is in an unusual location, then use ... php -c location_of_php.ini file -m T:\php5php -c t:\php5\php.ini -m PHP Warning: PHP Startup: Unable to load dynamic library 'T:\PHP5\ext\php_mssql .dll' - The specified module could not be found. in Unknown on line 0 [PHP Modules] bcmath calendar com_dotnet ctype date dom filter ftp gd hash iconv json libxml mbstring mcrypt mysql odbc pcre Reflection session SimpleXML SPL standard tokenizer wddx xml xmlreader xmlwriter zlib [Zend Modules] T:\php5\extdir php_mssql.dll Volume in drive T is Data Volume Serial Number is DC85-706F Directory of T:\php5\ext 2009/12/16 下午 05:0649,232 php_mssql.dll 1 File(s) 49,232 bytes 0 Dir(s) 52,215,365,632 bytes free T:\php5\ext BTW : when running the cli of php -c t:\php5\php.ini -m, the system prompt me there is no MSVCR71.dll found... So, how can I install the dll file for test ( php -m ) again ? Thanks ! Edward. ITA Web Site : http://www.ita.org.mo E-mail Address : i...@ita.org.mo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Fwd: Problem of enable ( show ) Personal MailBox Quota Usage]
Dear All, Would you mind to help more ? Thanks ! Edward. Original Message Subject:Problem of enable ( show ) Personal MailBox Quota Usage Date: Sat, 06 Sep 2008 21:39:50 +0800 From: [EMAIL PROTECTED] To: IMP [EMAIL PROTECTED] CC: [EMAIL PROTECTED] [EMAIL PROTECTED] Dear All, Mine is FC6 System and enable build-in quota function ( Linux command ) : I have ever visit the document as the following : http://wiki.horde.org/QuotaHack?referrer=HowTo# And then, modify the following config files : For /horde/imp/config/servers.php : $servers['cyrus'] = array( 'name' = 'Mail Server', 'server' = 'xxx.xxx.xxx.xxx', 'hordeauth' = false, 'protocol' = 'imap/notls', 'port' = 143, 'maildomain' = 'xxx.xxx.xx', 'smtphost' = 'xxx.xxx.xxx.xxx', 'smtpport' = 25, 'realm' = '', 'preferred' = '', 'quota' = array( 'driver' = 'command', 'params' = array( 'quota_path' = '/usr/bin/quota', 'grep_path' = '/bin/grep' ) ), ); For /horde/imp/lib/Quota/command.php : class IMP_Quota_command extends IMP_Quota { /** * Constructor * * @param array $params Hash containing connection parameters. */ function IMP_Quota_command($params = array()) { $this-_params = array( 'quota_path' = 'quota', 'grep_path' = 'grep', 'partition' = null ); $this-_params = array_merge($this-_params, $params); } For Quota setting : [EMAIL PROTECTED] home]$ ls -l -h aquota* -rw-r--r-- 1 root root 10K Sep 5 23:50 aquota.group -rw-r--r-- 1 root root 10K Sep 5 23:50 aquota.user [EMAIL PROTECTED] home]$ BUT the result is problem : http://www.ita.org.mo/~edward/webmail/quota_problem.jpg Thanks for your help ! Edward.
Re: [PHP] Problem of Connection Character Sets and Collations
Boyd, Todd M. wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, September 06, 2008 9:41 AM To: [EMAIL PROTECTED] Cc: php Subject: [PHP] Problem of Connection Character Sets and Collations Dear All, For displaying with unicode Character Sets problem : MySQL : Command line of mysqldump and mysql : Which command line is right ? 1, --default-character-set=utf8 2, --default-character-set=utf-8 MySQL question. There's got to be a mailing list on http://www.mysql.com . phpmyadmin : The Connection Character Sets and Collations setting : Which command line is right ? 1, utf8_bin 2, utf8_general_ci 3, utf8_unicode_ci PHPMyAdmin question. PHPMyAdmin, while written in PHP, is not PHP. This would be like asking Internet Explorer questions in a Visual C/C++ mailing list/forum. php : Which command line is right ? 1, mysql_query(SET NAMES 'utf8'); 2, mysql_query(SET NAMES utf-8); Again, a MySQL question. I have to admit, though--you were tricky with this one. Wrapping your SQL code in a PHP function and posing it as a PHP question was awful slick. This question by itself is, I suppose, fairly relevant to PHP (in spite of its underlying MySQL subject matter)... but the other two are just bizarre and wholly unrelated, to be honest. Just to show I'm not an entirely negative person, I did some searching. After a Google session that lasted all of about a minute and a half, I found this page: http://dev.mysql.com/doc/refman/5.0/en/charset-syntax.html which shows utf8 being used in a MySQL command. My guess is that answer #1 and answer #3 are utf8 instead of utf-8. Todd Boyd Web Programmer Hello Todd, So, do you means as the following (If we need define the unicode character sets )? For php connection with MySQL : mysql_query(SET NAMES 'utf8'); For running MySQL command line ( such as mysqldump and mysql ) : --default-character-set=utf8 For using phpmyadmin ( Choose Connection Character Sets and Collations setting ) : use utf8_general_ci ( NOT use utf8_unicode_ci ) What different between them ? Are these setting right ? Thanks for your help ! Edward.
[PHP] Problem of Connection Character Sets and Collations
Dear All, For displaying with unicode Character Sets problem : MySQL : Command line of mysqldump and mysql : Which command line is right ? 1, --default-character-set=utf8 2, --default-character-set=utf-8 phpmyadmin : The Connection Character Sets and Collations setting : Which command line is right ? 1, utf8_bin 2, utf8_general_ci 3, utf8_unicode_ci php : Which command line is right ? 1, mysql_query(SET NAMES utf8); 2, mysql_query(SET NAMES utf-8); Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS 5and MySQL 5.x
Shawn McKenzie wrote: Paul Scott wrote: On Thu, 2008-03-27 at 10:32 -0400, Wolf wrote: I'd suggest going with a real operating system (linux) which keeps patches updated quicker... As much of a Free Software advocate as I am, that is not the answer to the question. That being said, however, I would replace the IIS with Apache2 at least... I seem to remember someone posting a really good guide to setting this all up at some stage, so a quick search through the archives should reveal all. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm Download the zip and read the install.txt. It doesn't get any easier than that. It's very straight forward and has worked for me every time. -Shawn Hello Shawn, How to enable php 5.2.5 with MySQL 5.0.51a ? Thank for your help ! Edward.
Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS5and MySQL 5.x
Shawn McKenzie wrote: [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Paul Scott wrote: On Thu, 2008-03-27 at 10:32 -0400, Wolf wrote: I'd suggest going with a real operating system (linux) which keeps patches updated quicker... As much of a Free Software advocate as I am, that is not the answer to the question. That being said, however, I would replace the IIS with Apache2 at least... I seem to remember someone posting a really good guide to setting this all up at some stage, so a quick search through the archives should reveal all. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm Download the zip and read the install.txt. It doesn't get any easier than that. It's very straight forward and has worked for me every time. -Shawn Hello Shawn, How to enable php 5.2.5 with MySQL 5.0.51a ? Thank for your help ! Edward. Make sure your extensions path is correct in php.ini and uncomment the extension=mysql.ini line in php.ini. -Shawn Hello, 1, I had edited with extension=php_mysql.dll 2, Test the php with mysql by using php page with phpinfo() function,the result of mysql is enabled. 3, I can edit the db data though the phpmyadmin tools. 4, BUT test the connection with mysql as the following code is fail : ?PHP //remember to change the password to whatever you set //it to in mysql instance configuration //first parameter is server name, 2nd username 'root', 3rd is password $rst = @mysql_connect(localhost,root,root); if (!$rst){ echo( pUnable to connect to database manager./p); die('Could not connect: ' . mysql_error()); exit(); } else { echo(pSuccessfully Connected to MySQL Database Manager!/p); } if (! @mysql_select_db(mysql) ){ echo( pUnable to connect database.../p); exit(); } else { echo(pSuccessfully Connected to Database 'MYSQL'!/p); } ? The warning message is Access denied So, any more help ? For the IIS configuration, load the c:\php\php-cgi.exe... Thanks ! Edward.
[PHP] How to install PHP 5.x on Windows Server 2000 with IIS 5 and MySQL 5.x
Hello to All, Would you mind to help as the title of mail ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php and ms-sql 2000 character-set
Dear All, How to control the character set for php and ms-sql 2000 ? Due to the php display the non-english ( eg : Chinese ) is ok, but the DB table is problem... Thanks ! Edward, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html tools for Web page
Łukasz Wojciechowski wrote: On 10/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, Is there a tool better than fckeditor ( http://www.fckeditor.net ) ? Would you mind recommend ? You may check out http://tinymce.moxiecode.com/ Hello, Does it support multi-language and linux system ? Thanks ! Edward.
[PHP] html tools for Web page
Dear All, Is there a tool better than fckeditor ( http://www.fckeditor.net ) ? Would you mind recommend ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php function
Dear All, Mine is FC6 System. So, the php come with it... If disable the function of phpinfo(), then all of the setting will be returned to the default ! Any solution for help ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]
Jim Lucas wrote: [EMAIL PROTECTED] wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads = On upload_max_filesize = 8M But For IMP Display result : 1, Maximum Attachment Size: 2,097,152 bytes ( only 2MB ??? ) Not sure what Maximum Attachment Size is referring to. Never heard of that setting Where are you getting #1 reading from? Are you sure that isn't a preset limit in Horde? 2, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1519127 bytes) in /home/itawm/html/horde/lib/Horde/MIME/Part.php on line 1027 ( limit 8MB ??? ) your file upload was larger then 8MB... ?? What is confusing about this? Mine is Linux FC6 System... Many thanks your help ! Edward. Hello Jim, Are you using the imp with FC6 also ? no If so, have you meet this kind of problem ? no Any more help or idea for me ? Not at this time since you didn't answer my questions about Horde. Many thanks ! Edward. it looks like PHP is doing exactly what it should be doing. I read that you tried uploading a file that was larger then the 8MB limit. That is a PHP error you showed us. How and where is the #1 error show to you? Never mind, I took 30 seconds and had Google tell me. http://www.google.com/search?q=imp+%22maximum+attachment+size%22+site%3Awiki.horde.org Check it out here http://wiki.horde.org/FAQ/Admin/Config?referrer=FAQ%2FAdmin# About two thirds the way down the page it will give you the answer the my initial question. How can I configure IMP's maximum attachment size? * man they should insert anchor tags so someone can link directly to what we are referring to It is not PHP that is setting the limit. 2MB is the default for the maximum attachment size Hello Jim, I have ever tried to set upload_max_filesize = 8MB... But it is still Maximum Attachment Size: 2,097,152 bytes Many thanks for your help ! Edward. Ok, let me explain this last time. the 8MB limit is set in php the 2MB limit is set in horde if you do not run your own server, your ISP probably set the PHP setting And the horde 2MB limit is the default attachment size I wasn't going to say it earlier, but google your friend. http://us2.php.net/manual/en/ini.core.php#ini.upload-max-filesize The default for upload_max_filesize is 2MB, so someone must have changed it at some point. And if you didn't change/set it, I'm going to guess you are using an ISP that did. Hello, Afte update the config of php, then reboot the Web Server, but horde / imp show us still 2MB limit... So, I don't understand where is the problem... Hope more any help for us... Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]
Jim Lucas wrote: [EMAIL PROTECTED] wrote: Hello, Afte update the config of php, then reboot the Web Server, but horde / imp show us still 2MB limit... So, I don't understand where is the problem... Hope more any help for us... Thanks ! Edward. The 2MB limit is a config option of Horde, NOT php Did you even read the page that I sent you for the Horde website? Hello Jim, I had config the php ( php.ini ) and imp/config/conf.php also... But it is still the problem... Thank ! Edward.
[PHP] Installation of pear
Dear All, Mine is FC6... Just download the pear from http://download.pear.php.net/package/PEAR-1.6.2.tgz So how to install the pear 1.6.2 with the system ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]
Jim Lucas wrote: [EMAIL PROTECTED] wrote: Jim Lucas wrote: [EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads = On upload_max_filesize = 8M But For IMP Display result : 1, Maximum Attachment Size: 2,097,152 bytes ( only 2MB ??? ) Not sure what Maximum Attachment Size is referring to. Never heard of that setting Where are you getting #1 reading from? Are you sure that isn't a preset limit in Horde? 2, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1519127 bytes) in /home/itawm/html/horde/lib/Horde/MIME/Part.php on line 1027 ( limit 8MB ??? ) your file upload was larger then 8MB... ?? What is confusing about this? Mine is Linux FC6 System... Many thanks your help ! Edward. Hello Jim, Are you using the imp with FC6 also ? no If so, have you meet this kind of problem ? no Any more help or idea for me ? Not at this time since you didn't answer my questions about Horde. Many thanks ! Edward. it looks like PHP is doing exactly what it should be doing. I read that you tried uploading a file that was larger then the 8MB limit. That is a PHP error you showed us. How and where is the #1 error show to you? Never mind, I took 30 seconds and had Google tell me. http://www.google.com/search?q=imp+%22maximum+attachment+size%22+site%3Awiki.horde.org Check it out here http://wiki.horde.org/FAQ/Admin/Config?referrer=FAQ%2FAdmin# About two thirds the way down the page it will give you the answer the my initial question. How can I configure IMP's maximum attachment size? * man they should insert anchor tags so someone can link directly to what we are referring to It is not PHP that is setting the limit. 2MB is the default for the maximum attachment size Hello Jim, I have ever tried to set upload_max_filesize = 8MB... But it is still Maximum Attachment Size: 2,097,152 bytes Many thanks for your help ! Edward.
[PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]
Dear All, Would you mind to help ? Thanks ! Edward. Original Message Subject:Attachment Size and Memory limit with php and FC6 System Date: Thu, 27 Sep 2007 00:28:03 +0800 From: [EMAIL PROTECTED] Reply-To: For users of Fedora [EMAIL PROTECTED] To: IMP [EMAIL PROTECTED] CC: [EMAIL PROTECTED] [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Hello, I just updated the php packages and restart the web server again... Create a test web page with phpinfo() function as the following result : post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads = On upload_max_filesize = 8M But For IMP Display result : 1, Maximum Attachment Size: 2,097,152 bytes ( only 2MB ??? ) 2, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1519127 bytes) in /home/itawm/html/horde/lib/Horde/MIME/Part.php on line 1027 ( limit 8MB ??? ) Mine is Linux FC6 System... Many thanks your help ! Edward. -- fedora-list mailing list [EMAIL PROTECTED] To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list __ NOD32 2550 (20070925) Information __ This message was checked by NOD32 antivirus system. http://www.nod32.com.hk
Re: [PHP] [Fwd: Attachment Size and Memory limit with php and FC6 System]
Jim Lucas wrote: [EMAIL PROTECTED] wrote: post_max_size = 10M max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 3600 ; Maximum amount of time each script may spend parsing request data memory_limit = 512M ; Maximum amount of memory a script may consume file_uploads = On upload_max_filesize = 8M But For IMP Display result : 1, Maximum Attachment Size: 2,097,152 bytes ( only 2MB ??? ) Not sure what Maximum Attachment Size is referring to. Never heard of that setting Where are you getting #1 reading from? Are you sure that isn't a preset limit in Horde? 2, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1519127 bytes) in /home/itawm/html/horde/lib/Horde/MIME/Part.php on line 1027 ( limit 8MB ??? ) your file upload was larger then 8MB... ?? What is confusing about this? Mine is Linux FC6 System... Many thanks your help ! Edward. Hello Jim, Are you using the imp with FC6 also ? If so, have you meet this kind of problem ? Any more help or idea for me ? Many thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Quota Display function sample
Dear All, Mine is Linux FC6 and define the quota by using the build in as the following : For sudoers : apacheALL= NOPASSWD:/usr/bin/quota, /bin/grep For /var/spool/mail -rw--- 1 root root 7168 Sep 24 23:02 aquota.group -rw--- 1 root root 8192 Sep 24 18:05 aquota.user So, is there as sample for Quota Display ( FS Quota ) ? I want to apply with a WebMail Client for a alarm message... Many thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] redirect http to https
Ben Liu wrote: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: ?php if($_SERVER['SERVER_PORT'] !== $encport || $_SERVER['HTTPS'] !== on) {header(Location: https://.$_SERVER['SERVER_NAME'].$_SERVER ['SCRIPT_NAME']);exit;} ? What do people think about this solution? Thanks, - Ben Hello, Why not config this knid of function by using you Web Server ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] redirect http to https
Ben Liu wrote: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: This should be done with the rewrite instruction of apache, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben Hello, FYI : ?php header(Location:https://www.yourdomain_name.com;); exit(); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php 4 and 5
Dear All, What different between 4 and 5 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Config language support
Dear all, How to config the default Character Set and Collation with big5 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Config language support
Seak, Teng-Fong wrote: Why still use Big5, this pre-historical encoding? Come on, we're in the 21st century. You should use Unicode! [EMAIL PROTECTED] wrote: Dear all, How to config the default Character Set and Collation with big5 ? Edward. -- * Zoner PhotoStudio 8 - Your Photos perfect, shared, organised! www.zoner.com/zps You can download your free version. Hello, Due to some of DB data still stored with big5... Edward.
[PHP] re-config the language of phpmyadmin
Dear All, How to config ( hard code ) the phpmyadmin of language to Chinese Charactor Set ? eg : Big5 Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpmyadmin for FC6
Dear All, Which version of phpMyadmin are you using with FC6 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpmyadmin for FC6
cajbecu wrote: [EMAIL PROTECTED] wrote: Dear All, Which version of phpMyadmin are you using with FC6 ? Edward. Always the latest. cajb. Hello, For phpMyAdmin-2.10.0-rc1, http://192.168.0.1/error.php?lang=zh-TWdir=ltrtype=%E9%8C%AF%E8%AA%A4error= phpMyAdmin - error For phpMyAdmin-2.9.2, When I try to modify a record set, display from IE : tbl_replace.php: Missing parameter: goto (FAQ 2.8) ./Documentation.html#faqmissingparameters http://192.168.0.1/Documentation.html#faqmissingparameters Here are a few points to check: * In config.inc.php, try to leave the $cfg['PmaAbsoluteUri'] #cfg_PmaAbsoluteUri directive empty. See also FAQ 4.7 #faq4_7. But the default is empty. * Maybe you have a broken PHP installation or you need to upgrade your Zend Optimizer. See http://bugs.php.net/bug.php?id=31134. How to Upgrade Zend Optimizer ? * If you are using Hardened PHP with the ini directive varfilter.max_request_variables set to the default (200) or another low value, you could get this error if your table has a high number of columns. Adjust this setting accordingly. (Thanks to Klaus Dorninger for the hint). The php is come from FC 6 System. * In the php.ini directive arg_separator.input, a value of ; will cause this error. Replace it with ;. Just try to modify the config and restart the web service, but still problem. * If you are using Hardened-PHP http://www.hardened-php.net/, you might want to increase request limits http://www.hardened-php.net/hphp/troubleshooting.html. No. Edward.
[PHP] Enable login prompt with main page of phpmyadmin
Dear All, I just install the phpMyAdmin 2.9.2 on the Web... So, how to enable the login prompt with the main page ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System
Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System
cajbecu wrote: [EMAIL PROTECTED] wrote: Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. the latest :) cajb. So, Which version no. ?
[PHP] Install / update php rpm packages with FC6
Dear All, Mine is FC6 System... When I install the php rpm package, the problem as the following : [EMAIL PROTECTED] php]$ rpm -qa | grep libc glibc-common-2.5-3 libcap-devel-1.10-25 libcroco-0.6.1-2.1 glibc-headers-2.5-3 glibc-2.5-3 libcap-1.10-25 libc-client2006-2006e-2.fc6 glibc-devel-2.5-3 libcroco-devel-0.6.1-2.1 [EMAIL PROTECTED] php]$ sudo rpm -Uhv php* warning: php-5.1.6-3.3.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2 error: Failed dependencies: libc-client.so.1 is needed by php-imap-5.1.6-3.3.fc6.i386 [EMAIL PROTECTED] php]$ Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Request of php5
Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: Dear All, Happy New Year, How much mem ( Ram ) does the php5 need ? Yes. :-) Depends on what extension you add, what you do with those extensions, and what sort of performance you expect to get. Depends if you run as a Module, as CGI, as Fast CGI, and if you are on Windows, Linux, FreeBSD, or Other. Probably a little more than PHP5, and not quite as much as PHP6. Does that help at all? I'd like to give a better answer, if you asked a better question. :-) I need php5 running with IMP ( Webmail - http://www.horde.org/imp ) and may be phpBB...
Re: [PHP] Request of php5
Curt Zirzow wrote: On 1/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: How much mem ( Ram ) does the php5 need ? ... Depends on what extension you add, what you do with those extensions, and what sort of performance you expect to get. Depends if you run as a Module, as CGI, as Fast CGI, and if you are on Windows, Linux, FreeBSD, or Other. ... I need php5 running with IMP ( Webmail - http://www.horde.org/imp ) and may be phpBB... How much ram is required is rather futile, it is more on how many requests per second your server can handle before you start even think about ram. Curt But actually, I want to know how muach mem ( ram ) does the new version of php need ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Request of php5
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-01 14:40:14 +0800: Dear All, Happy New Year, How much mem ( Ram ) does the php5 need ? As much as you make it use. Sorry, pardon me !
[PHP] Request of php5
Dear All, Happy New Year, How much mem ( Ram ) does the php5 need ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
Richard Lynch wrote: On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a If you're new to PHP, be a minimalist, and pull out PHP only when you absolutely have to: a href=javascript:popup('?php echo $dir?/index.htm') Test /a Since $dir is the ONLY part you want to be changing, use PHP only for that part. Switching in/out of PHP like this is very fast/cheap, and leaves you with HTML that mostly looks just like you are used to. YMMV Hello to you, php web page ( test.php ) : script language=javascript type=text/javascript !-- function popup(page) { window.open(page,title, height=100,width=100); } // -- /script a href=javascript:popup('./?php echo $dir?/index.htm') Test /a Result : homepage error Web Server error log : [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not exist: /home/web/index.htm [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not exist: /home/web/test2004.htm [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not exist: /home/web/readme.htm Please help, thanks ! Edward.
Re: [PHP] Apply the hyper link ( javascript functon ) with php
clive wrote: Hello to you, php web page ( test.php ) : script language=javascript type=text/javascript !-- function popup(page) { window.open(page,title, height=100,width=100); } // -- /script a href=javascript:popup('./?php echo $dir?/index.htm') Test /a Result : homepage error Web Server error log : [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not exist: /home/web/index.htm [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not exist: /home/web/test2004.htm [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not exist: /home/web/readme.htm Please help, thanks ! Edward. does $dir have a value ? probably nothing to do with php, does your page work if there was no php code in it and if you replaced ?php echo $dir? with a page url. and go through some tutorial on php !!! I just modified the test.php again : script language=javascript type=text/javascript function popup(page,title) { window.open(page,title, height=700,width=780); } /script a href=javascript:popup('index.htm') Test /a No any php var, it can open another windows, but no any display ( info ) with the windows : Only Location : javascript:popup('index.htm') Any more help ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello, Sorry... If the hyper link is : a href=javascript:popup('/$dir/index.htm') Test /a So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello Clive, Would you mind to help to modify the hyper link with php ( apply echo tag ) ? Sorry... I don't quite to know the php command Many thank for your help ! Edward. clive wrote: [EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : a href=javascript:popup('/$dir/index.htm') Test /a you want to use double quotes echo ; instead of single quotes echo ' '; the double quotes will parse any variables it finds, where as the single quotes will simply just echo what every you place between them. clive So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php
Hello Clive, I just modified the php program code : echo 'a href=javascript:popup(\'/$dir/index.htm\') Test /a'; But the page is error result (Display on the menu bar)! Edward. clive wrote: [EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : a href=javascript:popup('/$dir/index.htm') Test /a you want to use double quotes echo ; instead of single quotes echo ' '; the double quotes will parse any variables it finds, where as the single quotes will simply just echo what every you place between them. clive So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apply the hyper link ( javascript functon ) with php
Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array varible problems
Hello, I have just rewrite the source and test the result... But it is still problem ! So, more help ? Thanks ! [EMAIL PROTECTED] wrote: Hello Jasper, Does your means : I need to rewite the source / result page as the following ? Result page: ? for($i=0;$i4;$i++) { $f.$i=$_GET['$f.$i']; } ? table tr td? echo $f0[0];?/td td? echo $f1[0];?/td td? echo $f2[0];?/td td? echo $f3[0];?/td /tr tr td? echo $f0[1];?/td td? echo $f1[1];?/td td? echo $f2[1];?/td td? echo $f3[1];?/td /tr tr td? echo $f0[2];?/td td? echo $f1[2];?/td td? echo $f2[2];?/td td? echo $f3[2];?/td /tr /table Source page: table tr for($i=0;$i4;$i++) { tdinput type=checkbox name='f? echo $i;?[]' value='1'/td } /tr /table Thank for your help ! Edward. Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: Sorry, I don't quit understanding the site http://www.php.net/for... So, would you mind to give me a example about it ? for($i=0; $i3; $i++) { print($i); } will print: 0 1 2 Basically in any expression like the following: for(expr1; expr2; expr3) { // some code } expr1 is evaluated first. then for as long as expr2 is true, some code followed by expr3 will be evaluated over and over. So the example at the start of my message initially sets $i to 0, then repeats the code, adding 1 to $i each time, for as long as $i is less than 3. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array varible problems
Sorry, I don't quit understanding the site http://www.php.net/for... So, would you mind to give me a example about it ? Thank for your help ! Jasper Bryant-Greene wrote: Dan Lowe wrote: for($i=1;$i5;$i++) This means: * Start with $i = 1 * End loop if $i is less than 5 * Increment $i each time around So your loop is ending at the first check because $i is less than 5. You want $i 4 instead, I think. Umm, no, I don't think so... Your second point is wrong. The second part of a for statement indicates a statement that *must be true for the loop to continue*. I think you need to read this: http://www.php.net/for In the beginning of each iteration, expr2 is evaluated. If it evaluates to TRUE, the loop continues and the nested statement(s) are executed. If it evaluates to FALSE, the execution of the loop ends. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array varible problems
Hello Jasper, Does your means : I need to rewite the source / result page as the following ? Result page: ? for($i=0;$i4;$i++) { $f.$i=$_GET['$f.$i']; } ? table tr td? echo $f0[0];?/td td? echo $f1[0];?/td td? echo $f2[0];?/td td? echo $f3[0];?/td /tr tr td? echo $f0[1];?/td td? echo $f1[1];?/td td? echo $f2[1];?/td td? echo $f3[1];?/td /tr tr td? echo $f0[2];?/td td? echo $f1[2];?/td td? echo $f2[2];?/td td? echo $f3[2];?/td /tr /table Source page: table tr for($i=0;$i4;$i++) { tdinput type=checkbox name='f? echo $i;?[]' value='1'/td } /tr /table Thank for your help ! Edward. Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: Sorry, I don't quit understanding the site http://www.php.net/for... So, would you mind to give me a example about it ? for($i=0; $i3; $i++) { print($i); } will print: 0 1 2 Basically in any expression like the following: for(expr1; expr2; expr3) { // some code } expr1 is evaluated first. then for as long as expr2 is true, some code followed by expr3 will be evaluated over and over. So the example at the start of my message initially sets $i to 0, then repeats the code, adding 1 to $i each time, for as long as $i is less than 3. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array varible problems
Dear you, Now, I want to define a set of array varible with table structure as the following: Result page: table tr td? $f1[0];?/td td? $f2[0];?/td td? $f3[0];?/td td? $f4[0];?/td /tr tr td? $f1[1];?/td td? $f2[1];?/td td? $f3[1];?/td td? $f4[1];?/td /tr tr td? $f1[2];?/td td? $f2[2];?/td td? $f3[2];?/td td? $f4[2];?/td /tr /table Source page: table tr for($i=1;$i5;$i++) { tdinput type=checkbox name='f? echo $i;?[]' value='1'/td } /tr /table Only display the result of zero array, eg : f1[0] f2[0] f3[0] f4[0] So, how to write the source (Web page - when user click the submit button) by using loop ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] varibles defination
How can we define and display the varibles by using for loop function ? ?php for ($x=0;$x10;$x++){ $func[$x]=$x; } print_r($func); ? If I want to define a set of varibles ( two dimension array, eg : $func[0,0] ) and via the varibles of form tag ( format, eg : $_GET[varname] or $_POST[varname] )... How about the example ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: [PHP] varibles defination]
Dear you, So, if I need to define a set of varibles ( two dimension array, eg : $func[0,0] ) and via the varibles of form tag ( format, eg : $_GET[varname] or $_POST[varname] ), how about the example sources ? Thank for your help ! Edward. ---BeginMessage--- If I want to define and display a set of varibles, for example : $func1 = 0 $func2 = 1 $func3 = 2 $func4 = 3 $func5 = 4 How can we define and display the varibles by using for loop function ? ?php for ($x=0;$x10;$x++){ $func[$x]=$x; } print_r($func); ? This uses an array, so, in this case, your variables would be referenced as $func[0]..$func[9]. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] varibles defination
Dear You, If I want to define and display a set of varibles, for example : $func1 = 0 $func2 = 1 $func3 = 2 $func4 = 3 $func5 = 4 How can we define and display the varibles by using for loop function ? Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php + html (frame)
Dear All, I just created a webpage with frame structure: top.php ( name of frame is t ) + buttom.php ( name of frame is b ) + right.php ( name of frame is r ) Now, I want to make a hypher link with top.php, and when user mouse click the link under top.php, then there will load a php ( base target is b ) and load another php ( base target is r )... So, is there a sample for reference mouse click a hypher link then auto load two php pages into different target area ? Edward. ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php + html (frame)
John Nichel wrote: [EMAIL PROTECTED] wrote: Dear All, I just created a webpage with frame structure: top.php ( name of frame is t ) + buttom.php ( name of frame is b ) + right.php ( name of frame is r ) Now, I want to make a hypher link with top.php, and when user mouse click the link under top.php, then there will load a php ( base target is b ) and load another php ( base target is r )... So, is there a sample for reference mouse click a hypher link then auto load two php pages into different target area ? Edward. This has nothing to do with PHP.?Use a HTML/JavaScript mailing list, and/or read some howto's for HTML/JavaScript. But I want to use php instead of HTML/JavaScript... So, is there any sample for reference ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem of varibles between webpages
Dear All, After disable the globals varibles function... Then how to transfer varibles between webpages with the following ways ? 1, Table form format. 2, Hyperlink ( click and go to another webpage ) format. 3, upload file ( through php into database ). Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem of varibles between webpages
Hello, For table form format ( sample ), form method= action= table trtdYour Name : /tdtdinput name=name size=30 maxlength=60/td/tr trtdAddress/tdtdinput name=address size=30 maxlength=60/td/tr /table /form name and address is varible, so how can we pass these two varible without register_globals function ( actually it is disable ) to another webpage ? Many thank for your help ! Edward. John Holmes wrote: From: [EMAIL PROTECTED] After disable the globals varibles function... Then how to transfer varibles between webpages with the following ways ? register_globals has nothing to do with how you pass variables... you still use the URL or forms. It only changes how you access them in PHP scripts, i.e. using $_GET['var'] instead of $var. 1, Table form format. wtf is this? 2, Hyperlink ( click and go to another webpage ) format. The variables passed in a URL are available in $_GET and $_REQUEST. I have ever try to use $_GET and $_REQUEST, but fail... I will send my samples in here. 3, upload file ( through php into database ). $_FILES ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem of varibles between webpages
Matthew Sims wrote: Hello, For table form format ( sample ), form method= action= table trtdYour Name : /tdtdinput name=name size=30 maxlength=60/td/tr trtdAddress/tdtdinput name=address size=30 maxlength=60/td/tr /table /form name and address is varible, so how can we pass these two varible without register_globals function ( actually it is disable ) to another webpage ? Many thank for your help ! Edward. Your method and action are blank. form method=post action=whatever_page.php You need a submit button. input type=submit name=add value=Submit Submit will pass the vars to whichever page action is set to. The vars will be in the $_POST array, basically $_POST['name'] and $_POST['address']. Whatever page action calls, you can have php check that the submit button was executed like: ?php if (isset($_POST['add')): ?// whatever you want to do with $_POST['name'] and $_POST['address'] endif; ? Hello Matthew, I have ever try to use $_POST functon, but fail... May be I need to check the config of php (?ini file ) again , and I want to know which setting must be enable and which setting must be disable ? Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem of varibles between webpages
John Nichel wrote: [EMAIL PROTECTED] wrote: Hello, For table form format ( sample ), form method= action= table trtdYour Name : /tdtdinput name=name size=30 maxlength=60/td/tr trtdAddress?/tdtdinput name=address size=30 maxlength=60/td/tr /table /form name and address is varible, so how can we pass these two varible without register_globals function ( actually it is disable ) to another webpage ? Many thank for your help ! Edward. I guess you ignored the link I posted earlier. RTFM http://us4.php.net/manual/en/language.variables.external.php PS?'Table form format'??No such animal.?It's either a form or a table.?In your example, a form inside of a table. Dear John, I have just test a sample through the link, but fail... So, I'm check my php config ( ini file ), and would you mind to tell me which setting must be disabled / enabled ? Thank for you help so much ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem of varibles between webpages
John Holmes wrote: From: [EMAIL PROTECTED] Dear John, I have just test a sample through the link, but fail... So, I'm check my php config ( ini file ), and would you mind to tell me which setting must be disabled / enabled ? John is very helpful and loves to dedicate his time to helping new users. If you don't get a response within the next 10 minutes (he's always available), just continue to write him and ask him for help. It's the Christmas season, right??? Merry Christmas John, Dear John, Merry Christmas too first, I have tried to do the test about the varible ( transfer ) this morning ( China Time ), but I don't know what happen about the result... So, I hope you can help me to test and finish the result ! Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem of varibles between webpages
Jason Wong wrote: On Friday 24 December 2004 11:27, [EMAIL PROTECTED] wrote: I have ever try to use $_POST functon, but fail... HOW did it fail? Please be specific. The result of $_POST['vars'] is blank ! May be I need to check the config of php (?ini file ) again , and I want to know which setting must be enable and which setting must be disable ? $_POST is only available from version 4.1.0 of PHP onwards, and is enabled by default. If you're using any version older than that you *really* ought to upgrade. All this and more are in the link that you had been given, read it. There is two servers for the test, one is using Fedora Core 2 Linux ( come with php 4.x.x ), another is using W2k + php 5.xx ! So, I think may be the problem of php config... But I don't know how to fix the problem ( setting of php config ) ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: [PHP] Problem of varibles between webpages]
?---BeginMessage--- Jason Wong wrote: On Friday 24 December 2004 11:27, [EMAIL PROTECTED] wrote: I have ever try to use $_POST functon, but fail... HOW did it fail? Please be specific. The result of $_POST['vars'] is blank ! May be I need to check the config of php (?ini file ) again , and I want to know which setting must be enable and which setting must be disable ? $_POST is only available from version 4.1.0 of PHP onwards, and is enabled by default. If you're using any version older than that you *really* ought to upgrade. All this and more are in the link that you had been given, read it. There is two servers for the test, one is using Fedora Core 2 Linux ( come with php 4.x.x ), another is using W2k + php 5.xx ! So, I think may be the problem of php config... But I don't know how to fix the problem ( setting of php config ) ! Edward. ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: [PHP] Problem of varibles between webpages]
Jason Wong wrote: On Friday 24 December 2004 12:02, [EMAIL PROTECTED] wrote: The result of $_POST['vars'] is blank ! And this was the result of using the form that you originally had or the corrected form that Matthew suggested? If you want the form values to be available in $_POST then you need to specify method=POST in your form. May I suggest that you get a better understanding of HTML before attempting to use PHP? $_POST['var'] or $_GET['var'] which I also ever tried... But at this time, I'm vary hard to found out what happen ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] images process
Yes, I need a sample ( display images with php directly from database ) for reference... So, can you help me ? Many thank for your help ! Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: So, how can we fix this kind of problem ? is it a problem? Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: Dear You, How to load images ( eg: gif, jpg) with base64 function from Database on IE directly ? as far as I know you cannot do this with IE directly. Is there any samples to me for reference ? Many thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] images process
Sorry, I need a sample of php program... Thanks! Paul Furman wrote: You need to set up an apache server get that running on your windows machine in order to run php. Then you go thru IE to view the php script run it that way. [EMAIL PROTECTED] wrote: Yes, I need a sample ( display images with php directly from database ) for reference... So, can you help me ? Many thank for your help ! Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: So, how can we fix this kind of problem ? is it a problem? Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: Dear You, How to load images ( eg: gif, jpg) with base64 function from Database on IE directly ? as far as I know you cannot do this with IE directly. Is there any samples to me for reference ? Many thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] images process
Dear You, How to load images ( eg: gif, jpg) with base64 function from Database on IE directly ? Is there any samples to me for reference ? Many thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] images process
So, how can we fix this kind of problem ? Raditha Dissanayake wrote: [EMAIL PROTECTED] wrote: Dear You, How to load images ( eg: gif, jpg) with base64 function from Database on IE directly ? as far as I know you cannot do this with IE directly. Is there any samples to me for reference ? Many thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem of varible
Dear You, When disable the globals varibles function, the following php can't be good for working : upload1.htm Form Action=getfile1.php Method=POST Enctype=multipart/form-data Input Type=File Name=upfile p Input Type=Submit value=Send /Form getfile1.php ? echo File Name$upfile_nameBR; echo File Size$upfile_sizeBR; echo File Type$upfile_typeBR; echo Temp File$upfileBR; copy($upfile, /tmp/$upfile_name); ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] varible
Chris W. Parker wrote: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ??on Monday, April 12, 2004 8:32 AM said: Is there a solution ( without open global ) , then send the value of the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. Dear Chris, Would you mind to post me a sample about the useful of $_SESSION ? Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] varible
Dear You, Is there a solution ( without open global ) , then send the value of the varible of list.php to view.php ? list.php : ?php ?? $username = 1234; ? $password = 1234; ? $MAILSERVER= {localhost/imap/notls}; ? $link = imap_open($MAILSERVER, $username, $password); ? $headers = imap_headers($link); ? for ($x = 1; $x = count($headers); $x++) ? { ???$idx = $x - 1 ; ?cho?a href=\view.php?num=$x\$headers[$idx]/abr; ? } ? view.php : ?php ?? $username = 1234; ? $password = 1234; ? $mailserver = {192.168.0.236/imap/notls}; ? $link = imap_open($mailserver, $username, $password); ? echo(PRE); ? echo(imap_fetchheader($link,$num)); ? echo(BRP); ? echo(imap_body($link,$num)); ? echo(/PRE); ? Thank for your help so much ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem of unicode ( Inserted data / Query )
Dear You, How to control php convert inserted data or query to / from MS-SQL ( MUST in charset of unicode ) ? For example, Insert data into MS-SQL : A client user ( using his/her own language ) insert some data into MS-SQL, then MS-SQL MUST store the data ( which come from the client user ) in unicode format ( charset ). Query from MS-SQL : A client user ( using his/her own language ) search some info from MS-SQL, but all of the format of stored data were unicode ( charset ), so must convert the charset of unicode to a special format ( charset ) for the client user ( correspond to his/her own language ) Many thank for your help so much ! Best Regards, Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can't to insert data ( via variable ) into MS-SQL
Rob Adams wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rob Adams wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $str = INSERT INTO staff (name,job,subject) 1 2 3 VALUES('$name','$job','$date','$subject',); 1 2 - 3 $date=date('Y-m-d H:i:s'); Any idea for me to fix this kind of problem ? I guess I wasn't explicit enough. I would start by chaning your insert statement to: insert into staff (name, job, date_field, subject) values ... (etc.) -- Rob Hello Rob, Just enable global function of php.ini, then it is ok now ! Thank for your reply ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Convert string and char in unicode format
Dear All, How to control php / freetds to convert data ( query / insert ) to unicode format ? Thank for you rhelp ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connection with MS-SQL
Dear All, Except for --with-mssql options ( configure command ) , which any other options ( configure commands ) must be compiled with php also, then the php will be good for working with MS-SQL ? BTW, --with-mssql is better than --with-sybase ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't to insert data ( via variable ) into MS-SQL
Dear All, There is a sample that can't to insert any data ( via variable ) in MS-SQL : insert.php: form action=save.php method=post table border=0 align=center input type=text size=20 name=name maxlength=8 value=? echo $GBName ?br Jobinput type=text size=16 name=jobbr Subjectinput type=text size=30 name=subjectbr input type=submit value=SubMit /center /table /form save.php: a href=view.phpSearch data/a /body /html ? $date=date('Y-m-d H:i:s'); $link = mssql_pconnect(sql,sa,1234); mssql_select_db(phpbook,$link); $str = INSERT INTO staff (name,job,subject) VALUES('$name','$job','$date','$subject',); mssql_query($str,$link); ? After insert data by using save.php, I found no any data from the Database system ( MS-SQL ), but I sure the Database System is no problem ! So, how can I fix this kind of problem ( Sorry, I'm not familar with php ) ? Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can't to insert data ( via variable ) into MS-SQL
Rob Adams wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $str = INSERT INTO staff (name,job,subject) 1 2 3 VALUES('$name','$job','$date','$subject',); 1 2 - 3 -- Rob $date=date('Y-m-d H:i:s'); Any idea for me to fix this kind of problem ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem of unicode ( non-english character )
Dear All, How can we control php convert the unicode from MS-SQL 2000 ? Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installation of 4.3.4
If I want to install php with the following function on Fedora Core 1 System : DOM XML, FTP, Gettext, IMAP, LDAP, MCAL, Mcrypt, MySQL, PostgreSQL, XML, GD, MM and MS-SQL 2000 Then which special configure commands ( parameters ) must be compiled with php ? Many thank for your help ! Edward. Jason Wong wrote: On Friday 12 March 2004 00:07, [EMAIL PROTECTED] wrote: Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? ./configure would do fine. If you want bells and whistles then read the output of ./configure --help and consult the manual. -- 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 -- /* Win98 is called Win98 because you need to update at least 98% of your hardware before it can be installed */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installation of 4.3.4
Just the following configure commands ( parameters ) is good for work ? ./configure --with-apxs2 --with-pear=/usr/share/pear --with-openssl --with-dom --with-dom-xslt --with-dom-exslt --with-gd --with-gettext --with-iconv --with-ldap --with-mcrypt --with-mhash --with-mysql --with-mm --with-xmlrpc --with-imap --with-imap-ssl --with-xml --with-mssql=/usr/local/freetds --enable-ftp Thank for your help ! Edward. Jason Wong wrote: On Sunday 14 March 2004 19:48, [EMAIL PROTECTED] wrote: If you're going to be asking questions, do take the time to read any answers. If I want to install php with the following function on Fedora Core 1 System DOM XML, FTP, Gettext, IMAP, LDAP, MCAL, Mcrypt, MySQL, PostgreSQL, XML, GD, MM and MS-SQL 2000 Then which special configure commands ( parameters ) must be compiled with php ? Again: ./configure --help and consult the manual. -- 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 -- /* OK, so you're a Ph.D. Just don't touch anything. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connect to MS-SQL 2000
Dear you, Can we control php direct connect to MS-SQL 2000 ( Another computer machine ) ? Thank for your help !! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: [PHP] Installation of 4.3.4]
---BeginMessage--- Dear Jason, If I want to install php for the following function on Fedora Core 1 System : DOM XML, FTP, Gettext, IMAP, LDAP, MCAL, Mcrypt, MySQL, PostgreSQL, XML, GD, MM and MS-SQL 2000 Then which special configure commands ( parameters ) must be compiled with php ? Many thank for your help ! Edward. Jason Wong wrote: On Friday 12 March 2004 00:07, [EMAIL PROTECTED] wrote: Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? ./configure would do fine. If you want bells and whistles then read the output of ./configure --help and consult the manual. -- 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 -- /* Win98 is called Win98 because you need to update at least 98% of your hardware before it can be installed */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installation of 4.3.4
Dear All, Mine is Fedora Core 1 System ( without any update )... So, which configure commands ( parameters ) must be compiled with this system ? Very thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Support for remote DataBase Systems
Dear All, Which ODBC or related driver with php supports the following Database Systems ( remote ) ? 1, Oracle 2, Sybase 3, MS-SQL 2000 4, MySQL Thank for your tell ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Question of Charset
Dear Ligaya Turmelle, For example After enter chinese words ( example ) though program ( Web ) to MS-SQL, then search the data from the DB... But the result of the records is not chinese words ( char ) ! Thank for your help ! Edward. Ligaya Turmelle wrote: I don't understand what you are asking. Please explain. Respectfully, Ligaya Turmelle PHPCommunity: Open Source, Open Community For more information or to join the movement www.phpcommunity.org [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear All, How to control php ( programms on Linux System ) convert the charset of unicode from MS-SQL 2000 ? Very thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question of Charset
Dear All, How to control php ( programms on Linux System ) convert the charset of unicode from MS-SQL 2000 ? Very thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] About the character set of the records of the value of the table
Dear All, How can we enable support multi character set of the records of the value of the table of the database with other language ( eg : chinese - big-5 code ) ? Thank for your help ! Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connection with php and mssql by using jdbc driver ( freetds )
Dear All, If you are connecting php ( RPM package ) and mssql by jdbc driver freetds... please reply to me, I may need your help ! Many Many thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php package
Dear All, Is there ( www.php.net ) RPM / SRPMS packages can be downloaded ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] About php and mysql
Hello, I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? Thank a lots. Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Working with MS-SQL
Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... Ed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Working with MS-SQL
I know there is a package for Linux / Unix : php-mysql But, I want to know is there any tools similar with php-mssql for php connect with MS-SQL ? Any other can help ? Thank for your help ! Ed. Jay Blanchard wrote: [snip] How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... [/snip] I usually connect to my servers using cables, but YMMV. Might I suggest that you read some manuals and books? The questions that you are asking are way too general in nature and are sure to get you flamed (I am resisting it very much myself). Please visit the php web site, the mysql web site the m$ sql server web site and your local bookstore on online resource. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] About php and mysql
Does older than php 4.2.2 support with this function ? Matt Matijevich wrote: snip I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? /snip http://www.php.net/manual/en/function.mysql-connect.php http://www.php.net/manual/en/function.mysql-pconnect.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Working with MS-SQL
The tool named freetds ? Adam Voigt wrote: http://www.freetds.org Enjoy. On Tue, 2004-02-24 at 08:53, [EMAIL PROTECTED] wrote: Hello, How can we connect to MS-SQL Server ? What tools ( where can we download ) must be installed ? Thank a lots. PS : the php programs under Linux / Unix... Ed. -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Quota function
Dear all, How to write a Quota function with php code ? Require : different Server machine, userid and password also Mine is Linux Redhat system... Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Quota function
Jason Wong wrote: On Saturday 30 November 2002 21:47, [EMAIL PROTECTED] wrote: Dear all, How to write a Quota function with php code ? Require : different Server machine, userid and password also Mine is Linux Redhat system... if ($current $quota) { echo Quota exceeded; } IOW please elaborate on what you're trying to do. There is a php code from Internet, it is enable Quota function with wu-imap server, but I can't run it into my server ( Linux Redhat system ) like http://www.ita.org.mo/~edward/imp/screenshot.gif... if (!function_exists('imp_show_quota')) { function imp_show_quota ($imp) { $imap_admin = $imp['user']; $passwd_array = posix_getpwnam($imap_admin); $homedir = split(/, $passwd_array['dir']); $realname = split(,, $passwd_array['gecos']); $quota_html = 'table width=100% border=0 cellpadding=0 cellspacing=0trtd class=itemtable border=0 cellspacing=0 cellpadding=0 width=100%tr'; $quota_html .= 'td align=left class=headerLogin: ' . $realname[0] . ( . $imap_admin . ) . '/td'; $junk = exec(sudo quota -u $imap_admin | grep $homedir[1], $quota_data,$return_code); if ($return_code == 0 count($quota_data) == 1) { $splitted = split([[:blank:]]+, trim($quota_data[0])); $taken = $splitted[1] / 1000 ; $total = $splitted[2] / 1000 ; $percent = $taken * 100 / $total ; if ($percent = 90) { $class = 'quotaalert'; } elseif ($percent = 80) { $class = 'quotawarn'; } else { $class = 'header'; } $quota_html .= 'td align=right class=' . $class . ''; $quota_html .= sprintf(Quota on /%s: %.1fMB/%.1fMB (%.1f%%), $homedir[1], $taken, $total, $percent); } else { $quota_html .= 'td align=right class=header'; $quota_html .= Quota not available; } $quota_html .= '/td/tr/table/td/tr/table'; return $quota_html; } } Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Enable Quota function with php
Hello, About the System of my company : Server A : imap server ( come from redhat 6.2 ) Server B : Web server ( redhat system 7.2 ) + IMP ( http://horde.org/imp ) How can I enable the quota function with imap server by this php config ? if (!function_exists('imp_show_quota')) { function imp_show_quota ($imp) { $imap_admin = $imp['user']; $passwd_array = posix_getpwnam($imap_admin); $homedir = split(/, $passwd_array['dir']); $realname = split(,, $passwd_array['gecos']); $quota_html = 'table width=100% border=0 cellpadding=0 cellspacing=0trtd class=itemtable border=0 cellspacing=0 cellpadding=0 width=100%tr'; $quota_html .= 'td align=left class=headerLogin: ' . $realname[0] . ( . $imap_admin . ) . '/td'; $junk = exec(sudo /usr/bin/quota -u $imap_admin | grep /dev/md1, $quota_data,$return_code); if ($return_code == 0 count($quota_data) == 1) { $splitted = split([[:blank:]]+, trim($quota_data[0])); $taken = $splitted[1] / 1000 ; $total = $splitted[2] / 1000 ; $percent = $taken * 100 / $total ; if ($percent = 90) { $color = '#FF'; } elseif ($percent = 80) { $color = '#FCE30D'; } else { $color = '#339933'; } $quota_html .= 'td align=center class=header'; $quota_html .= sprintf(font size=-2Quota on /%s: %.1fMB/%.1fMB (%.1f%%)/font, $homedir[1], $taken, $total, $percent); } else { $quota_html .= 'td align=center class=header'; $quota_html .= Quota not available; } $quota_html .= '/tdtd width=30 class=header align=rightfont size=-30%/font/tdtd width=200 class=header'; $quota_html .= 'table width=100%trtd bgcolor=#ffdiv style=height:6px; width:'. sprintf(%.1f%%, $percent). '; font-size:3px; background-color:'.$color.''; $quota_html .= '/div/td/tr/table/tdtd width=30 class=header align=leftfont size=-3100%/font/td/tr/table/td/tr/table'; return $quota_html; } } And I want the result similar with http://www.ita.org.mo/~edward/imp/screenshot.gif Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Fwd: imap Server support Quota]
---BeginMessage--- Hello, Does your imap server come from redhat ? If so, have you ever try IMP ( http://www.horde.org/imp ) and enable Quota function with imap server by using php code ? Would you mind to send me your solution ? Thank for your help ! Edward. ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Fwd: Problem about pear]
---BeginMessage--- Hello, My System is Redhat Linux 7.2... I can't to find where is the path of pear under the system... So, can you help me ? Thank a lots. Edward. ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Fwd: Problem about pear]
Hello, I just check my system... I found there is no /usr/lib/php/PEAR... So, what can I do about the problem ? BTW, are you using imp ( Webmail ) under Redhat 7.2 ? Thank a lots. Edward. Jonathan Sharp wrote: try: 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' mine is /usr/lib/php/PEAR (Gentoo) -js [EMAIL PROTECTED] wrote: Subject: Problem about pear From: [EMAIL PROTECTED] Date: Thu, 31 Oct 2002 02:02:45 +0800 To: [EMAIL PROTECTED] Hello, My System is Redhat Linux 7.2... I can't to find where is the path of pear under the system... So, can you help me ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] About IMP 3.1 under Redhat 7.2
Hello, Sorry, I'm off topic ( due to I can't send mail to [EMAIL PROTECTED] )... If you are using IMP 3.1 under Redhat 7.2, can you help me about this problem ? Horde Database : If I want to change the the name of database, user of database and password... Which files I need to modify ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Fwd: Problem about pear]
Hello, After I do'updatedb' then 'locate PEAR', I found there is /usr/share/pear/PEAR... BUT I found /etc/php.ini : ; ; Paths and Directories ; ; ; UNIX: /path1:/path2 include_path = .:/php/includes:/usr/share/php ; I want to know why there is the mistake about the php.ini ? So, can you help me more ? Thank a lots. Edward. Jonathan Sharp wrote: try: 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR' mine is /usr/lib/php/PEAR (Gentoo) -js [EMAIL PROTECTED] wrote: Subject: Problem about pear From: [EMAIL PROTECTED] Date: Thu, 31 Oct 2002 02:02:45 +0800 To: [EMAIL PROTECTED] Hello, My System is Redhat Linux 7.2... I can't to find where is the path of pear under the system... So, can you help me ? Thank a lots. Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem about rpm package of php
Adam Williams wrote: If I haven't responded too late, Install the SRPM package with rpm -ivh file.srpm or file.src.rpm and then do to the SPECS directory. In RedHat's case it is /usr/src/redhat/SPECS and look for something like mod_php.spec or php.spec and edit it. That file has a paramaters it passes to configure script, so add to it a --with-imap and then save the file, and then run rpm -bb mod_php.spec (or whatever the name of it is) and then it will build the binary rpm in /usr/src/redhat/RPMS/i386 and you simply rpm -Uvh it. Adam What different between rpm -bb file.spec and rpm -ba file.spec ? Because some of users told me to run -ba file.spec... Thank a lots. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem about rpm package of php
So, which command that you recommend to run ? Adam Williams wrote: If memory serves me right, -ba builds the binary and source rpms, and -bb only builds the binary rpm. Adam On Mon, 19 Aug 2002 [EMAIL PROTECTED] wrote: Adam Williams wrote: If I haven't responded too late, Install the SRPM package with rpm -ivh file.srpm or file.src.rpm and then do to the SPECS directory. In RedHat's case it is /usr/src/redhat/SPECS and look for something like mod_php.spec or php.spec and edit it. That file has a paramaters it passes to configure script, so add to it a --with-imap and then save the file, and then run rpm -bb mod_php.spec (or whatever the name of it is) and then it will build the binary rpm in /usr/src/redhat/RPMS/i386 and you simply rpm -Uvh it. Adam What different between rpm -bb file.spec and rpm -ba file.spec ? Because some of users told me to run -ba file.spec... Thank a lots. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem about rpm package of php
Dear All, How can I enable --with-imap with rpm / SPRMS packages of php ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem about rpm package of php
If I want to enable the options ( eg : --enable-ftp, --with-gd, --with-gettext, --with-memory-limit etc ), so how can I do with rpm / SPRMS package of php ? Thank a lots ! Jason Wong wrote: On Saturday 17 August 2002 16:38, [EMAIL PROTECTED] wrote: Dear All, How can I enable --with-imap with rpm / SPRMS packages of php ? If you're using Redhat then install the php-imap-*.rpm package. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* If the future isn't what it used to be, does that mean that the past is subject to change in times to come? */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem about rpm package of php
Jason Wong wrote: On Saturday 17 August 2002 17:42, [EMAIL PROTECTED] wrote: If I want to enable the options ( eg : --enable-ftp, --with-gd, --with-gettext, --with-memory-limit etc ), so how can I do with rpm / SPRMS package of php ? If they're not enabled in the standard RPMs then: 1) Get the SRPMs and edit the .spec file accordingly or 2) Forget the RPMs and install entirely from the tarballs If you choose (1) then ask on the relevant mailing list of the linux distribution that you are using. Does your means if I'm using Redhat Linux 7.2 system, then I can ask the question to [EMAIL PROTECTED] ( mail list ) ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php