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
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
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/
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
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);
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 =
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
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
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
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
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
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
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
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:
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
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
: 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
-
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
);
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
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
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
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
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
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
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
/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
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
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
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
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
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
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
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
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.
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
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);
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).
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
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
---
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;
?
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
I am trying to find the best way to combine 2 columns in a MySQL Db call into
one by using an array. Ive 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
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]
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
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
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.
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]
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]
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
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
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
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
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
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.
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
70 matches
Mail list logo