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?
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?
ther. and key() isn't exactly
what i want either..
>>> [EMAIL PROTECTED] 06/07/02 10:53AM >>>
On Friday 07 June 2002 22:16, Phil Schwarzmann wrote:
> Let's say I have an array...
>
> $my_array[] = array('bob' => $x, 'jim' => $y,
Let's say I have an array...
$my_array[] = array('bob' => $x, 'jim' => $y, 'mike' => $z);
Now I want to find the name of the second element in the array (I want
my result to be 'jim')
How do I do this? I think I might have to use the key() function but I
can't quite get it to wkr.
Thanks!
I'm using the mail() function, it sends the message properly but the
page hangs.
Has anyone else had this problem?
I'm not trying to send any bulk mail, just one message to one mailbox.
Thanks!!
So it looks as if the mail() function seems to work for me but whenever
the script is executed, it web page just hangs!
Why do you think the web page keeps hanging up (after a couple minutes
the user eventually gets a 'page not found' error - at least i think
that's the error), but the script st
I want to write a simple script that sends an e-mail message using PHP.
I'm assuming that my web-host has the mail function hooked up to the
e-mail server (should I be assuming this or should I assume that it's
NOT hooked up?).
What is the syntax for this command?
something like this... ? (
I know I'll get mauled big-time on this mailing list but I'm thinking
about putting PHP on hold for a while and learning ASP.NET
I love PHP and open-source computing but if one wants to get a job in
web development, you'll have a much better time find a job with both PHP
and ASP (among others) s
Swell, I found the error, and it was a STUPID one.. I misconfigured fread()!
Thanx though
Phil
TCL 1, PHP 2
- Original Message -
From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
To: "Phil Powell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Satu
\n\n";
}
}
?>
No matter what I do, however, the file cannot be accessed if it exists and
causes damage galore. Can anyone out there help me figure out what I did
wrong; I'm completely stumped and may have to rewrite this portion of the
chatroom in TCL, all of my TCL scripts have h
Found a MUCH MUCH simpler solution that works across the board.. change
$HTTP_HOST to $DOCUMENT_ROOT and it works!
Phil
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Phil:
>
> On Fri, May 10,
o be able to use the
one PHP script in the DOCROOT for every PHP script in every subfolder, how
is this done?
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to write a simple bulletin board in PHP. I want to use the
typical parent-child (it's sorted by both date AND thread) type of
bulletin board you see often on other websites.
But I just can't figure out how to write some simple code to do this
and keep track of all the threads.
Any idea
so of use. How can I assure that the session will
expire after 20 mins?
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
session_register("login_state");
header("Location: http://"; . $HTTP_HOST . $PHP_SELF);
You can see I am going to be a big problem :(
Phil
"Uchendu Nwachukwu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
&
ggedIn");
$name = session_name();
session_start();
$HTTP_SESSION_VARS["username"] = $username;
$HTTP_SESSION_VARS["ip"] = $REMOTE_ADDR; // To prevent session stealing
}
I am completely confused!
Phil
"Michael Virnstein" <[EMAIL PROTECTED]> wrote in me
ggedIn");
$name = session_name();
session_start();
$HTTP_SESSION_VARS["username"] = $username;
$HTTP_SESSION_VARS["ip"] = $REMOTE_ADDR; // To prevent session stealing
}
I am completely confused!
Phil
"Michael Virnstein" <[EMAIL PROTECTED]> wrote in
with five type form
elements
Once submitted you will be at a "thank-you" page and files uploaded, but
then the session is gone (session_name is back to PHPSESSID again)
What do I do to keep it? I cannot use cookies and putting it in the URL?
Phil
"Michael Virnstein" <[EMA
a session variable upon successful
login, problem is, the session_name() never changes it always remains the
default PHPSESSID what am I doing wrong now?
I fixed the problem with multiple files, that was bizarre!
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pache\htdocs\webmissions\picupload\miss_pic_upload.php on line 82
Possible file upload attack. Filename:
What I need to know is, what did I do wrong? I need to be able to move 1-5
submitted files at one time but I can't find any documentation on php.net
that handles such an exotic piece of co
r vars into session
session_register("username");
// Setting values for session vars.
$HTTP_SESSION_VARS["username"]=$HTTP_POST_VARS["username"];
// Referring a session info to another PHP.
echo "text";
Thanx!!
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am having to do a remote URL screen scrape using PHP in "safe-mode". What
do you recommend I do?
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone out there ever work with .phtml files?? Especially in trying to
include CGI scripts into .phtml files?
Need some help here if possible
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
en in
Perl), which will be a menubar, into the PHP file?
I cannot use backticks, system() or passthru() because the remote system is
running in safe mode and I am not allowed to change that.
What do I do?
Thanx
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I do this??
The code I just wrote will not print out "Hello!"
THANKS!!!
Phil
I have a large string that I want to written to a new file.
Let's say the string contains the characters, "hello!" and I want the
filename to be "hello.txt"
Here is the code I have...
$filename = "hello.txt";
$outputstring = "hello";
fwrite($filename, $outputstring);
...and of course it
Is there a maximum number of characters you can use in a query?
I have a giant query using the UPDATE command (updating about 120
different columns).
I run this query of mine and nothing happens. No errors. No updates
either.
Thanks!!
Phil
Is this query legal?
$query = "UPDATE table SET (var1, var2, var3) VALUES ($var1, $var2,
$var3) WHERE username='$username'";
Im wondering cause I have an INSERT query
$query = "INSERT INTO table (var1, var2, var3) VALUES ($var1, $var2,
$var)";
...but only there are like 150 diffe
)) {
$a = "date_" . $row["event_date"];
$$a = array($row["event_id"], $row["event_title"]);
}
if ($date_2002-04-15) { do_something(); }
Any comments will be greatfully received.
Phil.
> -Original Message-
> From: Jason Wong [mail
event_id & event_title from the row. I am using PHP 4.01.
TIA
Phil Ewington.
---
P.S. If there are any ColdFusion developers on this list, what is the PHP
equivalent of a structure?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
state it
was left?
It will not ever be necessary for all the individual fields to be saved,
only a few key totals will be eventually stored if a quote is finalised so I
am looking for a quick way of storing the page if the quote is in progress
and has to be left,
Phil
--
PHP General Mailing
Im having a VERY hard time trying to explain this
Here is a bit of my code...
for ($i = 0; $i < $num_fields; $i++)
{
$field = mysql_field_name($result, $i);
$field2 = "<".$field;
$output = str_replace($field2, $field), $output);
}
The problem I'm having here is that the variable $fiel
Is there a way to copy the column names in a MySQL table into a row ?
Thanks!
Is there a way to access a column in Mysql just by using a number?
Like if you had three columns called "column1", "column2", and
"column3" and I wanted to access column3 just by using the number 3
Thanks!
Phil
When I want to display a table onto the screen I use this code
$query = "SELECT * FROM database";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
for ($i = 0; $i < $num_rows; $i++) {
$field1 = mysql_result($result, $i, field1);
$field2 = mysql_result($result, $i, field2);
How do I take the current URL and turn it into a variable?
THANKS!!
Phil
What does this error mean??
Fatal error: Allowed memory size of 8388608 bytes exhausted at
zend_language_scanner.c:4248 (tried to allocate 9 bytes) in
/blah/blah/afteradmin2.php on line 37
here is line #37...
$usertemp = mysql_result($result_all, $i, "username");
THANKS!!!
I know I shouldn't be asking these questions on this mailing list but
you guys are ALWAYS EXTREMELY helpful...
1) I want a a text link to change color when the mouse is hovering over
top of it. How do I do this? Im sure it's some CSS thingy.
2) Is it possible to make a "text field" smaller w
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
installation, and am having some resolution problems I haven't seen before.
This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1
with no problems with the same configuration. It uses gcc version 2.7.2.1
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
installation, and am having some resolution problems I haven't seen before.
This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1
with no problems with the same configuration. It uses gcc version 2.7.2.1
Why doesn't this work...
include("index.php?var='$var');
I want to include a page in my code and send a variable to it but I get
some funky error.
THANKS!!
Im trying to take this string, "hello", and explode it into an array
with each cell in the array containing one character.
$array[0] = 'h'
$array[1] = 'e'
etc..
How does this work? When is use...
$character = explode('', $string) or
$character = explode($string)
...it doesn't seem to work
Hi There,
Could anyone suggest where I can get a workaround script to handle postback
variables to Paypal with PHP?
I was all set to use cURL but now I've been told that the host hasnt and
wont install it with their PHP.
Thanx in advance
Phil
--
PHP General Mailing List (http://www.ph
a refresh of the browser is performed. Have I done something wrong or are
headers not very reliable in PHP?
TIA
---
Phil Ewington - Technical Director
---
43 PLC
35 Broad Street, Wokingham
Berkshire RG40 1AU
I need a function that will erase a particular character in a string.
Any ideas?!?
THANKS
I know this is probably a HTML question and not a PHP question but...
I just upgraded to Internet Explorer 6.0 and I noticed that some
websites have the ability to change the vertical scrollbar's colors.
Anybody know how to do this??
Thanks!!
word to them, and then
> allow them to change the password on your site to something easier to
> remember...
>
> Jeff
>
> At 11:56 PM 2/3/2002 +0800, Phil wrote:
> >Hi there,
> >I'm creating a user/password table that will use either Mysql Password or
> >PHP
back to a form
recognisable to the user?
Thanx in advance
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone direct me to a nice site that will take my hand and walk me
through the basics of classes and $this->
Ive written a few really good PHP sites and haven't had to use either of
the two and Im sure Im missing out on some essentials to good coding.
Thanks!
I keep getting parse error with this code:
($teams[] is a big array that I got by using mysql_fetch_array)
$r = "game";
echo "";
echo "$teams[$r.'1']";
echo "$teams[$r.'16']";
echo "";
Im trying to make a dropdown list.
Here is the error message:
Parse error: parse error, ex
So let's say Bill is accessing a MySQL table and is about to UPDATE some
information on a particular row. Meanwhile, Al is doing a sort on that
same table.
Couldn't Al's sorting possibly screw up Bill's updating?? Or does
MySQL have some built in functions that prevent this?
Thanks!
Phil
Okay, so when I INSERT a row of information into a MySQL database, I
don't want it to place it at the first empty row it findsI want it
to put it after the very last exsisting row.
One of the fields of the database is an AUTO_INCREMENT type, so Im
assuming Im gonna use that in the query.
How
I have two PCs, one is a Dual Pentium Pro 200Mhz and the other is a
Pentium II 450Mhz (both have 64MB)
I want to set one of them up using Linux Red Hat 7.2, Apache, MySQL,
and PHP. I only plan to have about 1-3 users accessing it at any one
time.
Which of those CPUs do you think is better? W
When Im adding rows into my MySQL database using PHP, it seems to put
them in random places in the database. Sometimes at the beginning,
sometimes at the end, sometimes in the middle of the database.
Why is it doing this?
Thanks for your help!!
I want a script to go to an anchor in an html page
This doesn't seem to work
include "blah.htm#anchor";
how is this possible
Thanks!
Phil in baltimore
P.S. Pittsburgh sucks Bill Gates' balls.
I've noticed that the user sessions automatically time out after X
amount of minutes without me putting any extra code in the scripts.
How do I set the amount of time before the sessions time out?
I've looked all over my 3 books on PHP/MySQL and haven't found a damn
thing
Thanks!
..I figured it out.
I keep getting this damn error message from MySQL even though it
displays the correct results.
Here is the error...
Warning: Unable to jump to row 1 on MySQL result index 2 in
/blahblahblah/patient/display_search_results.php on line 39
Here is the code on line 39
$d = mysql_result($result,
I have an exsisting table without any rows. I tried to add a new column
to it and make it an "auto increment" column. But when I do I get
this...
ALTER TABLE patients CHANGE id id MEDIUMINT (9) DEFAULT not null
AUTO_INCREMENT
MySQL said: You have an error in your SQL syntax near '' at line
How easy/hard is it to view the PHP source code when you're at website?
I noticed when I was using Internet Explorer, if I pressed "view
source"...it would show the HTML but not the PHP.
-Phil
After I make a queryhow do I fetch a specific row from that query ??
Thanks!
Yo, thanks for all your help. But it isn't exactly what im looking for.
Let's say you had a database with the following four columns...
-LastName
-FirstName
-Age
-Weight
...and you wanted a page that would allow a user to search for one or
more of these fields within the database.
It would be
Dumb question: How do I query results from a MySQL that I've already
queried once before in the same page?
Here is my code:
// querying the database for the first time.
$query = "select * from table where thingA = $searchA";
$result = mysql_query ($query);
// now I want to query my results I j
cript.
I'm using 'echo' to display my data.
Any help??
Thanks so much!
-Phil
baltimore
At 09:35 AM 12/14/2001 -0500, jimtronic wrote:
>This may be more of webserver question, but what methods are used to test
>the load on a php script or a family of scripts.
Start with "ab", the Apache stress tester that comes with the Apache
distribution. Microsoft also has a free stress testin
you can in external libraries.
I would draw the line into a bitmap which was exactly twice the size required
and then scale the image back to the correct size when you've done with
imagecopyresampled.
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
re currently
under preparation and will be posted on the site ASAP. We'll make an
announcement on the lists once they are there.
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
l.txt file supplied with the
windows distribution of php.
Cheers
--
Phil Driscoll
--
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]
/usr/lib/apache/ and all that is there is libperl.so, where
is it, and how can I find it? Help!!, Please :o)
-
Phil Ewington
Cold Fusion Developer
-
T: 01344 643138
E: mailto:[EMAIL PROTECTED]
-
> -Original Mess
.pkg install
MySQL? Any idiot proof step by step instructions will be greatly
appreciated, along with which is the best/most stable version of PHP 4?, and
where is best to install it?
Thanks in advance,
Phil.
-----
Phil Ewington
Cold Fusion Developer
---
sounds like there is a problem in your code.
...or, if your platform is windows, php is not installed correctly or your
web server is not configured correctly - in which case the install.txt file
which comes with the windows distribution will help you out.
Cheers
--
Phil Driscoll
--
PHP Gen
ttings to get the software working.
--
Phil Driscoll
--
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]
re-structure the internal links within the pages.
>
> Might be time to write my own ...
Try httrack - think there are versions for multiple platforms. I've used the
windows version to great effect.
http://httrack.free.fr
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
What does everyone suggest I use as a search engine for my Intranet.
Out Intranet has grown to a size where a search engine is needed. I use PHP
on Linux and I also use MySQL as my database.
Any suggestions?
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Apparently I caused some agitation with my reply to Eric.
I want to be clear so that everyone knows.
I apologies for my reply and I will not be sending anymore OOAR to the list.
Once again, I apologize.
Phil Labonte
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
so, maybe it's just that you have not configured the web server to map
.php3 extensions. The installer defaults to only mapping .php although you
can explicitly enable the deprecated .php and .phtml extensions for backward
compatibility if you want.
Post again if that's not the proble
Does anyone know of a good listserv written in PHP?
Thanks!
-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
uot;
I even placed the dlls for all the extensions in:
- c:\programs\php
- c:\programs\extensions
- c:\windows\
- c:\windows\system
But ist doesn't work.
Thanks everybody!
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Hey everybody,
I'm trying to connect a mssql db, but cant't even load the extension for
mssql
Where do I get the file php_mssql70.dll (php4)?
Thanks everybody!
Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
the sensible behaviour) is to
pass the script name to the exe it calls.
Cheers
--
Phil Driscoll
--
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]
e will work or not. I never had this problem with Apache
> under win32, but I have with IIS. I would definitely leave them in there.
I'll have to strongly disagree with your disagreement ;)
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
php.exe (you don't need the
%s %s stuff).
If you do this to the master web site properties and tell it to override
other script map extensions then all your web sites will map onto php. If you
have different settings for each of the websites then you will have to
configure each one
Hey, I deleted the instruction mail... content was besides other topics how
I unsubscribe a mailing list...
Knows anybody the code?
--
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
Hey, I deleted the instruction mail... content was besides other topics how
I unsubscribe a mailing list...
Knows anybody the code?
--
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
On Tuesday 14 August 2001 19:23, Phil Driscoll wrote:
>as long as phpts.dll is in the same directory as the main php executable or
but should have written
as long as php4ts.dll is in the same directory as the main php executable or
Sorry!
--
Phil Driscoll
--
PHP General Mailing List (h
.
I think that working this way vastly reduces the chances of 'old' php files
messing up an installation.
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
> http://www.yorkshire-search.co.uk/links/add.php3
Right, I seem to have not made myself too clear so I'll try again.
Originally, the page "add.php3" was using a plain HTML template called
"add_form.html" which consisted of a simple form. If you click on the link
above and have a look at the pag
Usually when PHP brings other IIS services down it is because you are running
the ISAPI module version of PHP rather than the CGI. If this is the case, you
need to switch to using php.exe.
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
How can I directly put values into a form instead having to create hidden
fields and drag the data from them?
You can see what I mean at:
http://www.yorkshire-search.co.uk/links/add.php3
Would a javascipt function be any use to me?
--
PHP General Mailing List (http://www.php.net/)
To unsubs
ility, change
from IIS to Apache and run the Apache module version of PHP.
Cheers
--
Phil Driscoll
--
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]
ugh if you
installed php using the 'Installer' distribution, it will have configured PWS
correctly.
Sometimes, PWS seems to get itself into a strage state where you can't get it
to work no matter what you try. Some people have had success after
reinstalling PWS. Others just dump
script file does not exist then the server will return a 404
error instead.
There is also the additional benefit that IIS will do any authentication
required for you
based on the NTLanMan permissions on your script file.
--
Phil Driscoll
--
PHP General Mailing List (http://www.php.net/)
To
rs. The headers it did return are: "
>
>
> Why is this error happening ?
Read, and follow the instructions on this matter as documented towards the
end of the install.txt file which came with your distribution.
Cheers
--
Phil Driscoll
--
PHP General Mailing List (http://w
t into the add_form.html template and see if
it runs now. http://www.yorkshire-search.co.uk/links/add.php3
Oh dear boys and girls, it doesn't work and poor old Phil is starting to
cry.
I know, let's play a game and see if we can cheer him up by finding out why
the below code doesn't wo
What's the difference between echo and print?
I believed they were the same.
--
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]
Tried this and got parsing errors so " must be correct.
"Richard Baskett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does the manual actually say to use the tags ""? Or is it the
> normal tags of ""?
>
> > I run a small search engine and adding URL's is
What I've said.
I might just check out trying out as they aren't the brightest
bunch of individuals.
- Original Message -
From: "Richard Baskett" <[EMAIL PROTECTED]>
To: "Phil Latio" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: M
I run a small search engine and adding URL's is a bit of a pain so I thought
I would try to make it easier. Looking around I found a PHP function called
"get_meta_tags" which unsurprisingly, grabs the contents of varoius meta
tags. I just want the "description" contents so I first made a standalon
Hi everybody,
If I edit the php3.ini and activate a extension, I can see the effect with
the function phpinfo(). This works with all extensions, exept mssql.dll and
mssql70.dll. What am I doing wrong?? I dont think this is a general
problem!!
And, ladies and gentleman, I need help... thx!!
--
Nevermind, I figured it out. I needed to create image 2 with
ImageCreateTrueColor()
> -Original Message-
> From: Phil Spitler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 1:41 PM
> To: PHP
> Subject: [PHP] image help please
>
>
> Can anyone se
201 - 300 of 425 matches
Mail list logo