Hi Richard,
So far so good! Only problem which I have is that some (=most)
people create email with clients that output email with HTML
codes (Internet Explorer for example)..
Internet Explorer is a browser, it doesn't create email.
It was a bit late, I meant Outlook Express which
Not really, but you could...
You would somehow have to get the session id from user 2 to user 3 (this
would depend how your site worked). Then you could access the session
variables - it depends how your sessions are stored. If they were stored in
a database, then you could read them (by
It's not a PHP question, is it ?
I didn't test it with Mozilla, but with MSIE it works:
Go to your Hotmail Inbox, and bookmark it.
For me it was working only with M$ Windows XP not previous versions...
Jerry
Ger wrote:
hi guys ,
Does anybody know how to set up my mail reader (Mozilla ) to
mysql_query($query) or die(mysql_error($link_identifier));
die stops the script.
Or if you want a more subtile way you can try this
$result_identifier=@mysql_query($query);
if (!$result_identifier)
{
// Do some nice error handeling
}
Jerry Verhoef
-Original Message-
From:
What is a code beautifier?
-Original Message-
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 1:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php code beautifier
do you know if exist a php code beautifier for win32? pls tell me the
address.
--
Best
OK, we're talking about Linux, right?
No ;) FreeBsd 4.x don't know exactly about x
I'll bet `cat /proc/sys/fs/file-max` gives you 4096
Try upping the file descriptor limit in /proc/sys/fs/file-max. That
may or may not solve the problem; worth a try. How much memory does
the client machine
No
Maybe you should consider database option or flat files to give info from
one user to the another?
Jerry Verhoef
-Original Message-
From: Alex Vargas [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 3:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Modify someone else's
David Jackson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
All --
It appears that the problem was a table design problems,
my primary index wasn't set to auto-increment? So I was trying to
insert records with duplicate keys !!
This of course leads to
this is an option but it will surely break easily.
I am not completly sure, but i think that sessions variables are write to
the session handler at the end of the script. (maybe one of guru's can
clarify this?)
But if this is true consider this:
user 1: is running a script/requesting a page
Hi to everybody,
Im trying to use persistents connections to an Oracle Database through PHP,
for manageing transactions, and have some problems.
My Schema:
* Web Server: Apache 1.3.22 on a Linux RedHat 7.0
* PHP: 4.1.1 compiled with oracle module functions (OCI*)
* Data Base: Oracle 8.1.7 on a
I'm on PHP/4.0.2
i'm getting
Fatal error: Call to undefined function: is_uploaded_file()
how can i emulate the function
will also nag my host but...
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
php-general Digest 28 Dec 2001 12:45:30 - Issue 1078
Topics (messages 78882 through 78928):
generalized environment for pages
78882 by: Dennis Gearon
oracle 8i stored procedures + php access
78883 by: Robert Mena
Re: Exec as user
78884 by: charlesk
78890
Read the docs about copy_uploaded_file() (this is the function with some more docs, as
I remember).
HTH
Andrey Hristov
- Original Message -
From: Paul Roberts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 2:41 PM
Subject: [PHP] is_uploaded_file
I'm on
Hi. I've got the following problem. I've taken over a website of about
1200 static pages. Yes, that's right, 1200 static pages. Containing
roundabout a zillion working and broken links. I've done my job and made a
system that actually works, importing each page (manually with a
publishing tool
Hy,
I would like to know if there is a way to get information on the include
hierarchy of files in php, especially to find out where which file is
included and trace back the line from some file until the first called
php file.
My special case here and now is that I get an error that some
Don't think that a option like this exists.
But maybe you should consider using
include_once or
require_once
Also before you define the function use the function_exist() and if the
function already exists don't redecleare it.
Jerry Verhoef
-Original Message-
From: Henning Sprang
Philip Olson wrote:
I seriously doubt your code works -- have you tested it? I think the code
you submitted will most probably output 1 2 3 4...24 25 26 (spaces are
actually \n's). I never tested it though, so I may be mistaken.
Yes, it works. Test it before posting such doubts :)
Hy,
Am 28 Dec 2001 14:27:50 +0100 schrieb Jerry Verhoef (UGBI):
Don't think that a option like this exists.
But maybe you should consider using
include_once or
require_once
Also before you define the function use the function_exist() and if the
function already exists don't
on 12/28/01 8:53 AM, Henning Sprang at [EMAIL PROTECTED] wrote:
That's what I wrote - I know I can use things like that, but I am
curious if there are other ways to find out which file is included by
what and which function is defined in which file - i didn't find answers
about that in the
Running a php script with a cron job, how can I do to have only one instance
of the script running ?
Thanks for any answer.
Nicolas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
There may be a much easier method however why not write a file and then check for it's
existence on the next execution. Delete the file at the end of
execution to clear the way for the next pass.
Quick and dirty so probably at least on typo
?
$pidFile = path/to/file/filename;
if (!is_file
Hello Jerry,
Friday, December 28, 2001, 5:37:39 PM, you wrote:
JVU Pseudo code:
JVU check if pid file exists
yes - DIE
no - write pid file
JVU At end of script
JVU delete pid file
This code can't guarantee the result. Use file locking instead.
JVU -Original Message-
JVU From:
I tried echo %PATH% test.txt and both the webpage and the dos prompt echo the
correct path information. This shows that a batch file executed by php can access the
system vars. They have a diffence only in accessing the %USERNAME% variable. Could
this be indicative that it is running as the
Under *nix - SysV semaphores
HTH
Regards,
Andrey Hristov
- Original Message -
From: Nicolas Guilhot [EMAIL PROTECTED]
To: Php General MailingList [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 4:31 PM
Subject: [PHP] Only one instance of a script at a time !
Running a php script
Hi Brian ,
I 've solved the problem :)... :)... :)... :)... :)... :)... :)... :)... :)... :)...
:)... :)...
:)... :)... :)
I installed version of php 4.0.7 (php-4.0.7rc1-win32.zip) ;
1- I extracted zip package ,
2- I copied (also configured) php.ini file to my \winnt folder. (with php_gd.dll
I was thinking about this solution, but what can I do if the script ends
prematurely. The file will never be deleted ??
Anybody has an example of how to use flock ?
Nicolas
Gerard Onorato [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
There may be a much easier method
* Valentin V. Petruchek ([EMAIL PROTECTED]) [Dec 28. 2001 04:51]:
OK, we're talking about Linux, right?
No ;) FreeBsd 4.x don't know exactly about x
Duh, that was stupid of me. It's right there in the subject.
I'll bet `cat /proc/sys/fs/file-max` gives you 4096
OK, then give this a try:
no it's move_uploaded_file and it's 4.03 or greater as well.
i'm using empty() as i just want to see if i uploaded a file or not
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]
Cc:
From : http://www.php.net/manual/en/features.file-upload.php
?php
/* Userland test for uploaded file. */
function is_uploaded_file($filename) {
if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
$tmp_file = dirname(tempnam('', ''));
}
$tmp_file .= '/' . basename($filename);
yep it all works on my dev server but the host only has 4.02 installed these
functions are php 4.03+
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 3:26 PM
Subject: Re: [PHP]
I had 4.0.0 for a year or more and used that stuff quite well.
And the docs says :
For earlier versions of PHP, you'll need to do something like
the following.
Note: This will not work in versions of PHP 4
after 4.0.2. It depends on internal functionality of PHP which
Hey, what is everyone talking about? What is the new crack lib
functionality? Is it in the docs yet?
TIA
Kirk
--
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,
* ger ([EMAIL PROTECTED]) [Dec 27. 2001 20:05]:
Does anybody know what is my problem ?
I try to access to my mysql database and I get the next errror :
Can't connect trough /var/lib/mysql/mysql.sock
I'm sure you've checked to see if the mysql server is running..
The
* Johnson, Kirk ([EMAIL PROTECTED]) [Dec 28. 2001 10:54]:
Hey, what is everyone talking about? What is the new crack lib
functionality? Is it in the docs yet?
http://download.php.net/manual/en/ref.crack.php
http://www.zugeschaut-und-mitgebaut.de/php/extension.crack.html
--
Brian Clark |
Nicolas,
You could try something like
?
$pifFile = /path/to/file/filename;
if(file_exists($pifFile))
{
$fp = fopen($pifFile, r);
flock($fp, 2);
// your code
fclose($fp);
}
Note: Just wrote it, not tested.
Note: You would probably want to do somethig more graceful then simply
* Nicolas Guilhot ([EMAIL PROTECTED]) [Dec 28. 2001 10:00]:
I was thinking about this solution, but what can I do if the script ends
prematurely. The file will never be deleted ??
It's a nasty hack, but you chould run a separate shell script to
check for the existance of the running script,
How can I redirect the output from phpinfo to a file.
If I try
error_log(phpinfo(),3,z:\\.date(YmdHis)..html);
all that is in the file is the number 1.
The output gets sent to the user.
Charles Killmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hello all!
I've wrote to scripts that use Javascript too. The idea is to have a parent
window teste_popup.php4 and a child window pop.php4. When a link is clicked
on the parent window, the child window will open. After the user enters
information on the child window he must close it and that
Does anybody have any code to give an example of mirroring a directory, and
sub dirs?
The code needs to connect to a remote FTP server, and download the entire
contents to the local hard drive.
Many thanks,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
buffer the output of phpinfo() using ob_start() then get the buffer using
ob_get_contents() and store it in your new html file using fwrite()
hope this helps
R'twick
- Original Message -
From: charlesk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 12:15 PM
Hello,
please anybody know how to desactivate any function as mail or function to
show the source of a php page ?
Thanks !
--
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
php.ini has a disable_functions setting, maybe acessable by ini_set()
too...
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
Yves Reveillon [EMAIL PROTECTED]
Hi i've taken a look throught he manual and i can't find a function to do
this
Basically i want to take in a string and check that the string doesn't
contain a certain word or something
ie check that it doesn't contain SCRIPT LANGUAGE = Javascript to prevent
hackers/crackers on my guestbook
I don't know if this is it, but you may:
1. Replace
print(returnwin=window.opener.navigate(urlLoc);\n);
with
print(window.opener.location='urlLoc';\n);
2. Try opening the pop-up widow with Netscape allowing the location input box to
appear, click on Close e Update and, if it doesn't
if (strpos(SCRIPT LANGUAGE = Javascript,$input_string)===false) {
echo(Yeah, right!);
exit;
}
You'll have a lot of problems, though, because
1. You also need to check for script type=text/javascript;
2. You have to strtolower() both strings in order to eliminate capitalization
differences;
This should be a better alternative:
http://www.php.net/manual/en/function.strip-tags.php
-Original Message-
From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 11:14 AM
To: Ash
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Searching a string or similar
if
take a look at this little function.. :) you might like it
http://www.php.net/manual/en/function.function-exists.php
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 7:35 AM
Subject: Re:
Hello Bogdan,
I greatly appreciated your help. Now it is way better but some behaviours are
still weird as I describe below:
On Microsoft Internet Explorer:
- If you close the popup window by clicking the close icon, the onunload
event works just fine.
- If you close the popup window by
Hello,
On this list yesterday: As long as these tools are out
there, it should keep all of us on our toes, and programming with security
constantly on our minds.
Today i have tested, Smart HitBot (http://www.hitbot.f2s.com/). Bad stuff
for stats, toplist, searchengines etc.
Now i want filler
I had been using blob for a lot of mysql text fields, even email
address as well as other data. all of a sudden, it seems, instead of
seeing and editting these blob values in phpmyadmin (i currently have
2.2.2) tables all i see in the fields is [BLOB] and I am ubnable to
edit the fields.
Does
I am ruining PHP with IIS on Win2k. I am using a PHP app which was working
fine but when the app douse a file/upload/submit in the page posted to the
temporary file seems not to exist. This was working fine on my Win98
setup. Any idea what is wrong?
Ben
--
PHP General Mailing List
In config.inc.php:
--
// In browse mode...
$cfgShowBlob = FALSE; // display blob field contents
--
Maybe put it on TRUE?
Op vrijdag 28 december 2001 16:52, schreef Paul S.:
I had been using blob for a lot of mysql text fields, even email
address as well as other data. all of a
Does anyone know if there are plans to offer a PHP certification in the future?
I know this can be a mute point, I am just curious.
Thanks!
Clint
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Brainbench?
Regards,
Andrey Hristov
- Original Message -
From: clint [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 11:13 PM
Subject: [PHP] PHP certification
Does anyone know if there are plans to offer a PHP certification in the future?
I
That is the one. Thanks. Diff than the previous phpmyadmin it appears, too.
I'll read through all those parms.
Bas Jobsen wrote:
In config.inc.php:
--
// In browse mode...
$cfgShowBlob = FALSE; // display blob field contents
--
Maybe put it on TRUE?
Op vrijdag 28 december
When reloading php software to new directories deleting the old dir is
often difficult because there is a dot file (often with a majic quotes
directrive) so directories aren't empty. I have to telnet to my main
account and use command line ftp to delete the (still invisible)
offending dot files.
I am having a problem moving files uploaded using POST.
What is supposed to happen is it takes two files, a picture and its
associated thumbnail, both of which have been uploaded via HTTP POST, and
moves them to two different folders, renaming them appropriately.
Here's the code...
How are the usage stats for these two libraries shaping up?
Both have advantages, I'm just wondering which one to start my own designs
around.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I have recently been requested to choose new technology to be used within my
organization. My options seem to include PHP and JSP, and I am leaning
toward PHP. The one thing I really need to know is how many concurrent
users PHP can handle at one time. This project is for an extremely large
Hey!
Looking for a way to add an entry in my array ...the way I have it the array
is getting rebuilt everytime...
Anyway to add an entry without calling a function to do it inside the main
while loop??
while ($row = mysql_fetch_object($result_query))
{
$look =
never mind...gheez my head is holidazed :)
$Schedule = array();
while ($row = mysql_fetch_object($result_query))
{
$look = $row-year . $row-month . $row-day;
$title = $row-title;
$Schedule[$look] =$title;
Jamie Fields [EMAIL PROTECTED] wrote in message
I have recently been requested to choose new technology to be used within
my
organization. My options seem to include PHP and JSP, and I am leaning
toward PHP. The one thing I really need to know is how many concurrent
users PHP can handle at
Hello,
Dennis Gearon wrote:
How are the usage stats for these two libraries shaping up?
Both have advantages, I'm just wondering which one to start my own designs
around.
That depends on what you want to do. You also should consider other well
thought solutions. If you are looking for a
The way it looks to me, you do both the window opening sequence and the closing
procedure twice:
- Window opening: you specify window options (toolbar, status bar etc) once in the
window.open() call and once in the actual window code;
- Window closing: you perform the same actions once upon
Hello everybody!
Apart from the usual best wishes for 2002, I have a question: does
anyone know of a good security list/newsletter/bulletin for PHP?
Actually, any kind of good source would be great, even if it's net
security in general -- what I'm looking for is:
1. Mostly PHP security
Hello Bogdan,
Before anything, thank you!
I've installed Netscape 6.2 on a Linux box and it works just like MS IE.
Just like I told you. The unload event does not work or is called by either
netscape 4.x or konqueror.
But it is called by Netscape 6.2 and MS IE 5.x 6.x.
I think that JS
Hello, Carlos!
1. onUnload IS called by Netscape. Didn't test it with Konqueror, but I guess
it's called as well;
2. My guess is that you have a problem with the function itself, that's why I
strongly suggest you define it as a standalone function and use javascript:
for debugging;
3. No,
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Unlike PEAR-DB and PHPlib, Metabase provides true database independence
to your applications.
Actually - no. Querys/conformance to specs/sequences/stored procs and more
are different from DB to DB. While the abstration layers help a little, they
Hi, I am running PHP 4.10 off my Win2000 box, and I am trying to upload a
file to it (Apache is running off the same box I'm uploading from).
I have the following form:
=
FORM method=POST action=catalog_admin.php?action=additemsave
enctype=multipart/form-data
INPUT type=hidden
php-general Digest 29 Dec 2001 00:47:18 - Issue 1079
Topics (messages 78929 through 78987):
Re: is_uploaded_file
78929 by: Andrey Hristov
78946 by: Paul Roberts
78947 by: Andrey Hristov
78948 by: Paul Roberts
78949 by: Andrey Hristov
78965
I'm having problems passing variables into included PHP files. How can I do this?
I may be repeating myself -- use the Nike solution: just do it! :-)
Global variables are implicitly passed to includes. Please provide more info if that's
not the case (not globals/globals somehow not being passed).
Bogdan
Evansville Scene wrote:
I'm having problems passing variables into
Dear Members ,
Does anybody of you have a webserver at home
using ADSL or other connections ?
If any , could you tell me What would be the acceptable Hardware to run
5 or more sites at home with an
256 k ADSL ? (Memory , proccesor , etc etc )
Do I have to have
Rick,
Comments intersperesed below ...
On Friday 28 December 2001 09:30 am, rick wrote:
Dear Members ,
Does anybody of you have a webserver at home
using ADSL or other connections ?
The answer is that depends For example my telco has me behind their own firewall,
Hello,
Mark Charette wrote:
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Unlike PEAR-DB and PHPlib, Metabase provides true database independence
to your applications.
Actually - no. Querys/conformance to specs/sequences/stored procs and more
are different from DB to DB. While the
I asked this on php-install list, but got no response so here goes...
I simply cannot get session to work correctly. Here's the test script:
include(incl.php);
session_start();
$mine++;
session_register(mine);
echo $mine;
incl.php includes code to save/retrieve session information to/from DB.
this is a great idea, maybe the admins can setup a php.security or something like
that?
Hello everybody!
Apart from the usual best wishes for 2002, I have a question: does
anyone know of a good security list/newsletter/bulletin for PHP?
Actually, any kind of good source would be great,
I'm new to cyrus IMAP server and PHP4. I wanted to create a user for cyrus.
So I copied modified the example of imap_createmailbox at
http://www.php.net/manual/en/function.imap-createmailbox.php
It was done with necessary substitution of for IMAP server and using cyrus
as user.
The error
Make sure you include the tags ?php ? in your include file for PHP
parsing. Included files are assumed to be text otherwise. You need to
provide more information if you have another problem.
- Original Message -
From: Evansville Scene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
I am looking into installing php on some of our hospital servers and was
wondering about licensing issues. Are you suppose to purchase any type
of license for installing php on a commercial server? It seems a little
on the strange side that they (the php people) would just let you
install and
LOL! You may want to read this for clarification:
http://www.gnu.org/philosophy/free-sw.html
Bogdan
Andrew V. Romero wrote:
what do they get out of it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Well, PHP is not under the GPL. But you still don't need to buy any sort
of license.
-Rasmus
On Sat, 29 Dec 2001, Bogdan Stancescu wrote:
LOL! You may want to read this for clarification:
http://www.gnu.org/philosophy/free-sw.html
Bogdan
Andrew V. Romero wrote:
what do they get
Ok, I was misled by the manual copyright at
http://www.php.net/manual/en/copyright.php -- anyway, it's the same sprit, I
believe.
Bogdan
Rasmus Lerdorf wrote:
Well, PHP is not under the GPL. But you still don't need to buy any sort
of license.
--
PHP General Mailing List
Welcome to the world of free software.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Andrew V. Romero [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 9:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Licensing??
I am looking into
I got a fairly big script with a lot of functions.
Which is more effiecient to pass global information to functions
ie
50 variables
50 constants
or 1 array with 50 values
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hey guys,
Im need to generate an email and Im trying to keep the exact spacing
I use when I define the body of the email. When the email is sent and i
view it with Outlick Express or simply use Pine, the spacing is all out
of wack. (Too many spaces here, not enough spaces there)
I think i
What WYSIWYG editors are you guys using with PHP templates? I'd like to
layout pages, frames, multiple levels of graphics with a WYSIWYG editor.
I looked at an online template from the macromedia site, and it is
completely unformatted and has some unprintable character in it at every
b. It is
87 matches
Mail list logo