On Mon, Jul 01, 2002 at 08:00:39PM -0400, Analysis Solutions wrote:
Hi Richard:
Oops. Meant to reply directly to Ricahrd. Sorry 'bout that.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info |
Drew wrote:
When I run the following script it returns String Okay! when it should say
Invalid Characters Found. I've tried the script substituting $ for other
characters, such as j, and it works just fine. What do I need to do?
?php
$input = johnon@company.$com;
if (ereg([$], $input))
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
Hi, I'm trying to compile CGI version of latest PHP v4 (4.2.1) on Linux RH 6.2
kernel 2.2.14 with mysql client/server ver 2.22.49
and it always fails to compile while compiling mysql extension. I've included
part with error message
Johannes Tyra [EMAIL PROTECTED] wrote:
$startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24,
2000);
$startDate['Waage'] = mktime (0, 0, 0, 09, 24,
2000);
but with 'Jungfrau' AND 'Waage' something is wrong!!
numbers with a leading zero are in octal format, and
David Orn Johannsson wrote:
I'm having a problem with StrToLower function in php
I'm trying to convert characters like THORN; and acute letters from
uppercase to lowercase, but it dosen't work.
this is what the manual says: Note that 'alphabetic' is determined by
the current locale.
php4 sessions or self made?
own session_set_save_handler?
Let us see the login code!
Ok...that's how i would do it:
After successful login i'd register a variable or
set the registered variable to a specific value.
Now i check on every page:
If (!IsSet($_SESSION[myLoginVar] ) ||
basicly this problem seems to result of the new way I do get the string from
the url
I used to get it with $PATH_INFO
Now I do a $PATH_INFO = $_SERVER[REQUEST_URI];
which is not the same result.
Does anybody know a equal command for $PHP_INFO ?
ANdy
Andy [EMAIL PROTECTED] schrieb im
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ben Turner) wrote:
I am getting the error that I cannot create the
file in the directory. I have tried chmod and chown on the directory but
nothing is working for me. I have even gone so far as to make the owner of
the directory apache and
Try some diagnostics to tell you what's going on
In the page you're submitting to try
Foreach($HTTP_POST_VARS as $key=$value) echo($key=$valuebr);
Part of your problem may be that you're using the number of
form elements returned to control the for loop. It doesn't
really have any significance
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
I'm trying to read in a 1x1 pixel file and display it, basically to assist
in setting 3rd party cookies (our other affiliated sites that don't follow
under the same domain.. it's really sloppily set up, but thats another
story).. The
John Clarke [EMAIL PROTECTED] wrote:
Any ideas why this would be happening?
because 2002-03-31 is 25 hours long in your time zone?
http://www.dstc.qut.edu.au/DST/marg/daylight.html
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks guys. You were right. I have been playing around and just found an
extra 3600 seconds on 31/3/2002.!!!
Thats a trap for us young players.
Will develop a creative fix.
Does this mean that there is a day with only 23 hours somewhere Though
this wouldnt cause a problem I guess.
Thanks
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Problem with strtotime() and 2002-03-31
Thanks guys. You were right. I have been playing around and just found an
extra 3600 seconds on 31/3/2002.!!!
Thats a trap for us young players.
Will develop a creative fix.
Does this mean that there is a day with only
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Thanks guys. You were right. I have been playing around and just found an
extra 3600 seconds on 31/3/2002.!!!
Thats a trap for us young players.
Will develop a creative fix.
Does this mean that there is a day with only 23 hours
In article 000a01c1cb5f$a5cdbca0$b850010a@AGA253DISUP004,
[EMAIL PROTECTED] says...
Hi,
I have a problem in my build php-4.1.2.
config.cache :
...
ac_cv_path_PROG_SENDMAIL=${ac_cv_path_PROG_SENDMAIL=/usr/sbin/sendmail}
...
When i run my script php the follow error happens:
Dustin Puryear wrote:
We are running Apache 1.3.20 with PHP 4.0.6/rfc1876-patch built as a
module. We are using PHP on a load-sharing cluster with n web servers.
Our cluster supports an application that makes extensive use of mysql
connections via the PHP mysql_* functions.
The application
A program I had written to send notification to recievers when a greeting
card was sent to them..
=
?php
$msg=htmlheadtitleInd-e-glow Greetings./title/headbodyh3Dear
Friend!/h3\nbrYou have an e greeting waiting for you at a
This had worked without problems..
It sounds like the text encoding could be wrong. Using
some encoding types, =charchar means something else.
Maybe the charset you're using needs to be looked at?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
but for some reason, no matter what the month, the first if statement
(if current_month = 1) is seen as true and executes... any suggestions?
Try using 'equivalence-equals' (==) instead of 'assignment-equals' (=).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
First, I recommend installing PHP4. There's a host of new features.
Second, it sounds like your problem may be that you compiled PHP without
mysql support. The command for PHP4 is, I believe, --with-mysql when you
call the configure script.
Get PHP 4.1.1 from the site (I downloaded it from
What is the error message? (It will help us a lot G)
Uma Shankari T. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I have installed php4 rpm in my machine.while connecting php with
mysql it is giving fatal error.I have given like this
sounds like php is having a problem resolving the dns. could be 1 of a 100
things ...
try putting the IP of the machine in vs the domain name.
--
Chris Lee
[EMAIL PROTECTED]
Martin Leclair [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I have a
You could also use the function getimagesize this will tell what kind of
image it is, and if it is not an image it will return false.
GD LIB is NOT needed for getimagesize.
Kind Regards,
Jerry Verhoef
-Original Message-
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Phillip B. Bruce wrote:
1. Is there any documentation that explains the differences between
the versions of PHP?
php4 : much more fun ! go use it !
the documentation will tell you on each function page in which php
version the fuction was first available.
2. Does it matter when writing
Neil M [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am using php to upload image files.
heres my code ..
?
if (is_uploaded_file($photo_file))
{
clearstatcache ();
$size = filesize ( $photo_file ) ;
if ( $size 1024000 )
{
print (BR ERROR -
this code seem incomplete:
window.opener.document.celkem.cena_celkem.value = ? echo _(nìjaký
blábol); ?
}
here's a fix:
function zmen_cenu() {
window.opener.document.celkem.cena_celkem.value = ? echo _(nìjaký
blábol); ?;
}
Pavel NováK [EMAIL PROTECTED] wrote in message
[EMAIL
now it is the same problem without javascript:
FIRST file includes only this row:
input type=submit name=submit_dotaz value=?=_(Odeslat dotaz)?
class=tlacitko
SECOND file includes this:
?$str=_(Odeslat dotaz)?
input type=submit name=submit_dotaz value=?=_$str?
class=tlacitko
When I use:
Yeah,
It seems to be a black art to get the browsers to behave properly.
I don't know if it's relevant but I use Content-disposition and Content-type
rather than Content-Disposition and Content-Type and it seems to work for
me for inline;. I haven't tried inside;.
If you really can't get it
so I know where is the problem:
input type=submit name=bla value=?=_(Odeslat dotaz)?
gettext is seeking through all of strings in the file, it thinks that one
string is:
?=_(
and second:
)?
And it doesn't work even with this:
value=?=_('Odeslat dotaz')?
or this:
value='?=_(Odeslat dotaz)?'
Note that you don't need to use xgettext to use gettext. It is simply a
time-saver that generates a template .po file for you. You can easily
create this text file yourself.
-Rasmus
On Fri, 16 Nov 2001, Pavel Novak wrote:
so I know where is the problem:
input type=submit name=bla
I've tried the recode(), but I think I didn't uderstand it's functionality,
since nothing happens. can someone has an idea in how to convert for example
a string posted by a form in this format são paulo to this sao paulo??
Does anyone knows how Macintosh's browsers send this special caracteres
PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, November 02, 2001 2:51 PM
Subject: Re: [PHP] Re: Problem with non us caracters and strtr
I've tried the recode(), but I think I didn't uderstand it's
functionality,
since nothing happens. can someone has an idea in how to convert for
example
a string posted
: Friday, November 02, 2001 2:51 PM
Subject: Re: [PHP] Re: Problem with non us caracters and strtr
I've tried the recode(), but I think I didn't uderstand it's
functionality,
since nothing happens. can someone has an idea in how to convert for
example
a string posted by a form in this format são
,
AACOYaacooyy);
return $ret;
}
hope it helps,
py
- Original Message -
From: Stefan Rusterholz [EMAIL PROTECTED]
To: Rodrigo Peres [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 02, 2001 9:10 AM
Subject: Re: [PHP] Re: Problem
: Re: [PHP] Re: Problem with non us caracters and strtr
I have little experience with this kind of problem.
None of the Browsers I used under mac (IE 4 - 5 and sever NS 4.x) has sent
the data different than Windows Browsers. But avoid the meta-tag charset.
I
had serious problems when the HTML
Rodrigo Peres wrote:
Hi list,
I'm in a big trouble. I'm brazilian, so I've made a script to clean up the
special caracters from our language in order to not mess up my publisher,
but this script don't work in Macintosh (macos 9.1, IE 5, all in american
english).
This is my code
?
In article p05100304b802cdc3b801@[212.247.198.195],
[EMAIL PROTECTED] (Per Hugosson) wrote:
I cant get it to
show up in the From:-line. Instead I get From: Apache... which is
totally wrong of course. Our auto-reply goes to
[EMAIL PROTECTED] instead of to the senders adress. What do I
You have to put Header( "Location:http://www.mydomain.com/mypage.html"); on
top of your php code
- Original Message -
From: Justin Garrett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 28. listopad 2001 07:00
Subject: [PHP] Re: Problem redirecting
From the manual:
From the manual:
Remember that the header() function must be called before any actual output
is sent, either by normal HTML tags blank lines in a file, or from PHP.
This is the cause of your error. Something is sending output before your
call to header();
--
Justin Garrett
Don [EMAIL
It *should* be able to... That's the whole point of the darn things. :-)
Is 0x576a the correct key?... Sure PHP isn't treating that as a string or
something?
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD:
You'll need to use suExec to wrap around PHP.
http://apache.org will have docs on suexec.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
You really shouldn't be storing a PHP variable in your database...
Too easy for a hacker to get some bad PHP into it.
You could mess with http://php.net/eval maybe.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD:
Hello,
But can you be more specific what I need to do with this function?
How to use it in the context?
Thanks
Pedja [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
function array_search ($needle, $haystack, $strict = FALSE)
foreach (array_keys($haystack) as
mixed array_search (mixed needle, array haystack, bool strict)
Searches haystack for needle and returns the key if it is found in the
array, FALSE otherwise. If the third parameter strict is set to TRUE then
the array_search() will also check the types of the needle in the haystack.
function
function array_search ($needle, $haystack, $strict = FALSE)
foreach (array_keys($haystack) as $key)
{
if ($strict) {
if ($haystack[$key] === $needle) return $key;
}
else {
if ($haystack[$key] == $needle) return $key;
}
}
return FALSE;
}
Ewunia [EMAIL PROTECTED] wrote in message
You don't have newlines in $cmd, do you??? Don't do that.
You may also need to http://php.net/setenv to set up PATH so that
identify.exe can find whatever filter/DLL/plug-in thingie it needs to find
to do EPS files, identify.exe uses that kind of plug-in architecture.
--
WARNING [EMAIL
Any help would be appreciated
Paul Morin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a problem with file uploads in php. My code seems to run fine if I
am on the local area network but seems to fail when I try from the
outside.
My server seems to
- you have cookie support on or off ?
- you using any header redirects ? (you have to manually add the SID to
URI's)
send some src and a link. lets see whats going on.
--
Chris Lee
[EMAIL PROTECTED]
Lic. Rodolfo Gonzalez Gonzalez [EMAIL PROTECTED] wrote in
message
[EMAIL
On Tue, 18 Sep 2001, Chris Lee wrote:
- you have cookie support on or off ?
- you using any header redirects ? (you have to manually add the SID to
URI's)
Sorry for the lenght of this mail.
PHP compiled with --enable-trans-id, so PHP adds SID to the URL.
session.use_cookies = 0,
working with should be chown'ed to
www.www
Remember not to 'adduser' to accomplish this, you dont want anyone
actually
logging in as www :) Hope this helped a little.
From: Gaylen Fraley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 16, 2001 2:07 PM
Subject: [PHP] Re:
Nevermind, I made a stupid mistake.
Tad [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am setting up a box to run Apache + mod_ssl + MySQL + PHP.
Apache is configured with DSO support and everything goes fine until I do
make inststall in the php source
show us a snippet so we can evaluate the cause
-A
--
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]
better search
engine. How to do that?
Niklas
-Original Message-
From: Adam [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 11:24
To: [EMAIL PROTECTED]
Subject: [PHP] Re: problem with form values
show us a snippet so we can evaluate the cause
-A
--
PHP General Mailing List (http
How to do anything to the strings in php BEFORE the form is sent?
Niklas
-Original Message-
From: James Holloway [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 11:28
To: Niklas lampén
Subject: Re: problem with form values
Hi Niklas,
use htmlentities() or htmlspecialchars() on
Sorry,
I didn't mean it quite like that. After the user presses submit
$string = htmlentities($string);
// now, do whatever with the string
J
- Original Message -
From: Niklas Lampén
To: James Holloway ; Php-General
Sent: Wednesday, September 12, 2001 9:52 AM
Subject:
i would say do this
urlencode the string (it should use %22 or something for the quote marks)
then un encode on the recieving page
--
one thing you might try is this
$sql = 'SELECT * FROM whatever WHERE';
while ( $quotes = explode('', $Keywords) ) {
$q = 0;
$s = 0;
like
onSubmit=blah().
Niklas
-Original Message-
From: James Holloway [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 12:01
To: Niklas Lampén
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: problem with form values
Sorry,
I didn't mean it quite like that. After the user presses submit
-General
[EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 3:08 AM
Subject: RE: [PHP] Re: problem with form values
Heh, we seem to have a bit of a problem with communicating with each
other..
:)
What I ment with the question is that how can I do something to the string
before the form sends
IT's something like that friend,
html
head
title New Document /title
/head
body onload=hidelb();
script language=JavaScript
!--
function hidelb()
{
o = document.all[lb1];
if (test.phone.selectedIndex==1)
o.style.display = none;
else
o.style.display = ;
}
//--
[EMAIL PROTECTED] (Balaji Ankem) writes:
What is the problem with following code..
$sql1=DELETE from tinventory where inv_tag='$inv_tag';
no closing doublequote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
The file isn't written out until the end of your script, and you're trying
to kill it?...
Since you haven't registered any variables nor set them, deleting the
session doesn't seem like a big deal...
What's your overall design goal here?
--
WARNING [EMAIL PROTECTED] address is an endangered
Did you try to dload the manual from PHP site's mirrors?
S.Maria Goretti20010808 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi All,
I am trying to download php mauals. but I couldn't suceed as the server
is displaying the message
as Server is Busy and
I'm not sure if this will help but try putting an ob_start() as the first
line, and just flush the output and redirect with Header()
Alex Shi [EMAIL PROTECTED] wrote in message
00e801c135bb$2f75a480$0105050a@pony">news:00e801c135bb$2f75a480$0105050a@pony...
Hi,
Can anyone tell me why header()
] Re: problem with ereg() and ereg_replace()
In article 01b201c13354$0ca601c0$0105050a@pony,
[EMAIL PROTECTED] (Stonix) wrote:
ereg_replace( {key}, word, $a_string);
The web server will return following warnning msg:
Warning: Invalid content of \{\} in /var/www/html/scrip.php on line
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (David Otton) wrote:
I get a error - Warning: Undefined variable: PATH_INFO in
[scriptname] on line 13
Is there any situation where such variables would be available to
phpinfo(), but not the rest of the script?
Yes, where $PATH_INFO is
In article 01b201c13354$0ca601c0$0105050a@pony,
[EMAIL PROTECTED] (Stonix) wrote:
ereg_replace( {key}, word, $a_string);
The web server will return following warnning msg:
Warning: Invalid content of \{\} in /var/www/html/scrip.php on line #
In regex, the curly braces are special
string microtime(void);
you see? you're casting from a string to int by your code:
(int) microtime();
you can do: $k = microtime() w/o the (int)
Rosen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm using the following code:
for ($i = 0; $i 100;
And one question:
Should I use session_start() in every php file on my site ?
Thanks,
Rosen
--
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
On Tuesday 28 August 2001 02:20 pm, you wrote:
And one question:
Should I use session_start() in every php file on my site ?
Thanks,
Rosen
Yes!
--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland
[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00
yes and be carefull to put that before any aoutput is sent to the browser
(even a blank space is an output)
regards
At 14:20 28/08/01, Rosen wrote:
And one question:
Should I use session_start() in every php file on my site ?
Thanks,
Rosen
--
PHP General Mailing List
If they're empty but phpinfo displays them you're probably inside a function and
haven't declared HTTP_POST_FILES as global.
Jason Dulberg wrote:
I am working on an image upload script and I've tried to use the variables
from $HTTP_POST_FILES however it seems that no matter how I try to get
Now I just feel like an idiot... that was the answer! I had all the other
globals registered but that one.
Thanks for your time!
Jason.
If they're empty but phpinfo displays them you're probably inside
a function and haven't declared HTTP_POST_FILES as global.
Jason Dulberg wrote:
I
Craig Henderson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
My question is, is there anything that I can do so that only PHP scripts
on
the server are able to access the file? Or am I going to have to contact
my
hosting company and see if they can figure
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Craig Henderson) wrote:
Today a hacker managed to overwrite the text file I was using to
store all the messages, which really isn't that big a surprise considering
the permissions to the folder it is kept in are wide open thanks to my
hosting
You probably should take this to Zend support and/or their forums if nobody
here knows it.
That said, *WHERE* is libm.so.5, and where are they likely to be looking for
it?...
Make some SymLinks to it in the usual places until it works.
Disclosure: I used to *BE* Zend support :-)
--
WARNING
header(location:name_page.asp);
Rhony V. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In Asp i have this
response.redirect name_page.asp, it's used to go to another page
what is the similar function in PhP?
Regards
--
PHP General Mailing List
IE does not accept cookie expires less than 7200 sec.
Someone mentioned it before. (I don't verified this)
Is this true?
--
Yasuo Ohgaki
Mihailo Dzigurski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I need cookie that will expire in 15 mins. My
You may have different behaviour between browsers, but you
are never going to be able to use this method reliably because
of the vagaries of times encountered on the client side.
Just look at the postings to this list, supposedly more
sophisticated computer users, as some postings are dated
1972,
Justin Farnsworth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You may have different behaviour between browsers, but you
are never going to be able to use this method reliably because
of the vagaries of times encountered on the client side.
Just look at the
dear david,
did u know u do not need to put single quote to enclose number type value??
notice ur field select syntax:
INSERT INTO songs VALUES (' 1 // -- 1 is not enclosed with end quote...
thus makes only 5 fields, not 6
, blah', ' ***', ' 45', ' 2', ' ')
id[0]=: 2
try
INSERT INTO songs
I will try without single quotes for the id and other fields which have numeric
values. For the original issue I was missing two single quotes. I was missing
a
single quote in the $val line after $id[$i] and before songname : I really
don't need the quote for id since it is a numeric value. Here
Well, I got it fixed, I was told PHP is picky about cookies, so I was told to make it
redirect to the same page (so i just put a header(Location: $PHP_SELF);, and it works
- rob
301 - 382 of 382 matches
Mail list logo