I have a PHP page with a form that submits to another PHP processing page.
On completion of the PHP actions on the processing page, I have echoed into
the page the javascript action of 'location.href=...' and the location is
redirected to the PHP form page that starting the process. Both pages
I just switched from a 4.06 server with global_variables ON to a 4.22
with global_variables OFF
Can someone give me a quick run down of how to set/unset variables and
register/destroy sessions with PHP 4.22 (global_variables OFF).
I've been all through the php.net manual and still
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 5:36 PM
Subject: I need my PHP script to call a TCL proc
From: [EMAIL PROTECTED] (Phil Powell)
Newsgroups: comp.lang.tcl,comp.lang.php
Subject: I need my PHP script to call a TCL proc
If I have a text of string like this:
$stuff = Hi my name is Phil, my email is [EMAIL PROTECTED] and you can find me at
http://www.xx.yy?[EMAIL PROTECTED];;
What I want to do is to validate all patterns resembling an email address EXCEPT
those found within the query string of a URL. I would
and directories within
their web root only?
TIA
Phil Ewington
Technical Director
43 PLC
35 Broad Street, Wokingham
Berkshire RG40 1AU
T: +44 (0)118 978 9500
F: +44 (0)118 978 4994
E: [EMAIL PROTECTED]
W: http://www.43plc.com
--
PHP General Mailing List (http://www.php.net
: If they select another file to upload, the old
file is deleted and the new file uploaded.
Any suggestions?
Thanx
Phil
I'm having a day, gang!
I have done nothing to my code and now is_uploaded_file is constantly false, even when
uploading a file every time. I dunno what to do, would someone want to look at my
code and tell me what I did wrong; I'm out of ideas.
Phil
Dude, your solution failed! :( The image STILL caches even though on the
server end it's deleted!! Even with a RANDOM string tacked on it STILL
caches!!!
Phil
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Aha! Something I can chime in on. I
Tried that too, dude.. now the files are replicating themselves in the
/profile/images folder! I am supposed to delete the old file and replace it
with the new file, but instead I have old file new file, and the
association between profile and image is incorrect.
Phil
Philip Hallstrom [EMAIL
below, takes up
to 90 seconds to load because of the ASP script locking, in spite of my safeguards.
Can anyone please help; I'm out of ideas.
Thanx
Phil
?
require_once('/users/ppowell/web/php_global_vars.php');
// OPEN SOCKET CONNECTION TO BRINKSTER SET TO TIMEOUT IN 2 SECONDS
$res
');
However, when display.php finishes being required, I lose all of my variables that I
need for view.php. How do I retain them?? How can I ensure that these variables in
display.php will also exist in view.php?
Thanx
Phil
contents from the remote site and post a default
message instead?
Just wondering
Thanx
Phil
mySQL on my machine and am
trying to see what I can do with it giving Win2K and IIS.
AUGH! Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do I am getting OLD file information and NOT my changes, every
single time, unless I refresh my page...
Does anyone know what I can do about this? I can't redirect them, that would be
horribly inefficient.. what can I do?
Thanx
Phil
:
if (strpos($REQUEST_URI, register.php) !== 0) { // you're in login.php }
I don't know why I can't get this other than weekend stupidity, can someone help?
Thanx
Phil
it should do?
Thanx
Phil
is not passed into the
corresponding variable.
For example, if isLogin = 1, then $isLogin = 1
But if isRegistered = 0 then $isRegistered = {null}
I do not understand why this happens, someone enlighten me!
Phil
I couldn't think of isset, so I winged it:
if (strlen($var) 0) {...}
Phil
Michael Sims [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sat, 4 Jan 2003 19:26:02 -0500, you wrote:
Whenever the form variable is equal to 0, the value is no
CURL? I only understand CURL as a Vignette command, sorry, you lost me.
Phil
Michael J. Pawlowsky [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not sure I totally understand... But why not just call it like a web
page using curl?
*
? I am trying to read contents from
nicknames.txt and split according to the newline character so that each nickname is an
array element.
What did I do wrong? :(
Phil
I just switched from a web host who used version 4.06 to a web host who
is using version 4.22 - Now none of my PHP scripts will start sessions
properly. Did something change from version 4.06 to 4.22 concerning
sessions?? I e-mailed my new web host and asked if they disabled
sessionsthey
the
nickname of phil and I add it to nicknames.txt as phil + \n. The next person
adds his name as bob + \n. However, this happens:
phil
philbob
Is it due to the way I'm adding to the file? Can someone show me how to append to a
file properly without carrying over persistent existing data like
I checked, and I am adding just bob. Turns out to be a wacky logic
problem.
nicknames.txt contains this:
phil\n
bob\n
When bob leaves the chatroom nicknames.txt becomes:
phil\n
BUT.. apparently that's not it either; the carriage return is also somehow
stripped out. So instead it's
);
if (!$file){
echo Timed out, try again later;
} else {
// do stuff
}
Problem is, when it attempts to connect to the remote server, it's supposed
to time out after 2-5 seconds, but it doesn't, it just locks up :( Any
suggestions?
Phil
Can you set something like a setTimeout feature in fopen? That is, if you use fopen
to open a URL for scraping, if that URL's server is down or doesn't respond in x
seconds, can you set a feature to show an error message or a friendly error message
indicating such?
Thanx
Phil
Sorry, your code produced this error and I can't figure out how to debug it
:(
Warning:
fopen(http://www3.brinkster.com/soa/val/profile/display.asp?showLeftNavBann
er=1,r) - Error 0 in /users/ppowell/web/profiledisplay.php on line 4
Phil
- Original Message -
From: Tim Ward [EMAIL
the AddType line for php in
httpd.conf and restarted Apache. If your file is test.php then the
.php must be part of the AddType line.
...or you are viewing the page as file://foo.php rather than
http://localhost/foo.php
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net
has already been set prior to emailing.
Is there a way to overwrite only certain header information prior to emailing to
ensure the content-type of the email being either text/plain or text/html?
Just wondering
Thanx
Phil
On Saturday 30 November 2002 5:32 pm, Andy Davey wrote:
Hi Phil
It took me a while to get the local host to show the apache welcome screen,
but now that I have I am still unable to see the page, I have the file
saved on my desktop, should I have the test.php file saved anywhere else?
I
are not giving me a
clear solution as to how to write to a file that does not yet exist that has to have
the permissions of 0755 for both files.
Thanx
Phil
other folders with the same permissions as /chat.
Phil
Craig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
you must give the same permissions to the folder also.
Phil Powell [EMAIL PROTECTED] wrote in message
0ca201c2947e$44690a80$dcbe6444@scandi
Let's say you had one site and one site only to get the latest PHP/MySQL
news, articles, reviews, resources, tutorials, advanced stuff etc.
What would it be?!?
Has anyone used book publisher O'Reilly's new Safari online book site
for PHP/MySQL books? I was hoping to use it so I could download whole
books and possibly print them out.is it capable of doing something
like this or is it next to impossible?
When declaring a new object ( $obj=new Something; ), do they need to be
then registered in a session ( session_register(obj); ) if you want to
use them for a different script?
So I would like to make a search engine for my site. Can you use PHP to
do this? Or is another language/application/whatever more appropriate??
If so, can you give me links to where I can find information on this
topic.
Thanks!!
I am quite unhappy with my current web host provider
(www.infinitehost.com http://www.infinitehost.com/ ) and would like to
hear some recommendations of some good companies that host PHP/MySQL and
also JSP. I'm more than happy to shell out a few extra bucks to get
some good service.
Currently I
2.040
now it doesn't work becuase the arg does not get parsed. I am sure that this
is a config issue but I do not know it - any assistance much appreciated.
regards
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Let's say you have a simple PHP file that just displays a random number.
When the user hits the submit button, the page will reload and display
another random number.
How often do you need to call mt_srand(); ? Just once? Or each time
the page gets reloaded?
Yeah, I read that,I'm using PHP 4.04...so I do need to see the random
generator.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 11:35 AM
To: Phil Schwarzmann; [EMAIL PROTECTED]
Subject: Re: [PHP] seeding using mt_srand();
What
:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 3:40 PM
To: 'Phil Schwarzmann'; [EMAIL PROTECTED]
Subject: RE: [PHP] seeding using mt_srand();
Hi Phil,
How often do you need to call mt_srand(); ?
As of version 4.2.0 you don't have to call it at all. If your PHP
installation is an earlier
Using PHP and a MySQL database, I want to grab the highest number in a
particular column. Right now I have this VERY inefficient code to grab
this number, there's got to be a better way. Does anyone have any
ideas??
Thanks!
three
were uploaded the exact same way too.
Anyone want to solve this riddle? I am stumped as usual.
Thanx
Phil
is register_globals still set to 'off'?
TIA
Phil
Phil Ewington
Technical Director
43 PLC
35 Broad Street, Wokingham
Berkshire RG40 1AU
Tel: +44 (0)118 978 9500
Fax: +44 (0)118 978 4994
http://www.43plc.com
I need users to be able to insert special characters (ö and ä) into a
text field.
Unfortunately, English-speaking people do not have these keys on their
keyboards. Currently, they are cutting and pasting these characters
into the text boxes.
I believe ASP can insert characters into text
Maybe I'm wrong on this but mt_rand doesn't seem to be random enough.
I'm on a PHP 4.04 server and here's my code..
function make_seed() {
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 10);
}
mt_srand(make_seed());
$randval = mt_rand();
I
to
produce the desired results.
Thanx
Phil
I'm trying to insert the variable $hidden_manuf_id into a mysql_query()
statement.
If i do this:
mysql_query(DELETE FROM product WHERE manufacturer=$hidden_manuf_id,$bb)
or die(mysql_error());
PHP server doesn't see the variable because it is inside the string
quotes.
If I do this:
for cookies or not.
So, how can I get rid of the trash on my page?
Thanx
Phil
then that I might be able to produce the contents of a
uniquely-formed URL such as
http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php into
another PHP script since fopen and require() both do not seem to work in this case?
Thanks
Phil
']);
?
Please someone tell me what I'm doing wrong :(
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
// $path = /users/ppowell/web/my/images/;
Warning: Unable to access /users/ppowell/web/my/images/ in
/users/ppowell/web/my/process.php on line 27
Phil
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 28
mkdir
and uploading!!
Phil
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 28, 2002 7:04 PM
Subject: RE: [PHP] mkdir() failed: Permission denied
_YOU_ don't need write permissions, the web server
The following produced a rather nasty parse error:
echo ($idArray[0][sizeof($idArray[0])]));
I have a 2-dimensional array $idArray that I must obtain the LAST element of that
2-dimensional array.. how do I do it?
Thanx
Phil
time I ran this script it set the cookie just fine; subsequent runnings of
this script produce this error. What am I doing wrong, anyone?
Thanx
Phil
it. :(
Phil
John W. Holmes [EMAIL PROTECTED] wrote in message
000e01c26754$cf27c8c0$7c02a8c0@coconut">news:000e01c26754$cf27c8c0$7c02a8c0@coconut...
You can only set a cookie before any output is send to the browser. A
newline, space, or html, etc, is output to the browser. Redesign your
Never mind, I found it.. *sigh* I forgot about phpinfo()..
Everything works now, cookies, redirection, everything.. thanx!
Phil
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Phil Powell' [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, September
?
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
=maroon»\1«/font»,
$string);
This results in opening and closing script/script tags being replaced
with a square being wrapped in font tags. I have this working in Cold Fusion
but cannot seem to convert my scripts to PHP. Can anyone help?
TIA
Phil Ewington.
--
PHP General Mailing List (http
What's strange is that doing an ord($string) returns 171, which is a '1/2'
char. So why does PHP convert the pattern match??
-Original Message-
From: Phil Ewington [mailto:[EMAIL PROTECTED]]
Sent: 03 August 2002 17:04
To: PHP General
Subject: [PHP] RegEx (back referencing)
Hi
.
- Original Message -
From: Phil Ewington [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 5:52 PM
Subject: RE: [PHP] RegEx (back referencing)
\\1 outputs nothing at all wrapped in font tags and closing
tags \ wrapped
in font tags :o
I want query my mysql table and get one particular row.
So let's say my table had 5 rows (entries) in it, and I want to pull
just row #2, how would I do this??
THANKS!!
When running a mysql_query, sometimes i need to have apostrophes
surrounding variables...other times i don't
example...
$query = SELECT * FROM table WHERE id='$id';
or
$query = SELECT * FROM table WHERE id=$id;
...it kinda seems random when it wants apostrophes and when it doesn't
want
I want to store user inputed data from a HTML multi-line text box into a
mysql database. But unfortunately, it doesn't remember any of the hard
returnsis there a painless why to do this?
Thanks!
I am having the worst trouble trying to write a tiny simple script that
will upload a file. Below is my code - can anyone tell me why it's not
working
HTML
form name=form1 method=post action=upload.php
enctype=multipart/form-data
input type=hidden name=MAX_FILE_SIZE value=1000
input
Currently I'm using php 4.0.5 on Win98/apachedo you think it's worth
my time and trouble to upgrade to a newer version of PHP? Is this hard
to do? Any links to info on how to upgrade ??
Thanks!
Now I'm getting this error each time I upload a file...
Warning: Unable to open 'none' for reading: No such file or directory
in /home/.../upload3.php on line 7
why is it saying 'none' ??
Sorry about thatI beefed.
anyone have some code they can send me that will successfully upload a
file? I've got all the HTML correct, it's just that my PHP code ain't
working.
Thanks!
Phil
Here is the error I'm receiving when attempting to upload a file
Warning: Unable to create 'temp/test.txt': Permission denied in
/home/.../www/website/upload3.php on line 11
..could it be that my web host isn't giving me permissions to upload
files ?
I took your advice first and tried move_uploaded_file and it kept
saying It barfed (hehe). Then I switched to copY and got this new
error.
Thaks for your help!!
[EMAIL PROTECTED] 07/01/02 01:29PM
Hi Phil,
first thing u should do is to check permission of this directory
(CHMOD
now that I put a root password on mysql, I can no longer log onto
phpmyadmin. It mentions something about the lib.inc file, it looks like
I need to edit the file and add in my new username/password. But when I
open lib.inc, it looks like a bunch of garbage on the screen, it's not
normal text.
Okay, so with the help of all you, I have successfully set up a php
server with apache/mysql on windows 98. THANK YOU!!
What else can I do to make this server secure? What is this SSL
business all about? Any extra programs I should add that might help?
Thanks!!
I just setup php/apache/mysql on a win98 machine and everything is
working great except session control.
It won't record a session or any session variables. Everything else is
working well.
It was giving me an error because i didn't have a tmp folder on the
root of my C drive.
Now I don't
Is it pretty easy to upgrade phpmyadmin from 2.1 to the latest version?
Anyone run in to any difficulty?
Okay, so I changed my root password using this command
C:\ C:\mysql\bin\mysql mysql
mysql DELETE FROM user WHERE Host='localhost' AND User='';
mysql QUIT
C:\ C:\mysql\bin\mysqladmin reload
C:\ C:\mysql\bin\mysqladmin -u root password my_password
Then I went into my dbconnect.inc file and
($destImage);
All that happens is that I get an identical copy of the image, and not
a resized one.
TIA
Phil Ewington.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, I am a total pussy and gave up on Linux to run my PHP server. I'm
back to Win98, and everything is working fine except...
For some reason, anytime I have a script that tries to set/access a
session variable, I get this error
Warning: open(/tmp\sess_slkfjsdkjfljfk, O_RDWR) failed: m
I want to find the number of the highest primary key in a particular
MySQL table.
I could do something like...
$query = SELECT id FROM table;
...then run the query, then create a loop and check all the ID's
(primary key) for the highest...
...but that seems like way too much.
Any ideas ??
Here is my code...
$query = SELECT max(id) FROM bc_topic;
$result = mysql_query($query);
$temp = mysql_result($result, 0, id); - this is line 8
echo $temp[id];
Here is the error I get ...
Warning: id not found in MySQL result index 2 in /.../upload2.php on
line 8
What am I doing wrong here?
What exactly happens when you put three equal-signs together instead of
just one or two? I've seen this in other people's code, then search
php.net and found nothing.
Also, what happens when you put a thingy in front of a function? Does
it surpress the errors?
Thanks!!
Anyone have a link (or the code) to copy the structure of a blank table
to a new table using mysql?
Thanks!!
I want to round a number to the nearest decimal place...
if the number is 4.623, I want it to display 4.6
if the number is 2.36, I want it to display 2.7
Is there a function that does this? round(), ceil(), floor() don't do
this and I've checked through all the math functions in my
I want to produce the current date time in a MySQL datetime format
that I can then put into a MySQL database.
How do I do this? I've tried mktime() and getdate() but it's not
working.
Thanks!!
I can't get UPDATE to work properly when querying MySQL.
$query = UPDATE $table SET field1='$var1' WHERE id='$id';
I want to update one field of one row in a table. Is this syntax
correct?
I'm trying to install a PHP server on Linux Red Hat 7.3
I have a reformatted PC and some burned disks of RH 7.3 that my CD-ROM
won't detect when it reboots.
How do I get RH 7.3 loaded? I've tried using the rawrite.exe function
but it always hangs at a DOS prompt when I run this file.
Okay, let's say I want to send a user to a certain webpage...
usually I would use...
include(website.php);
but, if i want to send a user to a website along with a variable like...
$temp = website.php?var=.$var;
include($temp);
...this doesn't work.
any suggestions??
THANKS!!
The lazy and worthless a-holes at www.infinitehost.com (my host server)
are forcing me to move all my MySQL data from one server to another
because they are too dumb to fix it.
I need to use phpmyadmin to move the data but i'm not %100 sure how to
do it. There are some view dump commands. It
I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I
have some instructions to install php/mysql/apache and have a couple
questions...
Which is better, GNOME or KDE? I seem to like the feel of KDE better.
Does Apache or php or mysql already come preloaded on Linux Red
What exactly are these linux redhat rpm packages? Is this an 'easier'
way to install mysql/php ??
okay, so I've installed linux red hat 7.2 and it's working well!
ive heard that php/apache/mysql comes preinstalled with red hat.
what do i need to do to get php/mysql up and running?
also, how do i figure out my linux box's IP address? ipconfig doesn't
work hehe.
Thanks for your time!!!
i have some php files in /var/www/html/ and none of the php is working
properly.
all i've done so far is installed Linux Red Hat 7.2 and
php/mysql/apache is supposedly already installed with Redhat. How do I
get this stuff configured? Anyone have a nice link?
I have a nice formatted PC Linux Redhat 7.2 that I got at a local
retail store for $60.
All I want this PC to do is be a PHP/MySQL server and also be a FTP
server.
I've seen various complicated (complicated cause i'm new to linux)
detailed instructions to installed php/mysql/apache but
On Tue, 18 Jun 2002, Phil Schwarzmann wrote:
I have a nice formatted PC Linux Redhat 7.2 that I got at a local
retail store for $60.
All I want this PC to do is be a PHP/MySQL server and also be a FTP
server.
I've seen various complicated (complicated cause i'm new to linux)
detailed
as before.
Thanks a lot.
Phil Reid
So I'm trying to install PHP on win98 with Apache2.
I got these nice instructions from...
http://www.webmasterbase.com/article.php?pid=30aid=525
After I make the following addition to my httpd.conf file, I get an
error when I try to start Apache again...
ADDITION TO HTTPD.CONF:
LoadModule
So I'm thinking about setting up a little php/mysql web server here at
work and want to use Windows as my platform instead of Linux and have a
couple questions...
I know that PHP on Windows has some limitations as compared to Linux.
What are these limitations?
Which version of Windows would
], James Laird Website Order,
$message);
If anyone can be of assistance it would be very much appreciated.
Regards,
Phil Reid
I am intrested in creating a chatroom entirely in PHP involving streaming text. Where
can someone help me to find such a means of doing so?
Thanx
Phil
http://valsignalandet.com
Whenever a user runs the mail function, an e-mail messsage is sent
properly but the page just hangs.
Has anyone else had this problem?
Whenever I use a mult-line textfield, the data inside doesn't transfer
over. But single-line textfields work just fine.
how do i fix this?
101 - 200 of 413 matches
Mail list logo