Thanks - I'll try to add these checks.
Life would be so much easier if it weren't for the users :-)
Michael Egan
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 14:38
To: Michael Egan; PHP General (E-mail)
Subject: RE: [PHP] Checking for existing
[snip]
When saving records to a table I generally do a fairly standard check to
ensure that there is not already a record of the same name. I even put
a big warning message on the page asking users to check to ensure that a
record of a particular name doesn't already exist before they create a
new
Hello all,
I'm looking for the sort of programming inspiration I suspect I won't find in manuals
- I have checked the web first!
When saving records to a table I generally do a fairly standard check to ensure that
there is not already a record of the same name. I even put a big warning message
Simply trying to use regular expressions to validate a 5 or 5+4 zip code,
excluding 0 and 0-. Looked on http://www.regexlib.com, and
that's where I found the pattern below, but it doesn't work. The best I can
do on my own is two separate regular expressions, one to match a valid zi
On Mon, 02 Jun 2003 02:38:51 -0400, Gerard Samuel wrote:
>For the life of me, according to the output of ethereal (a network
>sniffer), this file is always fetched from the server.
Have you looked at what is actually coming out in the headers? If not,
grab a copy of Sam Spade for windows (http:
can you send it to my address... I mean the whole package...
"Chris Prior" <[EMAIL PROTECTED]>, iletide þunu yazdý
news:[EMAIL PROTECTED]
> ive read the read me file a hundred times ive done everything its says
there
> thankyou for the help
>
> "Ferhat Bingol" <[EMAIL PROTECTED]> wrote in message
php-general Digest 2 Jun 2003 13:07:18 - Issue 2093
Topics (messages 149745 through 149787):
can't connect to mysql
149745 by: Chin Hui
149767 by: Jason Wong
Re: UBB to HTML
149746 by: Manuel Lemos
Re: Strange Behaviour of cookies
149747 by: Jaap van Ganswij
ive read the read me file a hundred times ive done everything its says there
thankyou for the help
"Ferhat Bingol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> pear looks like already installed ...
>
> your include diretory is mentined in the error message soput the necassary
> fi
pear looks like already installed ...
your include diretory is mentined in the error message soput the necassary
files there..
I think your answer MUST be in the README or INSTALL documentation.
I mean they cannot let a package out without tellin people which files will
be located where. There M
i havent got a pear for a common space im using a virtual host , can i get
pear and install it ? if so were can i get it from ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP Manual has good section on cookie... have you tried the manual?
good luck
awlad
- Original Message -
From: "Ryan A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 1:56 PM
Subject: [PHP] Cookies - recomendation please
> Hi everyone,
> Some time back I had no i
Hi everyone,
Some time back I had no idea about sessions and I asked this list to give me
a few links on the web where i can learn about them, thanks to you guys I
understand sessions and use them without any problem.
Now I have the same problem with cookies, I of course first went to our
friend
The value isn't available until the next page and you should register
with
$_SESSION["name"]=$_POST["name"];
HTH
Ade
www.phpscriptsearch.com
-Original Message-
From: Aris Santillan [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 11:55
To: Php (E-mail)
Subject: [PHP] session
hi
this co
hi
this code
cant print the value
Taking into account your earlier post:
$string = '';
foreach ( array_keys($_POST) as $var ) {
if ( !is_empty($_POST[$var]) ) {
string .= $var.' ';
}
}
trim($string);
On Monday 02 June 2003 03:22 am, Shaun wrote:
> Hi,
>
> I have many textfields on my page. How c
www.php.net/flush
Roland Welker wrote:
Hi,
I am a bit of a newby in php, so I hope the group my forgive me, if I ask a
question answered before.
The presumtion: php is first evaluating the complete script, before sending
anything back to the browser.
The situation: I have got a script, which ret
Hi,
> Is it possible, to send the elements, so far outputed, to the browser, and
> use that as keep alive, i.e. give the user already something to see:-)
> And, of course, do that regular, out of my data retrieval loop.
http://www.php.net/ob_implicit_flush is your friend.
HTH, Axel.
Hi,
I am a bit of a newby in php, so I hope the group my forgive me, if I ask a
question answered before.
The presumtion: php is first evaluating the complete script, before sending
anything back to the browser.
The situation: I have got a script, which retrieves data very slowly, and
causes the
Hi,
I have many textfields on my page. How can I add to a string the name of a
textfield that ends in the same number as another textfield i.e. 5?
Thanks for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this works too:
$message =
$_POST['first_name']." ".$_POST['last_name']."\n".
$_POST['address']."\n".
$_POST['city']." ".$_POST['state']." "$_POST['zip']."\n".
$_POST['country']."\n".
$_POST['email']."\n".
$_POST['design']."\n".
$_POST['comments'];
"Zbranigan" <[EMAIL PROTECTED]> schrieb i
take a look at the $_POST array (or $_REQUEST). they contain all submitted
values.
if there are still empty fields, try foreach() and !empty().
"Shaun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> I have a page with 78 textfields on, is there a way of picking out th
Daniel,
What about using IP Logging? If the user is already logged in with the same
IP you can let them on, if its a new IP you could ask them if they are a
returning user? If so, make them log in a second time for verification, and
close the other logged in user/account.
Make some fancy "It appea
thats what i was thinking of logic but i may be having about 10 users logged
in doing full text searching on a 200 meg + database will that affect it ?
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 11:21 AM
To: [EMAIL PROTECTED]; [EMAIL PROTEC
On 02-Jun-2003 Ralph wrote:
> I'm querying a database then printing the results in a . What I
> want to do is format the results in a with 4 columns per row.
> Any suggestions?
>
> Thanks.
>
$modulo=4;
unset($a);
echo "\n";
while($row = $r->FetchRow()) {
if (count($a)
Hi All,
I have a little question, i would like to load up a array with the file
list of a virtual directory...
example http://my_server/my_directory
I have seen the scandir function and it looks great, but i would prefer load
the thing using the virtual directory not the real directory
Is the
Hi,
I have a page with 78 textfields on, is there a way of picking out the field
names and values that the user has filled in as they are very unlikey to be
filling in all of them?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi,
How can I find out the resources consumption (memory waste) of a script?
Thanks,
Armand
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 02 June 2003 09:15, Chin Hui wrote:
> i'm a newbie in php and mysql. i've just installed mysql 4.0.13 with a
> .tar.gz file. PHP 4.2.2 comes along with my redhat 9 installation.
> I can't seem to connect to mysql with any php scripts. I've noticed a
> package named php-mysql. I've tr
On Monday 02 June 2003 14:19, Greg Beaver wrote:
> I'm trying to get an installation of PHP 4.3.2 with Apache 1.3.27
> (SAPI), and mysql/zlib/xml-rpc support working with redhat 9's standard
> MySQL distribution 3.23.56-1.9
>
> I have successfully compiled Apache and PHP so that normal programs wo
On Monday 02 June 2003 14:32, Petre Agenbag wrote:
> I'm investigating different possibilities to generate printable and
> read-only documents, and the "best" method seems to be generating PDF's,
> however, I have NO experience with working with PDF's, and the examples
> in the manual only list a
On 02-Jun-2003 Gerard Samuel wrote:
> Searching through the archives, most people are running away from
> caching php scripts.
> Im trying to do the opposite.
> I have a script that fetches css files. Im trying to add header() calls
> to it so
> that browsers can cache it like a normal css file
probably something like:
echo "";
$rs=mysql_query("select * from blabla;",$conn);
while($row=mysql_fetch_row($rs)) {
echo "";
echo "".$row[0]."";
echo "".$row[1]."";
echo "".$row[2]."";
echo "".$row[3]."";
echo "";
}
echo "";
R> I'm querying a database then printing the result
I'm querying a database then printing the results in a . What I
want to do is format the results in a with 4 columns per row.
Any suggestions?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2 Jun 2003, Øystein Håland wrote:
> What's the difference (and what's correct)?
> With the use of error_reporting = E_ALL in php.ini I get an error as
> mentioned above. In the code I use $_SERVER[PHP_SELF]. Changing this to
> $_SERVER['PHP_SELF'] report no error but with error_reporting
You can always store the file and every so often regenerate it, and if the
regernation hasn't timed out jsut passtrhu the cache.
On June 2, 2003 02:38 am, Gerard Samuel wrote:
> Searching through the archives, most people are running away from
> caching php scripts.
> Im trying to do the opposite
Searching through the archives, most people are running away from
caching php scripts.
Im trying to do the opposite.
I have a script that fetches css files. Im trying to add header() calls
to it so
that browsers can cache it like a normal css file.
This is what I have at the top of the file ->
-
Hi List
I'm investigating different possibilities to generate printable and
read-only documents, and the "best" method seems to be generating PDF's,
however, I have NO experience with working with PDF's, and the examples
in the manual only list a simple "one-liner" text pdf.
Where can I find more
Hi Greg,
Make sure mysql is running.
Regards,
Tariq
Greg Beaver wrote:
Hi,
I'm trying to get an installation of PHP 4.3.2 with Apache 1.3.27
(SAPI), and mysql/zlib/xml-rpc support working with redhat 9's
standard MySQL distribution 3.23.56-1.9
I have successfully compiled Apache and PHP so
Hi,
I'm trying to get an installation of PHP 4.3.2 with Apache 1.3.27
(SAPI), and mysql/zlib/xml-rpc support working with redhat 9's standard
MySQL distribution 3.23.56-1.9
I have successfully compiled Apache and PHP so that normal programs work
in both cases. However, I get an error when I u
PEAR is a module for PHP, it is a common space. If you put a file there you
can include it any file you want by just given the command
include("file.php") in any file...
you have to put the password.inc.php file to your php "include" directory
otherwise it does not matter if you edit the config fi
What's the difference (and what's correct)?
With the use of error_reporting = E_ALL in php.ini I get an error as
mentioned above. In the code I use $_SERVER[PHP_SELF]. Changing this to
$_SERVER['PHP_SELF'] report no error but with error_reporting = E_ALL &
~E_NOTICE anything goes.
(Apache/2.0.46
Sure, all the imap_* functions in PHP also work for POP3. Read through
http://php.net/imap
On Sun, 1 Jun 2003, Erich Kolb wrote:
> I am somwhat aware of the ability to access email using php and IMAP, but is
> it at all possible to download email via pop3?
>
>
>
> --
> PHP General Mailing List (
If you are not running PHP under a Windows platform and can compile
extensions into PHP the most efficient way to solve problem #2 may be with a
PHP extension I developed. It handles constants and provides a type of
persistent variable too. It has been immensely useful for my projects.
http://pwee
I am somwhat aware of the ability to access email using php and IMAP, but is
it at all possible to download email via pop3?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
off the top of my head...
have a column in your user table called "last_active"... it should hold a
date-time, or a unix timestamp, or something like that.
on each page request by a logged in user, you would update that value with a
newer stamp
on physical logout, you would set that to zero or n
Hi,
I am having some issues with PHP's IMAP support and was
hoping that a kind soul on this list would point me in the right
direction.
First of all, I am confused how PHP provides IMAP support.
Is '--with-cyrus' supposed to complement the functionality provided
by the c-client? or is it a comp
> As I said, since I was recursing through the function by calling it numerous
> times in the middle of its execution, and since the function didn't
> explicitly return, I didn't expect it to continue past each call. That's
> all!
Sounds like you're coming in from CoBOL or maybe BASIC?
--
PHP
At 2003-06-02 01:49 +0500, Haseeb Iqbal wrote:
>when ever i set a cookie it didn't get set even i refresh the page (with php header
>function) but then i echo something on the page and then use HTML meta refresh the
>cookie becomes availble on the next page.
>what is it that i am missing here.
I
Hello,
On 06/01/2003 10:05 PM, Zavaboy wrote:
How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want
to know how to turn the HTML back to UBB?
This class seems to do exactly what you want.
Class: UBBCode
http://www.phpclasses.org/ubb
--
Regards,
Manuel Lemos
Free ready to use
hi,
i'm a newbie in php and mysql. i've just installed mysql 4.0.13 with a
.tar.gz file. PHP 4.2.2 comes along with my redhat 9 installation.
I can't seem to connect to mysql with any php scripts. I've noticed a
package named php-mysql. I've tried to install, but it has a dependency
on mysq
php-general Digest 2 Jun 2003 01:05:23 - Issue 2092
Topics (messages 149726 through 149744):
Re: cheap PHP+SQL WebHosting
149726 by: Saint Urho
149727 by: Ryan A
149728 by: Brian V Bonini
149729 by: Ryan A
Re: String Manipulation
149730 by: Don Read
How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want
to know how to turn the HTML back to UBB?
- Zavaboy
[EMAIL PROTECTED]
www.zavaboy.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> "Steven" == Steven Farrier <[EMAIL PROTECTED]> writes:
Steven> I have tried using $_POST array variables in the following
Steven> ways $message = "($_POST['first_name'])
Steven> ($_POST['last_name'])\n($_POST['address'])\n($_POST['city'])
Steven> ($_POST['state'])
Steven>
im having problems with the script to include the password.inc.php file can
anyone help ?
these are the error's
Warning: Failed opening
'..//home/httpd/vhosts/abbytech.co.uk/httpdocs/auction/includes/passwd.inc.p
hp' for inclusion (include_path='.:/usr/share/pear') in
/home/httpd/vhosts/abbytech
Thanks for the guidance guys...
Going on the idea that it was indeed a problem with script, arrays,
etc., I found a few things. The display was well over 9000 characters
before it failed, so that 8k max thing was unlikely in this case. But
it seems to have been fixed by other things done. Th
if you have been making a search and press enter it will goto google and
not return any results, i found making the search and pressing the arrow
stayed on your mirror , hope this helps
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok so i worked out the connection_status and connection_abort will only
work if the script is actually running and a request to the server , so i
wont be able to tell if someone had closed the browser or not , what i'd
like to know is , how can i tell if a user has not accessed the script for
a cer
i have dont that , but still it wont work ive trebble checked the config
file , its also showing a parse error what is that ?
"Ferhat Bingol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> you did not edit the config file. PHP script is trying to connect to
> database with user "apac
you did not edit the config file. PHP script is trying to connect to
database with user "apache" (which is default for the server) and since
there is also no password it does not work.
you must enter
USRNAME
PASSWORD
DATABASE NAME
to the config file.
Read the README or INSTALL file.
"Chris Prio
You should read this section of the manual:
http://us2.php.net/manual/en/language.types.string.php
Scroll down the the "Variable parsing" title and read from there and all
will be clear.
-Rasmus
On Sun, 1 Jun 2003, Steven Farrier wrote:
> I have tried using $_POST array variables in the follow
I have tried using $_POST array variables in the following ways
$message = "($_POST['first_name'])
($_POST['last_name'])\n($_POST['address'])\n($_POST['city'])
($_POST['state'])
($_POST['zip'])\n($_POST['country'])\n($_POST['email'])\n($_POST['design'])\
n($_POST['comments'])";
$message = "$_P
im having problems installing phpauction 2.1 i keep getting sevral errors on
the script im new to php so any help or sugestions would be great
please look at my site to see the error's
http://www.abbytech.co.uk/phpauction/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Hi all,
don't know for sure if this is heppening to me only or there are others who faced the
same problem
here is whats wrong
when ever i set a cookie it didn't get set even i refresh the page (with php header
function) but then i echo something on the page and then use HTML meta refresh the
co
check if you have complied php with imap support and if you are on windows
then check if it is uncommencted in the ini
Haseeb
- Original Message -
From: "buttoz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 1:46 AM
Subject: [PHP] imap_open()
> hi,
>
> i have pro
hi,
i have problem with imap_open function,
my code is :
when i run i recive :
Fatal error: Call to undefined function: imap_open() in
c:\inetpub\wwwroot\besthd\mail\myemail.php on line 2
what this mean , please help me.
thanks,
zuhear
--
PHP General Mailing List (http://www.php.net/
On 31-May-2003 S. Cole wrote:
> Hello all,
>
> I'm currently working on a site for my brother-in-law. I have written a
> script that will access a website
> (http://www.remax.nf.ca/listings.asp?a=163&cp=1) and pull the page into a
> variable ($var). I have striped the page down to include only
oops sorry, was just trying to reply to the dude and didnt mean to also mail
the whole list.
Cheers,
-Ryan
- Original Message -
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "Ryan A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "PHP Lists" <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003
On Sun, 2003-06-01 at 13:05, Ryan A wrote:
> Hey there,
> I think i can offer you one of the best packages you will ever find
> 8.50$ a month or 8$ if you pay per year
I think you should take this private...
>
> FEATURES
> --
>
> One click to install
>
> Portals/CMS
> P
Hey there,
I think i can offer you one of the best packages you will ever find
8.50$ a month or 8$ if you pay per year
FEATURES
--
One click to install
Portals/CMS
PHP-Nuke
Post-Nuke
phpWebSite
Xoops
Discussion Boards
phpBB2
Invision Board
Other scripts
OS Commerce
I have been using phpwebhosting with no problems for the last year.
They are also real good about responding to questions via email. Red
Hat Linux, php, phpMyAdmin, PEAR, MySQL, secure shell access(ssh), and
ftp access. Un-metered traffic, un-throttled, and true burstable
bandwidth. Un-metered P
70 matches
Mail list logo