One way to do it is:
$NewString = ereg_replace('[[:space:]]+', ' ', $String);
There are also ways to do it with preg functions that are slightly
more efficient; see the pcre docs. And, the standard (AFAIK)
reference book for regular expressions is O'Reilly's 'Mastering
Regular Express
Hello,
"Richard Creech - Dreamriver.Com" wrote:
>
> Hello All,
> I want to grab several thousand email addresses from my subscriber list and email
>them. I wrote a script to do this. The addresses come from an online database. I have
>completely rewritten the script once, but still it gives me
$text = preg_replace('|\s+|',' ',$text);
-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:06 AM
To: PHP list
Subject: [PHP] Reg ex help-Removing extra blank spaces before HTML
output
I want to remove all superfluous blank spaces before I sent
I want to remove all superfluous blank spaces before I sent my HTML output, to make
the output smaller.
So I'd like to take $input, replace any number of blank space or newlines that are
consecutive and replace them with a single blank.
I.e. I will list a blank space as b and a newline as n:
On Tuesday 04 December 2001 02:35 pm, Martin Towell wrote:
> if it's just a plain text file then, in theory, you can insert a FF
> character (0x0C) but as mentioned, this might not work on all printers.
>
> if you're using html, try using:
>
> or put the style in some other tag if it doesn't work
Hello All,
I want to grab several thousand email addresses from my subscriber list and email
them. I wrote a script to do this. The addresses come from an online database. I have
completely rewritten the script once, but still it gives me email blues. The script in
general is very sluggish and
Hi,
Is this a bad thing to do have a class stored within another class?
I would also like to store an array of another class within a class.
It seems to work apart from the fact that I can't reference an array of
class directly.
ie
$test_array[0]->get();
This gives an error.
Example code.
-
I've found st. very interesting at http://www.netwindows.org - DOM/HTML
client-side environment for "windowing". Works with IE 5.5 & Mozilla
M.N.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
On Wed, 5 Dec 2001 15:54, René Fournier wrote:
> The migration continues...
>
> Now I have to get my mysql database running under MySQL 3.23.46 on OSX
> 10.1.1. I've dumped the structure and contents of the database (on
> Windows) into a text file, and now I'd like to recreate it in the new
> eni
The migration continues...
Now I have to get my mysql database running under MySQL 3.23.46 on OSX
10.1.1. I've dumped the structure and contents of the database (on
Windows) into a text file, and now I'd like to recreate it in the new
enivronment. I think I can use the mysql admin tools via co
I concur
Probably this will work
$result = mysql_query("UPDATE table SET value1='$value1',value2='$value2'
WHERE id=$id");
remember integers id=1 are not strings id='1'; not the same!
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: December 5, 2001 11:37 AM
T
PUBLI/ENSEÑANZA
Learning
University
What error are you getting, exactly?
MySQL is not case-sensitive with regards to commands, but it is
case-sensitive for table names, column names, etc. Make sure that the
table names are exactly exact ;-) including cases, etc.
You might double-check the values in the variables: do they contai
You can always see more at www.hotscripts.com/PHP
But here's one from a friend, people seem to like it:
http://www.uebimiau.sili.com.br
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishli
Hi list,
Anyone got or know scripts to give free email accounts? I work in ISP and am thinking
about giving free emails to people.
Thanks a lot in advance.
NOBBY
are any of the fields of type number/integer/etc? if so, try removing the
quotes for that field.
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:36 PM
To: Greg Sidelinger; [EMAIL PROTECTED]
Subject: Re: [PHP] mysql update query
Ever
On Wed, 5 Dec 2001 13:57, Greg Sidelinger wrote:
> I'm having trouble getting an update query to work
>
> Here is what I'm doing
>
> $result = mysql_query("update table set value1='$value1',
> value2='$value2' where id='$id'");
>
> It is not updating the database. All the $vars have values and I
Everything looks good to me...try this:
$result = mysql_query("UPDATE table SET value1='$value1',value2='$value2'
WHERE id='$id'");
Although I doubt MySQL cares if certain words are capitalized.
Good luck though,
Tyler Longren
- Original Message -
From: "Greg Sidelinger" <[EMAIL PROTECT
I'm having trouble getting an update query to work
Here is what I'm doing
$result = mysql_query("update table set value1='$value1',
value2='$value2' where id='$id'");
It is not updating the database. All the $vars have values and I'm
using the correct columns names. Could someone please po
As seen on NBC, CBS, CNN, and even Oprah! The health
discovery that actually reverses aging while burning fat,
without dieting or exercise! This proven discovery has even
been reported on by the New England Journal of Medicine.
Forget aging and dieting forever! And it's Guaranteed!
Click
"Dan McCullough" <[EMAIL PROTECTED]> wrote:
> Question. I am trying to check to see if a certain piece of code should
be run. Here is an
> example.
> if ($type != "add") || ($type != "edit") || ($type != "delete") {//if this
or this or this then
> then run this code
As pointed out, your paranth
In a revised scheme for a customer I'm doing # 3.
User can come into any page, a bit of PHP at the top does this:
starts session
registers "origin"
assigns PHP_SELF to $origin
checks to see if another session var is set and directs to logon page if not
if( !session_is_registered( "member_id"
now change || to && and see if that does the job
-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 12:57 PM
To: PHP General List
Cc: Richard S. Crawford
Subject: Re: [PHP] Logic
that didnt work,i started off with
if ($type != "add") {
that didnt work,i started off with
if ($type != "add") {
that works
} else {
this works
}
I have done this before I'm just having a brain cramp.
if (($type != "add") || ($type != "edit") || ($type != "delete")) {
print $subcat_output;
} else {
print "Back to List of Subcategories";
}
---
You need parentheses around the entire antecedent:
if (($type !="add") || ($type !="edit") || ($type !="delete")) { //etc
^--- Note these parentheses---^
Hope that helps.
At 05:28 PM 12/4/2001, Dan McCullough wrote:
>Question. I am trying to check to see if a
HomeSite is up to version 5. I use it primarily for the built-in FTP
client, which makes website maintenance very, very easy.
At 05:06 PM 12/4/2001, you wrote:
>EditPlus2, there might be a newer version, trial never runs out.
>HomeSite 4.5, there is a Macromedia version, 60 day trial, very ver
Question. I am trying to check to see if a certain piece of code should be run. Here
is an
example.
if ($type != "add") || ($type != "edit") || ($type != "delete") {//if this or this or
this then
then run this code
} else {
then run this
}
Is this correct, for some reason this isn't working
Okay, you brought it up ! ;-)
EMACS.
If you use Unix, then this is your supersuite. This is your Microsoft
Office for plaintext editors.
Pros:
Easier to learn than vi
Many man many many many features
Supercustomizeable
Integrates tightly with Unix operating system
Cons:
A little on the bloa
EditPlus2, there might be a newer version, trial never runs out.
HomeSite 4.5, there is a Macromedia version, 60 day trial, very very worthwhile for a
purchase.
--- Andrew Forgue <[EMAIL PROTECTED]> wrote:
> On Tue, 2001-12-04 at 05:25, shaun murphy wrote:
> > Hello!
> >
> > Being one not to re
On Tue, 2001-12-04 at 05:25, shaun murphy wrote:
> Hello!
>
> Being one not to refuse a challenge, I have been asked to administer and
> update a PHP based website. I was wondering what a good editor is for such a
> task. I have been having a look at Dreamweaver as I use that quite a lot but
> ar
Your form returns the date as an empty string "" which is an invalid date.
MySQL sets all invalid dates to -00-00. There is a big difference
between an empty string and NULL. If you want to insert NULL into the MySQL
date field you will need to insert "/0" which is the escape sequence for
NU
On Wed, 5 Dec 2001 09:01, [EMAIL PROTECTED] wrote:
> I have added a new column in an existing MYSQL table called
> "event_date" - type: DATE, NULL default.
>
> This database field will be filled if and when the field in the HTML
> form is complete. When I added the new field to MySQL, it
> aut
On Wed, 5 Dec 2001 04:52, Brian C. Doyle wrote:
> Okay so i got rid of the echo and still no go..
>
> I am using version 4.0.6
>
> At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote:
> >phpinfo() is a function itself. It needn't echo:
> > >phpinfo();
> >?>
> >
> >Zliy Pes, http://www.zliype
It would be difficult at best to answer your question without first knowing
two things:
1. What did you expect it to do?
2. What did it actually do?
Fred
Stefan Isarie <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey,
>
> I'm trying to use CURL for sendi
Try PhpAdsNew - it uses a MySQL backend:
http://sourceforge.net/projects/phpadsnew/
It may not be what you're looking for if your site gets *extreme* amounts of traffic,
but otherwise it's quite capable. (And free. :) )
-Andy
> -Original Message-
> From: Ali [mailto:[EMAIL PROTECTED]]
I'm not at all familiar with IIS, but in Apache terms it sounds like a MIME
type problem; the server doesn't know what to do with .PHP files, so it
assumes they're something that should be sent as a download/attachment
instead of parsing with PHP and sending as HTML - I would imagine there
would b
You could just rename the column in the db.
Putting quotes around Note is not the solution because the quotes are
causing the invalid name error. I don't see that Note is a reserved
word anywhere.
Access is quite picky about what data you send it. For instance, if a
field is set to require so
Note to Kurt Lieber: Stop whining about topics that have been discussed
already. If this topic has been up before, just don't open it eh?
Anyways:
I have a register with lots of names in it, names which in some cases
contain characters that can not be found in the ordinary english aphabet.
Norweg
On Tuesday 04 December 2001 23:25, Jim wrote:
> I've searched high and low for _good_ PHP/MSACCESS info, but the fact
> is not that many people use it.
I know. It's not my choice, believe me.. :-((
> What I've found very helpful is to use MS ACCESS' SQL builder to test
> out my queries. Fair
Hey,
I'm trying to use CURL for sending some headers to paypal. Can anyone tell
me why this code below doesn't work as expected???
$ch = curl_init();
curl_setopt($ch,
CURLOPT_URL,"https://www.paypal.com/cgi-bin/webscr";);
curl_setopt($ch, CURLOPT_POST, 1);
curl
if it's just a plain text file then, in theory, you can insert a FF
character (0x0C) but as mentioned, this might not work on all printers.
if you're using html, try using:
or put the style in some other tag if it doesn't work for
there's also "page-break-after: always;" that you could use...
I have added a new column in an existing MYSQL table called "event_date" -
type: DATE, NULL default.
This database field will be filled if and when the field in the HTML form is
complete. When I added the new field to MySQL, it automatically assigned
NULL to all the existing records - which is
I've searched high and low for _good_ PHP/MSACCESS info, but the fact
is not that many people use it.
What I've found very helpful is to use MS ACCESS' SQL builder to test
out my queries. Fairly reliably, if it works there, it'll work in PHP.
Jim
>On Tuesday 04 December 2001 22:47, Andrew
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Php Geko wrote:
>
> > I am trying to set some sessions variables in an https (SSL):
> > session_start();
> > ...
> > $row = $results[0];
> > session_register("myses");
> > if(session_is_registered("
On Tuesday 04 December 2001 22:47, Andrew Hill wrote:
> mweb,
>
> Just a guess - is Note a reserved word? you might want to quote/escape it.
Excellent idea. Actually, putting Note between double quotes gives:
INSERT INTO Red (ID, Nome, Nickname, Username, password, pict, "Note",
admin, playlist
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> Shaun Murphy wrote:
>
> > me again. I am going to set up a vbulletin site and I understand it uses
> > php along with mysql. I can get php and postgres hosting so I was
> > wondering what the differences are in postgres as opposed to mys
> Being one not to refuse a challenge, I have been asked to administer and
> update a PHP based website. I was wondering what a good editor is for such a
> task. I have been having a look at Dreamweaver as I use that quite a lot but
> are there any extensions I should be using?
>
If you don't wa
Since you have GD and libjpeg installed now, you can perform
transformations from the shell and hence, from php through the exec()
command. Such as ...
exec("djpeg -scale 1/8 test.jpg | cjpeg -outfile test_thumb.jpg");
Here's a link to the man page for djpeg and cjpeg...
http://nodevice.com/
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Eddie,
>
> There are some good books to get you started running - literally - with PHP
> and a database (usually MySQL).
> I would recommend PHP Fast and Easy (blue cover with red writing). Each
> chapter focuses on a given task... buil
Shaun Murphy wrote:
> me again. I am going to set up a vbulletin site and I understand it uses
> php along with mysql. I can get php and postgres hosting so I was
> wondering what the differences are in postgres as opposed to mysql.
>
> are they different enough to cause any problems?
No, yes,
Mweb wrote:
> Hello,
>
> still fighting to drive MS access from PHP, I have come into an error when
> I feed odbc_exec with this statement (db connection is fine now):
>
> INSERT INTO Redazione (ID, Name, Nickname, Username, password, From, Note,
> amministratore, playlist, email,
> role, web)
mweb,
Just a guess - is Note a reserved word? you might want to quote/escape it.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers
> -Original Message-
> From: mweb [ma
> I'd like to count the number of rows in a 2 dimensional array that have
> the same data in their fifth field. Is there a PHP function that does
> this? Sizeof() appears to lack condition parameters...
You'll probably have to walk the array.
I don't suppose this data is coming from a database?
Hello,
still fighting to drive MS access from PHP, I have come into an error when I
feed odbc_exec with this statement (db connection is fine now):
INSERT INTO Redazione (ID, Name, Nickname, Username, password, From, Note,
amministratore, playlist, email,
role, web) VALUES (NULL , "me", "webmi
> How could i get rid of the white space and show the picture exactly same
> size as the window, so it would be perfect fit. What else do I miss in the
> codes to make the perfect fit size?
Use the BODY tag and attributes like HORIZONTAL_PADDING or somesuch.
There's a bunch of them, you need th
>> any one here can help my problem?
Eventually.
>> (I 'am using hypermart.net hosting, so i am not sure which
>> php version that they
>> provided)
will tell you the version number, and a bazillion more things or varying
importance.
>> $sqlshow = "SELECT * FROM $table ORDER BY id DESC LIMI
The algorithm for imagecopyresized() that comes with PHP isn't very
good. Read up on it in the user comments here:
http://www.php.net/manual/en/function.imagecopyresized.php
There, a user has supplied a better function...
>Hi,
>
>after getting gd to work (thanx folks!) I am having some probs
> The PHP manual says it will release any acquired semaphores if they are
> not released before the end of the script processing, but this is NOT
> happening as it should. Any reasons why? Is this a known bug? Has anyone
> else experienced this?
Show us source code.
Check at http://bugs.php.net/
Hi,
after getting gd to work (thanx folks!) I am having some probs with the
commands.
The simple resize of a jpeg cant be that hard?!
I have a 600x400 px jpeg and want to make a 80 x 60 out of it.
Do I have to use imagecopyresized? And how. The result looks bad right now.
Thanx,
Andy
--
Hi,
I was having some problems with my PHP files (the first 3 HTML lines
missing and Netscape trying to save the page to disk instead of showing it).
So, I telnet'd my web server and manually issued a GET as follows:
GET /anglers/index.php HTTP/1.1
And this was the response:
HTTP/1.0 200 OK
Markmi6 wrote:
> And I've just read the tutorial on webmonkey.com on php and now I'm
> hooked,
> where can I get more stuff like that on webmonkey? Or would I be better
> off buying a book on php and if so which do you recommend?
>
> --
> "It's not the job I enjoy, it's the people I run into" -
Php Geko wrote:
> I am trying to set some sessions variables in an https (SSL):
> session_start();
> ...
> $row = $results[0];
> session_register("myses");
> if(session_is_registered("myses")){
>
$myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=>
> $row["password"]);
>
Andy wrote:
> HI there,
>
> I am trying to get gdlibrary to work.
>
> The .dll on windows are in the extension directory and the comment tags in
> the php.ini are deletet.
>
> I always get the error message, that the file
> c:/PHP_404/extensions/php_gd.dll
> cant be found. But it is there!
>
Brian Duke wrote:
> Is it possible to use the zlib functions in php to compress data, send
> that data to the browser, then uncompress it? My clients will only be
> using IE so is there something in IE that will do it? Javascript?
>
> Thanks,
> Brian
> - Brian
>
> (Be sure to remove the # symbo
Kris Wilkinson wrote:
> Just recently I've noticed an issue with setcookie. My scripts which
> normall ran :
>
> setcookie ("myCookie","Blah","time()+7201");
>
> Are killing the cookie immediately after you close the browser window, or
> access another https:// site. It appears as though the li
Is it possible to use the zlib functions in php to compress data, send
that data to the browser, then uncompress it? My clients will only be
using IE so is there something in IE that will do it? Javascript?
Thanks,
Brian
- Brian
(Be sure to remove the # symbol before replying to my email address
I'd suggest Homesite:
http://www.macromedia.com/software/homesite/
-Original Message-
From: shaun murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP newbie alert
Hello!
Being one not to refuse a challenge, I have been ask
Probably, unfortunately I'm working with PHP 3.x
and don't have a choice about it so I do not have
"foreach".
> -Original Message-
> From: Steve Cayford [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 12:37 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Fwd: [
Hello,
Chip wrote:
>
> On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote:
> > I wish to take some information out of a database and create a text
> > file with the information, nicely formatted. Does any one know of an
> > escape sequence that works as a "new page" indicator for pr
HI there,
I am trying to get gdlibrary to work.
The .dll on windows are in the extension directory and the comment tags in
the php.ini are deletet.
I always get the error message, that the file
c:/PHP_404/extensions/php_gd.dll
cant be found. But it is there!
Here is the line out of the php.ini
Only the old session vars show up when I do print_r($HTTP_SESSION_VARS);
In the unsecure http I already registered a session var called $newses. when
I go to the secure part I use the same sessionid -> session_id($sid);
where $sid was part of the url
https://domain.com/gotosecure.php?sid=$PHPSESI
If you have this select statement:
$Query = "SELECT First, Second, Third FROM Table1";
and you execute the statement like this:
$Result = mysql_query($Query);
and retrieve a row like this:
$Row = mysql_fetch_assoc($Result);
then extract the row like this:
extract ($Row);
you end up with these vari
$HTTP_SESSION_VARS shows you this. I don't remember precisely if or where it
appears on phpinfo();, but you can try this to see all registered session
variables:
That's a nice way to see any array, BTW. Including $HTTP_SERVER_VARS,
$HTTP_POST_VARS, GET, etc... nice one.
--
Julio Nobrega
Hi Jim, I included a phpinfo in my script, where can I see the values of
them? (in PHPINFO)
Luc
"Jim" <[EMAIL PROTECTED]> wrote in message
news:p05101026b832d339af13@[192.168.1.17]...
>
> Unless you have an unstated purpose for serializing/unserializing,
> it's not necessary because PHP automat
For a split this simple, I'd recommend using explode("|", $data). split()
uses a regex for the first character (and as others have said, the pipe is
a metacharacter in a regex, so you'll need to use "\|" instead of "|"),
whereas explode() is simply literal. explode() will probably be slightly
Unless you have an unstated purpose for serializing/unserializing,
it's not necessary because PHP automatically serializes and
unserializes your session variables.
Can you see the correct values if you insert the phpinfo() command?
If you can that should give you a clue as to how to reference
Someone came with a very clever solution to simplify the extraction of
all
fields when doing aselect * from table
it's a command that passes all values from the fields on the table to
variables
of the same name than the field on that table. No need to program it
manually,
creates all variabl
To close the window when the user clicks on the hiperlink type in your HTML tag
for Body
This will close the present window when the user clicks on the hiperlink.
When you close the present window, you need to open a new window (or an existing
one) where you will display the new page.
Alfr
I'd recommend urlencoding those variables if you're going to do it that
way, otherwise you may get some non-sense characters resulting in a bad URL.
J
Jim wrote:
>
> There are many different ways to do this ...
>
> 1. Have the same PHP script that validates generate the login page.
> This
On Tuesday 04 December 2001 12:30 am, Manuel Lemos wrote:
> Hello,
>
> Chip wrote:
> > On Monday 03 December 2001 11:02 pm, Robert Samuel White wrote:
> > > I wish to take some information out of a database and create a text
> > > file with the information, nicely formatted. Does any one know of
I do this ...
$query = mysql_query("SELECT * FROM foo");
$data = mysql_fetch_assoc($query);
extract($data);
if you need all the rows from the query, do ...
$query = mysql_query("SELECT * FROM foo");
while($data = mysql_fetch_assoc($query) {
extract($data);
}
Jim
>Someone came with
I am trying to set some sessions variables in an https (SSL):
session_start();
...
$row = $results[0];
session_register("myses");
if(session_is_registered("myses")){
$myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=>
$row["password"]);
$myses=serialize($myses);
}
the to
that would be extract() -- http://www.php.net/extract
On Tue, Dec 04, 2001 at 01:09:27PM -0700, Baloo :0) wrote:
> Someone came with a very clever solution to simplify the extraction of all
> fields when doing aselect * from table
>
> it's a command that passes all values from the fields on
Someone came with a very clever solution to simplify the extraction of all
fields when doing aselect * from table
it's a command that passes all values from the fields on the table to variables
of the same name than the field on that table. No need to program it manually,
creates all variabl
I strongly reccomend the book called PHP Essentials by Julie C Meloni
It's written very simple and at the same time you learn quite good level of PHP
Alfredo
Markmi6 wrote:
> And I've just read the tutorial on webmonkey.com on php and now I'm hooked,
> where can I get more stuff like that on w
It has been my idea to make a function, and pass the fields, then register a global
feedback var
and then check one by one each required field, or what ever you are trying to verify
in the
fields.
function formCheck ($username,$password,$smellycat) {
global $feedback, $username, $password;
if
And I've just read the tutorial on webmonkey.com on php and now I'm hooked,
where can I get more stuff like that on webmonkey? Or would I be better off
buying a book on php and if so which do you recommend?
--
"It's not the job I enjoy, it's the people I run into" - Bus Driver.
-
www.gamerse
Try to specify absolute path to the jpeg - possible php do not look up for
jpeg in current folder...
(or use './image.jpg')
Zliy Pes, http://zliypes.com.ua
- Original Message -
From: "Miguel Loureiro" <[EMAIL PROTECTED]>
To: "php-gen" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001
My approach has been to pass an "error code" back to the original form.
form.php:
");
print("a buncha form crap");
if ($errcode==1) print ("Your user id is wrong. You suck");
if ($errcode==2) print ("Your password is wrong. You really suck");
print("
Then in
Hello all,
I still having problem when use jpeg functions...
I got: " testout.jpg is not a valid JPEG file in .." , with follow
code:
Header("Content-type: image/jpeg");
$img=ImageCreateFromJPEG("testout.jpg");
ImageJPEG($img,"a.jpg");
ImageDestroy($img);
testout.jpg was one image created b
That's true, but you could use PHP and the MySQL data to generate the
JavaScript arrays for the dynamic menus... you can escape into PHP within
the
Okay so i got rid of the echo and still no go..
I am using version 4.0.6
At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote:
>phpinfo() is a function itself. It needn't echo:
>phpinfo();
>?>
>
>Zliy Pes, http://www.zliypes.com.ua
>- Original Message -
>From: "Brian C. Doyle" <[EMAI
I cheat and just include the original form on error ...
Almost all my input values are set to PHP variables in the form. The 1st
time through none are set, so the values are blank. After submitting the
form, I check for validity. If there are errors I mark the errors, generate
an error string, an
phpinfo() is a function itself. It needn't echo:
Zliy Pes, http://www.zliypes.com.ua
- Original Message -
From: "Brian C. Doyle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:07 PM
Subject: [PHP] phpinfo() returning Zero Sized Reply
> hello all,
>
> I h
Eddie,
There are some good books to get you started running - literally - with PHP
and a database (usually MySQL).
I would recommend PHP Fast and Easy (blue cover with red writing). Each
chapter focuses on a given task... building tables, then adding to table,
then selecting from a table and - of
hello all,
I have a script with
and getting Zero Sized Reply
i have increased my timeout in php.ini and no change.
--
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
Dear Fellow Entrepreneur,
Are you achieving the results that you are trying to achieve with your
online
business?
If your current business is offering a product that is a quick and simple
solution to a problem that concerns most people, most of the time,
then you would be very happy, and wea
Set the form receiver to $PHP_SELF. When data is posted (use $HTPP_POST_VARS
to check if is) check it for correctness. If everything is ok, use
Header("Location: work_for_authorized.php") otherwise show the current (i.e.
login page) with $user, $pass available...
Zliy PEs, http://www.zliypes.com.
There are many different ways to do this ...
1. Have the same PHP script that validates generate the login page.
This way the script always has the correct data and you don't need to
pass anything.
2. Header("Location: login.php?err=$err&user=$user&pass=$pass");
This will work, but the bad pa
You should really try to do it and see if it's possible, before asking on
the mailing list... mainly because you will be satisfied with the results...
--
Julio Nobrega
Don't eat the yellow snow.
"Lee Philip Reilly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTE
1 - 100 of 177 matches
Mail list logo