Hi,
I don't have any documentation you can use I think, but I have some
comments on what you say...
By part 1 you say:
how do I handle
the workflow when the data in related tables doesn't yet exist? Do I
force a user to enter data into 5 different forms first? Do I have a
place to enter the new
What is wrong with this code? Why $input_str is empty.
if ($handle = opendir('/home/test2/')) {
echo Directory handle: $handle\n;
echo Files:\n;
while (false !== ($file = readdir($handle))) {
if($file != . $file != ..){
$handle1 = fopen($file, a+);
On Sunday 21 November 2004 20:25, Jerry Swanson wrote:
Please do not top post.
What is wrong with this code? Why $input_str is empty.
if ($handle = opendir('/home/test2/')) {
echo Directory handle: $handle\n;
echo Files:\n;
while (false !== ($file = readdir($handle))) {
Hello all,
I am a complete newbie to php so apologies for what I'm sure is a
simple/dumb question. I want to use php to include another html doc in
an existing set of documents. In other words 123.html will use php to
call on abc.html so I can make changes to abc.html and have it update
on all
Todd Alexander wrote:
Hello all,
I am a complete newbie to php so apologies for what I'm sure is a
simple/dumb question. I want to use php to include another html doc in
an existing set of documents. In other words 123.html will use php to
call on abc.html so I can make changes to abc.html and
Hi All,
I have a password file , which has all the passwords words encrypted with the
Crypt Function
I know that Crypt uses one-way algorithm to generate the encryptions and PHP
has no Decrypt function , ( but can it be developed to have one ?)
But I am eager to know whether it is really
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:
Mulley, Nikhil wrote:
Hi All,
I have a password file , which has all the passwords words encrypted with the
Crypt Function
I know that Crypt uses one-way algorithm to generate the encryptions and PHP
has no Decrypt function , ( but can it be developed to have one ?)
But I am eager to know
What would be the use of a hash if it was easy to recover ?
You can use it by storing the hash of a password, en when the user
supplies you his password in a script, you hash it again... and compare
those two hashes...
Trying to recover the value from which the hash is the result is called
Hi Todd,
Maybe I can show you a technique which is real helpful to me...
You can make a HTML file which you use as template, and add some
standard strings (character chains) to it... Like [TIME], or
[ACTIVE_USER]... When you open the HTML document in your browser, you
can see where your time
Mulley, Nikhil wrote:
Hi Rens,
Can you please be more specific or can you show some practical
examples or procedural way ?
Thanks,
Nikhil
--Smile Always , it costs nothing
-Original Message-
*From:* Rens Admiraal [mailto:[EMAIL PROTECTED]
*Sent:* Sunday, November 21,
Rens Admiraal wrote:
Hi Todd,
Maybe I can show you a technique which is real helpful to me...
You can make a HTML file which you use as template, and add some
standard strings (character chains) to it... Like [TIME], or
[ACTIVE_USER]... When you open the HTML document in your browser, you
can
In message [EMAIL PROTECTED], Raditha Dissanayake
[EMAIL PROTECTED] writes
Todd Alexander wrote:
Hello all,
I am a complete newbie to php so apologies for what I'm sure is a
simple/dumb question. I want to use php to include another html doc in
an existing set of documents. In other words
thnx ;-)
this really is shorter, and easier to use... !!!
M. Sokolewicz wrote:
Rens Admiraal wrote:
Hi Todd,
Maybe I can show you a technique which is real helpful to me...
You can make a HTML file which you use as template, and add some
standard strings (character chains) to it... Like [TIME],
A seemingly simple problem, still confounding me.
The following line of code:
mysql_connect('database','user','password'); [with values of course]
Generates the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/phptest.php on line 3
My PHP info page says
When hitting php pages that use the mail() function, I get a 5 second hang
in the browser. The mail is then being delivered fine.
Many of the same scripts that use this mail function ran fine with ½ sec. or
less delay on my old redhat box.
Any ideas how to make it run quicker would be greatly
I've got a script that lists all the folders on my web space. If the
folder containes a non-php old web page with an index.htm in it I try to
include that index.htm but the links inside there do not realize they
are another folder deep. I've been away from this php stuff for a while
so am
We started a new server at work. The hosting company was
supposed to put PHP 5 on it, but did 4 instead. I would like to
upgrade it before it goes into service, but the instructions in the
PHP5 tarball look difficult. I'm not familiar with the emerge. The
server is Linux RH9 with Apache
Todd Alexander wrote:
Hello all,
I am a complete newbie to php so apologies for what I'm sure is a
simple/dumb question. I want to use php to include another html doc in
an existing set of documents. In other words 123.html will use php to
call on abc.html so I can make changes to abc.html and
Hello Sandy,
Sunday, November 21, 2004, 6:37:43 PM, you wrote:
SK We started a new server at work. The hosting company was
SK supposed to put PHP 5 on it, but did 4 instead. I would like to
SK upgrade it before it goes into service, but the instructions in the
SK PHP5 tarball look difficult.
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
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension .inc
or .php?
Best regards,
Perry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Perry Jönsson wrote:
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension
.inc or .php?
No, it does not.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jon-Eirik Pettersen wrote:
Perry Jönsson wrote:
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension
.inc or .php?
No, it does not.
What it the purpose of the .inc file then?
/Perry
--
PHP General Mailing List (http://www.php.net/)
Hello there!
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason not
to use tabs. I was just wondering if any of you freakees had some sort
of explanation...
--
Daniel Schierbeck
Help spread Firefox
Perry Jönsson wrote:
Jon-Eirik Pettersen wrote:
Perry Jönsson wrote:
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension
.inc or .php?
No, it does not.
What it the purpose of the .inc file then?
Not really anything. Just to
* Daniel Schierbeck [EMAIL PROTECTED]:
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason not
to use tabs. I was just wondering if any of you freakees had some sort
of explanation...
Most likely due to
Daniel Schierbeck wrote:
Hello there!
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason
not to use tabs. I was just wondering if any of you freakees had some
sort of explanation...
One reason is that a
Jon-Eirik Pettersen wrote:
Daniel Schierbeck wrote:
Hello there!
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason
not to use tabs. I was just wondering if any of you freakees had some
sort of explanation...
On Nov 21, 2004, at 4:30 PM, M. Sokolewicz wrote:
Jon-Eirik Pettersen wrote:
Daniel Schierbeck wrote:
Hello there!
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason
not to use tabs. I was just wondering if
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote:
* Daniel Schierbeck [EMAIL PROTECTED]:
There seems to be some tendency towards using spaces instead of tabs
when indenting PHP code - personally i can't come up with any reason
not
to use tabs. I was just wondering if any of you freakees
On Sun, 21 Nov 2004 22:22:52 +0800, [EMAIL PROTECTED]
[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 !
Does this help?
Four spaces are used by a lot of open source projects, including Apache
and PHP, so I've been trying to convert, myself.
In general, spaces just make it easier to do multi-line formatting with
exact precision, like this:
if ($foo ||
$bar ||
$boo)
{
...
}
If this statement was also
Perry Jönsson wrote:
Jon-Eirik Pettersen wrote:
Perry Jönsson wrote:
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension
.inc or .php?
No, it does not.
What it the purpose of the .inc file then?
For organization. The file name
--- Ryan King [EMAIL PROTECTED] wrote:
However, when indenting with 3 spaces instead of a single tab,
then your code-size WILL increase, and will include 3x more
space content than it used to :)
Who cares?
Just to point out the obvious, if you're not using a compiler cache, size
does
Chris Shiflett wrote:
--- Ryan King [EMAIL PROTECTED] wrote:
However, when indenting with 3 spaces instead of a single tab,
then your code-size WILL increase, and will include 3x more
space content than it used to :)
Who cares?
Just to point out the obvious, if you're not using a compiler cache,
In php.ini we have the ability to set sendmail_from only for Windows. It
is unfair, because it does not work
for Linux. When I broadcast, the From defaults to 'Apache' and people
have complained about that.
Another thing that is causing trouble is that uploaded file ownership
defaults to
Nathan Mealey wrote:
The following line of code:
mysql_connect('database','user','password'); [with values of course]
Generates the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/phptest.php on line 3
My PHP info page says that PHP (4.3) was compiled
Perry Jönsson wrote:
Jon-Eirik Pettersen wrote:
Perry Jönsson wrote:
Hello,
Does it make any difference if you include
(include/require/include_once/require_once) files with extension
.inc or .php?
No, it does not.
What it the purpose of the .inc file then?
Hello Perry,
Sunday, November 21, 2004, 8:02:48 PM, you wrote:
PJ What it the purpose of the .inc file then?
Security - on a properly configured web server a .inc file will never
actually try and compile/execute itself. Whereas a .php one always
will.
Best regards,
Richard Davey
--
Hello Chris,
Sunday, November 21, 2004, 11:09:42 PM, you wrote:
CS Just to point out the obvious, if you're not using a compiler
CS cache, size does matter. Of course, if you're to the point where
CS the difference is important to you, you're to the point where you
CS should figure out how to
Hello LLC,
Sunday, November 21, 2004, 8:34:26 PM, you wrote:
ML In php.ini we have the ability to set sendmail_from only for
ML Windows. It is unfair, because it does not work for Linux. When I
ML broadcast, the From defaults to 'Apache' and people have
ML complained about that.
It will only
Hi all,
I just upgraded my server into PHP 5. I run the same script which is
working in 4.2.2.
But In PHP 5 has followings msg:
Warning: move_uploaded_file(upload_files/Gnatt.htm)
[function.move-uploaded-file]: failed to open stream: Permission
denied in /var/www/html/simple_upload.php on line
Perry Jnsson wrote:
Does it make any difference if you include
(include/require/include_once/require_once) files with extension .inc
or .php?
It makes no difference as far as PHP is concerned. You're just telling
PHP what file to load.
However, .inc files are generally served up as plain text
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
On Mon, 22 Nov 2004 09:13:14 +0800, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Sorry,
I need a sample of php program...
Thanks!
Does this help?
http://www.onlamp.com/pub/a/onlamp/2002/05/09/webdb2.html
google: php image database
J.
--
PHP General Mailing List (http://www.php.net/)
On Nov 21, 2004, at 5:09 PM, Chris Shiflett wrote:
--- Ryan King [EMAIL PROTECTED] wrote:
However, when indenting with 3 spaces instead of a single tab,
then your code-size WILL increase, and will include 3x more
space content than it used to :)
Who cares?
Just to point out the obvious, if you're
Ryan King wrote:
I agree. I can't imagine that having more whitespace characters in a
script will significantly effect the performance of said script. I would
guess that there would always be more significant issues to deal with in
regards to performance- php compiling and optimizing SQL
[EMAIL PROTECTED] wrote:
Sorry,
I need a sample of php program...
They are dime a dozen on google.
please trim your posts.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I am implementing a upload file PHP program. The script is not
working. it keeps on generating the permission Error.
I am not very sure this is PHP or Apache problem. But one things I can
sure I changed all upload file dir in 777.
Anyone can help? Or are there any people facing this
On Monday 22 November 2004 10:56, Michael Leung wrote:
I am implementing a upload file PHP program. The script is not
working. it keeps on generating the permission Error.
I am not very sure this is PHP or Apache problem. But one things I can
sure I changed all upload file dir in 777.
The
I am looking for a program, either stand alone or web based, that will
allow the user to enter basic shipping information and will return
shipping charges from USPS, UPS, FedEx, and DHL. The application
should allow for a hidden % markup/handling function. The displayed
charges will include the
I am looking for a program, either stand alone or web based, that will
allow the user to enter basic shipping information and will return
shipping charges from USPS, UPS, FedEx, and DHL. The application
should allow for a hidden % markup/handling function. The displayed
charges will include the
Hi all,
I have already checked all parent dir are in 777 too.
But this is not working
Anyone can help me?
yours,
Michael
On Monday 22 November 2004 10:56, Michael Leung wrote:
I am implementing a upload file PHP program. The script is not
working. it keeps on generating the
Hi all,
I have some problems for upload file script. The script generated a
lot of permission denied error msg. I have changed the upload dir and
its parent dir into 777. I am quite sure I did the permission settings
right.
I have attached the error msg and my testing source code with this
You should enable php_mysql module in your php.ini file.
-- Manoj Kr. Sheoran
-Original Message-
From: Nathan Mealey [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 10:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Mysql Connect Help
A seemingly simple problem, still
On Monday 22 November 2004 11:25, Michael Leung wrote:
Please do not top post.
I have already checked all parent dir are in 777 too.
But this is not working
Post some *concise* code that illustrates your problem.
Post the full error message(s) that you get.
--
Jason Wong - Gremlins
On Monday 22 November 2004 12:14, Michael Leung wrote:
I have some problems for upload file script. The script generated a
lot of permission denied error msg. I have changed the upload dir and
its parent dir into 777. I am quite sure I did the permission settings
right.
I have attached
Hi Jason,
Thank you for your help. This is the output from PHP script:
upload_files is valid a directoryI am able to write to upload_files
Warning: move_uploaded_file(upload_files/Water lilies.jpg)
[function.move-uploaded-file]: failed to open stream: Permission
denied in
On Monday 22 November 2004 14:01, Michael Leung wrote:
Please do not top post.
Thank you for your help. This is the output from PHP script:
upload_files is valid a directoryI am able to write to upload_files
Warning: move_uploaded_file(upload_files/Water lilies.jpg)
Hi,
I'm trying to make DRES project (http://sourceforge.net/projects/dres/)
compliant with ISO-8859-1. I'm not using mbstring into my windows 2000
server, I know there is problem with Internet Explorer browser...
I saw DRES it use 'xmldoc' API into the file xmlutil.php. But this fonction
seems
Hi All,
I did more testes
I have added the followings code into my script
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
if (is_readable($_FILES['userfile']['tmp_name'])) {
echo I can read . $_FILES['userfile']['tmp_name'];
}
if ($fp0 =
Michael Leung wrote:
My Error Msg:
I can read /tmp/phphRiKeP
Warning: fopen(upload_files/doodah) [function.fopen]: failed to open
stream: Permission denied in /var/www/html/simple_upload.php on line
18
Warning: fopen(upload_files/Water lilies.jpg) [function.fopen]: failed
to open stream:
Rayan Lahoud wrote:
Does anybody knows how to install a pear package. i have the inline_C package that i want to install and use. And can i have some sample functions using this package?
pear install Inline_C -- that's it.
You don't need to restart Apache, or load any modules. To find out
Burhan Khalid wrote:
Rayan Lahoud wrote:
Does anybody knows how to install a pear package. i have the inline_C
package that i want to install and use. And can i have some sample
functions using this package?
pear install Inline_C -- that's it.
You don't need to restart Apache, or load any
65 matches
Mail list logo