[PHP] File Upload MultiPart

2013-02-24 Thread user
Hello, I have been looking how to upload big files more than 1GB , with php but it doesn't work well. I guess php POST multipart method is to memory consuming. Is there a way , like in the apache.commons to catch the stream and handle it ? I've looked at the rfc1867.c file implementation and

[PHP] XML with PHP

2010-08-26 Thread user
I need clarifications Architecturally is it necessary the DisplayBill should be a seperate php file or can it exist as a function in the same file as the code below? Should the Invoices be displayed as a web form for me to capture the user click to retrieve the appropriate file and invoice so

[PHP] Re: Memory investigation

2010-03-03 Thread user
ON Linux I have kcacheGrind setup with Xdebug and I find it is a nice little thing to have. It won't tell you the memory consumed but it will find cycles and display object maps. if you have Kcachegrind it is likely you have valgrind installed. http://www2.mandriva.com/ http://valgrind.org/

[PHP] Variable Scope with require_once

2009-04-27 Thread user
that is obtained when attempting to login with a nonexistent user' This works on the production environment (the one with PHP version 4.4.9). register_globals is Off in both environments. What is going on, here? Regards, A. Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] cuRL script won't submit

2008-04-02 Thread Test User
why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks #!/usr/bin/php ?php $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_COOKIEFILE, /temp/cookie.txt);

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
I added more info below and corrected the spelling of a word - very sorry to add more to your already full mailbox why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks #!/usr/bin/php ?php $ch =

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
many thanks.. I have been working on this for weeks! now I have to figure out how to extract that dynamic URL from the form before I post.. - Original Message From: Daniel Brown [EMAIL PROTECTED] To: Test User [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, April 2

[PHP] {Virus!} [EMAIL PROTECTED]

2005-07-04 Thread farcry-user
Atención: Este mensaje contenía uno o más anexos que han sido eliminados Atención: (letter.zip). Atención: Por favor, lea el(los) anexo(s) VirusWarning.txt para más información. Your message was not delivered due to the following reason: Your message could not be delivered because the

[PHP] gallery (4 in a row) // carefull newbie

2004-12-28 Thread user
Hi all I am making a gallery for my Homepage. Now, I want to make little tumbnails of my work and make a table out of them. So, to not put them all in a row, what whould make the site unreadable, i have to put them in a little table, an i think 4 in each row would be ok. I like to read out the

[PHP] Re: PHP 5 MySql 4.1 issue - can't connect to mysql.sock

2004-12-19 Thread user
Barley wrote: If I run the script from a shell prompt as root, it outputs Yes. If I run as any other user, it outputs No. It also gives this error: Warning: mysqli_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) Check permissions on /var/lib/mysql

[PHP] LDAP and referrals

2004-12-12 Thread List User
Hello! Currently I'm playing with LDAP referrals in a PHP application and I've reached a point, where it's not clear if there's some kind of misunderstanding on my side, or if there's a problem either in the PHP functions or the OpenLDAP server here... The attached mini script tries to access

Re: [PHP] LDAP and referrals

2004-12-12 Thread List User
Whoops. For some reason I've attached the wrong file. Here's the correct one. Cajus #!/usr/bin/php4 -q ?php # T E S T - V A R I A B L E S ## $server= localhost; $filter= (uid=*); $base = dc=example,dc=net; F U N C T I O N S

Re: [PHP] php broken pipe

2004-11-17 Thread user
I did and the result is the same. Could this be a bug in the pcntl_fork or pcntl_wait ? The error occours after i the child died. The connection to the database is closed. Thanks Rui Francisco Greg Donald wrote: On Tue, 16 Nov 2004 09:59:57 +, Rui Francisco [EMAIL PROTECTED] wrote: I'm using

[PHP] Php shell_exec_ timeout

2004-11-11 Thread user
HI, Does anybody know if its possible to execute a command through exec, shell exec, system and if the program doesn't terminate in N seconds returns control to PHP ? Thanks in advance Rui Francisco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] smpt server requiring authentication

2004-07-22 Thread PHP User
I had the same problem and found a script - phpmailer-1.72 - that works great. Very little configuration to setup, and I have it working on a Linux and Windows platform. Beauford -Original Message- From: Chris Hunt [mailto:[EMAIL PROTECTED] Sent: July 22, 2004 3:48 PM To: [EMAIL

[PHP] Line breaks again....

2004-07-21 Thread PHP User
Hi, I have managed to get the line breaks to show up on my site no problem, but I still get one long line when it is sent to my email. I have looked and looked and have read all the stuff I could find on \r\n, so I'm not sure where to go from here since it's not working... Suggestions are

RE: [PHP] Line breaks again....

2004-07-21 Thread PHP User
: July 21, 2004 6:36 PM To: PHP User Cc: PHP Subject: Re: [PHP] Line breaks again PHP User wrote: I have managed to get the line breaks to show up on my site no problem, but I still get one long line when it is sent to my email. I have looked and looked and have read all the stuff I could find

RE: [PHP] Need help with line breaks in a textarea form

2004-07-16 Thread PHP User
- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: July 16, 2004 2:00 AM To: PHP User Cc: PHP Subject: Re: [PHP] Need help with line breaks in a textarea form PHP User wrote: Hi, I have been trying to format the textarea output and have come across some code that almost does what I need

RE: [PHP] Need help with line breaks in a textarea form

2004-07-16 Thread PHP User
); Thanks for your input CR -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: July 16, 2004 2:00 AM To: PHP User Cc: PHP Subject: Re: [PHP] Need help with line breaks in a textarea form PHP User wrote: Hi, I have been trying to format the textarea output

RE: [PHP] Need help with line breaks in a textarea form

2004-07-16 Thread PHP User
in a web based group you were having with another person, but none of your suggestions there worked. Suggestions Thanks again... -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: July 16, 2004 12:14 PM To: PHP User Cc: PHP Subject: Re: [PHP] Need help with line

[PHP] Email Forms

2004-07-15 Thread PHP User
Hi, I am trying unsuccessfully to set up an email form and as far as I know my code is fine, but it won't send. I suspect that it's because my server requires authentication. Running my script on my Windows machine I get the following. Warning: mail() [function.mail

[PHP] Need help with line breaks in a textarea form

2004-07-15 Thread PHP User
Hi, I have been trying to format the textarea output and have come across some code that almost does what I need, but I still have one small problem. Look at the text below that was input into my textarea: Now is the time for all young men to come to the aid of the party. Now is the time for

[PHP] Re: Extension : compiling several .C files ?

2004-04-21 Thread user
Any help will be greatly appreciated. Perheaps someone has a link to a newsgroup or a forum where I can find an answer thx [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I've learn how to compile a simple (with only one .C file) extension under Windows and Linux. And multi .C file

[PHP] Extension : compiling several .C files ?

2004-04-20 Thread user
Hi, I've learn how to compile a simple (with only one .C file) extension under Windows and Linux. And multi .C file compilation with Windows. But how can I compile a PHP extension composed by several .C files ? I'm not an expert in GCC compilation. So perheaps I've missed something. For

[PHP] Servlet/PHP integration

2004-03-12 Thread dba user
I am sorry, if this message is a duplicate post. (I unwittingly press some key and the page got refreshed before completing my post). I am trying the Servlet/Php integration. I installed php with java support. But, I do not see php_java.jar in any of the directories. I have

RE: [PHP] Servlet/PHP integration

2004-03-12 Thread dba user
/ref.java.php Warren Vail -Original Message- From: dba user [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Servlet/PHP integration I am sorry, if this message is a duplicate post. (I unwittingly press some key and the page got

[PHP] Embedded MySQL server (libmysqld)?

2004-02-23 Thread user
Howdy -- Would someone point or provide me with an example of PHP + libMysqld (Embedded MySQL server)? My problem is my churchs web site doesn't provide a MySQL database as a default package (add $15.95/mo)for a MySQL Db. TIA, David -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread user
Adam Voigt wrote: Check these guys out: http://spenix.com/WebHostingPlans.aspx Very cheap, very reliable, great features, and support is second to none I've ever experienced, and before you ask, no I'm not now nor have I ever been an employee or shareholder. =) Just a satisfied customer. Admin

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread user
Adam Voigt wrote: Alright, well with any txt based system, your probably going to run into problems with multi-users (multiple browsers) updating the DB. Reguardless, if you must use txtbased, I recommend SQL-Lite, it supports SQL statements, and is very small and very fast. http://www.sqlite.com

Re: [PHP] Safe Mode

2004-02-22 Thread user
Can safe mode be turned off in the .htaccess file? I don't know the gallery script but setting safe_mode_include_dir should help. Ask the admin to set it to your directory for your virtual host. Another option would be to use ftp functions to upload the images to your directory, but you

[PHP] [SQLite] safe_mode_gid or safe_mode_exec_dir

2004-02-22 Thread user
I want to be able to use SQLlite on my hosted (virtual) site. SQlite will be placed in my /home/www/bin. And need to be exicutable by Apache user or group? Would either safe_mode_gid or safe_mode_exec_dir accomplish this? TIA, David -- PHP General Mailing List (http://www.php.net

Re: [PHP] Safe Mode

2004-02-22 Thread user
According the safe-mode page http://us4.php.net/features.safe-mode in http.conf : Directory /docroot php_admin_value open_basedir /docroot # In your case safe_mode_include_dir /Directory Can php_admin_value be inlcuding in the *.php pages and/or .htaccess. manual ini_set() It would seem

[PHP] Help with SQLite and ADOdb

2004-02-21 Thread user
I'm working on a website whose hosting package doesn't include any db (except maybe gdbm). I've install sqlite in the home directory. The question is what adjustment do I have to make to my PHP script and ADOdb in order for it to exicute SQLite in from the account home direcory? TIA, Davd -- PHP

Re: [PHP] Safe Mode

2004-02-21 Thread user
Lucas Gonze wrote: On Saturday, Feb 21, 2004, at 09:18 America/New_York, [EMAIL PROTECTED] wrote: Is it possible to set Apache in such a way that everyting is run under safe-mode, except for a directory and everything underneath in a virtual domain? Very likely yes, if your admin permits it.

[PHP] Error with Absolute URLs

2003-12-23 Thread user
Hi, I keep getting errors on my websites, that contain absolute URLs, e.g. http://www.url.com/blah.html. With most, being in the folder of my website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but there's a script I use to display the network statistics of an IRC network, which is

[PHP] ftok() not returning a valid SysV shared memory index?

2003-09-07 Thread user
I'm running 4.3.3, and have made sure to compile it with --enable-sysvshm. The code works on PHP5, so I think it might be a problem with PHP4. #! /usr/bin/php -q ?php $key= ftok(/etc/passwd, 'c'); $shmid = shm_attach($key); $shm_var = Shared Memory Data; shm_put_var($key, 25, $shm_var);

[PHP] php 4.3.2 problem

2003-07-07 Thread user
Hi We're trying to upgrade to php-4.3.2. when we install libphp.so and restart apache, it fails to start with the error Invalid command 'php_admin_value', perhaps mis-spelled I don't understand what's wrong. The syntax of our httpd.conf is working just fine with our current version (4.2.3).

[PHP] problem with 4.3.2

2003-07-07 Thread user
After upgrading from 4.2.3 to 4.3.2 apache fail to load with an error: Invalid command 'php_admin_value', perhaps mis-spelled... php_admin_flag also fails. I tried with and without php.ini. php was compile with --with-apxs --with-mysql --with-gd --with-xml --with-iconv --with-gettext

[PHP] ignored php.ini?

2003-06-27 Thread user
Hello, I have php 4.3.2 running as isapi module on windows 2000. I have a php.ini in d:\winnt but when I edit it the output from ? phpinfo(); ? is as before. Any hints? Many thanks in advance, bye _ -- PHP General

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
--- Is Windows installed on the D drive? Because you can't just make a WINNT folder on another drive, it must be in the actual folder the system is installed in. yes, Windows is on d: I am trying to set safe_mode = On d:\winnt\php.ini edited and saved; ?

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
Restart? IIS restared from its mmc but phpinfo() tell me that safe_mode is Off :-( thanks, bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
Restart? IIS restared from its mmc but phpinfo() tell me that safe_mode is Off I performed a strong restart and now the new settings in php.ini are in the output of phpinfo(). Bye. _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php function system() on win2k srv /iis

2003-06-26 Thread user
the SYSTEM account can read everywhere in my win partition. Is it possible to have the command executed by the user IUSR_machinename instead of SYSTEM ? In this case I can set up proper right in order to prevent access to certain sensitive folders TIA, bye

[PHP] how to call php from C?

2003-06-23 Thread user
slowdown. Can I call session_start() and so on from my C program? Any example code? Many thanks for replies, bye user(at)lngs(dot)infn(dot)it -- PHP General Mailing List

[PHP] Re: Emptying the browser cache

2003-06-16 Thread user
There is no way to do this in any programming language since it is not part of the http spec. There may be som client side vb hack that someone knows that works on IE for Windows but I doubt it. It is not very secure to allow web sites to control your browser's cache. Try looking into expire

[PHP] How can I get info from an XML document

2003-03-21 Thread user
Hi, I can't get the clue. My php page receives an XML document from which I need to get the contents and attributes into php variables. I obvious have missed something important. Could someone help me with the following script (while watching the Bagdad bombings on CNN): ? $xml=?xml

[PHP] Smarty and FAI

2003-02-20 Thread user
Hi, My provider is free.Fr chmod is disabled Is it possible to use Smarty on my web pages ? thanks for your answer Guillaume -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread user
thank you for the reply Chmod was just a try from my side to get it work. I tried CHMOD 0777, and everything else, too. Didn't work. Could it be that the server doesn't allow writings at all? As you see, I am a newbie in these things. Remember to write to a file PHP (the user nobody

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread user
Awlad Hussain wrote: try CHMOD 777 I tried that. It didn't help. I also tried in two other servers with no result. I'm definetly doing something wrong :-( More ideas? Paul Dunkel -- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread user
Marek Kilimajer wrote: Also make sure server has read permission to directories. I'm pretty sure that is the problem. How should I check that? I've now tried my PHP in two other servers with no result. I'm definetly doing something wrong :-( Paul Dunkel -- [EMAIL PROTECTED] -- PHP

[PHP] Q: File not rewritable - why? Help needed.

2003-02-11 Thread user
Newbie question: I try to modify a txt-file but get not writable error. (just like in http://www.php.net/manual/en/function.fwrite.php ) I've tried to change the chmode but now I need some help. All info welcome! Thanks in advance! Paul Dunkel -- [EMAIL PROTECTED] -- PHP General Mailing

[PHP] how uploaded files are managed and where they are stored on server

2002-12-11 Thread user
Our /usr/local/etc/php.ini has 'upload_tmp_dir = /data/www/php_uploads/'. But uploaded files are actually stored in /var/tmp. Also seem they disappear from the server after being uploaded very quickly and we don't have a crontab job running to clean them up from time to time automatically. I

Re: [PHP] Re: Yet another question

2002-10-30 Thread user
Besides that there is no reason to include the file after the use of the variable. When i started writing php i saw in every other program that the include was the first line in every function that needs it. Like : function test() { include(file); . Peter Houchin wrote: try it and

[PHP] Failing to Make MySQL Query on Submit

2002-10-28 Thread user
I'm having a problem getting my PHP script to talk to my database. I'm attempting to use UPDATE with a PHP form to change records already in the database. I'm able to pull the record with no problem and the script is sending the confirmation e-mail without a problem on submit but for some

[PHP] IMAP and make

2002-06-18 Thread php user
At this point in the make I get this error related to --with-imap and --with-ssl-imap ...I believe Making all in . make[1]: Entering directory `/usr/lib/php-4.2.1' /bin/sh /usr/lib/php-4.2.1/libtool --silent --mode=link gcc -I. -I/usr/lib/php-4.2.1/ -I/usr/lib/php-4.2.1/main

[PHP] IMAP and I make... and what do I get recursion :)

2002-06-18 Thread php user
At this point in the make I get this error related to --with-imap and --with-ssl-imap ...I believe Making all in . make[1]: Entering directory `/usr/lib/php-4.2.1' /bin/sh /usr/lib/php-4.2.1/libtool --silent --mode=link gcc -I. -I/usr/lib/php-4.2.1/ -I/usr/lib/php-4.2.1/main

[PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread PHP User
I am trying to find the best way to combine 2 columns in a MySQL Db call into one by using an array. I’ve tried array_push, implode, explode, array_merge and extract all with no luck. I feel I am close but have read all I can and still am hitting a dead end. I need to select a Title and

[PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Web user
What's the difference between mail() in PHP and sendmail? Thanks! Mike -- 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] Help, need the scripts of processing the to-be-confirmed email.

2001-10-25 Thread Web user
I need to some help about example scripts on: Question 1: How to process the confirmation email by clicking the url given in the email and by replying the email. Question 2: I know if using mail(), the From field of the mail sent out is always the web host server's mail sendout server, not from

[PHP] Session and header() errrors

2001-10-04 Thread Web user
on line 9 - The scripts of 1.php: (1.php and 2.php are under the same base directory) ? require(html-head.inc); session_start(); $name=user; session_register(name); echo session_id: .session_id().br; sleep(10); header(Location: 2.php); require(html-foot.inc); ? - The scripts of html

[PHP] Re: newbie: extracting lines from a text file w/ php

2001-10-01 Thread user
Hi. You should go on the forum php.db. Sc wrote: Hi; I am new to php and i need to extract specific lines of data from a plain text file and insert it into a sql db Can anyone give me some details on howto do this? or an example to read the specific line that i need? Thanks.

[PHP] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Web user
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]

[PHP] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Web user
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]

[PHP] mysql_fetch_array() doesn't work

2001-09-26 Thread Web user
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 When PHP is running at the line: $arr=mysql_fetch_array($res); The IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache

[PHP] mysql_fetch_array() doesn't work

2001-09-25 Thread Web user
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 ? .. .. $res=mysql_query($query); $num=mysql_num_rows($res); for($i=0; $i$num; $i++){ $arr=mysql_fetch_array($res); ... } ... When PHP is running at the line: $arr=mysql_fetch_array($res); The IE always show info as

[PHP] HTTP 500 server error

2001-08-29 Thread Web user
It always gets HTTP 500 server error, when I try to run the php scripts on Windows98 SE + PWS4.0. THE PHP installed is Ver 4.06 -win32, as a server module. However I get a screen full of html codes when I run c:\php\php.exe -i in MS-DOS command line So what's problem with the

[PHP] max_execution_time sleep()

2001-04-05 Thread PHP User
What is the deal with sleep(), does it break the 'max_execution_time' that is set in php.ini? This is good, this is what I want, but I just want to double check that this is really happening. I have an emial script that seems to run for about 15 minutes because I sleep() it between each

[PHP] Mail() Speed?

2001-04-05 Thread PHP User
Would opening a direct connection to sendmail be a bad thing to do in terms of speed and server time? Right now I loop through an array of email addresses, and just send them each out with mail() would something like this be better or worse in terms of the amount of time and resources it uses

[PHP] Executing a PHP file to write an html file

2001-03-31 Thread PHP User
Here is my problem. I have a file, static.php static.php writes to index.html by way of... $filename = "/web/h16/docs/index.html"; $fp = fopen("$filename","w"); fwrite($fp, "table width=\"230\"\n"); etc.. If I hit static.php from the command line, index.html gets written just fine.

[PHP] PHP mySQL

2001-02-07 Thread PHP user
HI! I am Japanese in Tokyo. How about you? I still have a question. initial condition 1) three are many *html in my SQL ex:xxx.html,and yyy.html 2)I have domain ex: abc (ex: http://www.abc.com) 3)database name : aaa 4)table name :bbb I want to try next step. when I type in URL from brouze