- Original Message -
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 26, 2001 4:38 PM
Subject: [PHP] Thinking about going to ASP
> Just looking over the achives of the .net show(was msdn show), and with
.net
> its got some really great features..
>
> So
Just looking over the achives of the .net show(was msdn show), and with .net
its got some really great features..
So i am going to get a hold of .net and try it out...
- James "ReDucTor" Mitchell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
hi.
I write:
$m=date("H:i:s"); >10:34:33
$p=echo time($m); -->998805674
date("h:i:s",mktime($p)); ->12:34:33
my problem is the difference between first and third time that should
be the same.???
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Thanks..
D'you think you'd be able to give me an example?
(Sorry, I am _quite_ new to all of this...)
-Andy
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Any php.ini directive can be used in your httpd.conf on a per-dir basis.
> See the manual..
hi.
how can I control the ip that with ID and password ,all of
user cant enter to site and if one person want to enetr should
have special IP that I know it.
thanks.
nafiseh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
yes, I am running as CGI.
How should that matter?
Actually, I need to run as CGI because I have customized extensiont to PHP
that my hosting company will not imbed in their PHP-Apache module. I am
totally fine with that.
Bottom line is that I need to run PHP as CGI.
Is there a way for this work
Are you running PHP 3 as a CGI? Things work/don't work a bit differently
in CGI mode.
-Rasmus
On Sun, 26 Aug 2001, Anas Mughal wrote:
> All,
> I read the article by John Coggeshall on building search engine friendly
> pages. Now, I trying to pass my script parameters as path (instead of
> "?pa
All,
I read the article by John Coggeshall on building search engine friendly
pages. Now, I trying to pass my script parameters as path (instead of
"?param=value¶m2=value2").
However, for some reason I keep on getting the following error:
Fatal error: Unable to open
/home/mydomain/public_html/tr
Well, first of all, you are using an ancient version of PHP. That message
was changed from a fatal error to a warning over a year ago.
And if you really want to have PHP accept non-typed POST data, it's an
obvious one-line change in main/SAPI.c
-Rasmus
On Sat, 25 Aug 2001, Chris Maresca wrote:
All,
I've been coding a PHP page that listens for a connection from an embedded
device (a piece of hardware) that sends a POST query to Apache (and to my
PHP pages...).
I've having a problem that I can't seem to solve. The embedded
application does not set a Content-Type header on the POST, so
php-general Digest 26 Aug 2001 07:54:07 - Issue 838
Topics (messages 64449 through 64478):
Re: Stripping line break characters
64449 by: Rory O'Connor
64450 by: jimw.apache.org
64458 by: Chris Hayes
relative filename /home/www... in stead of /www/.
64451
Try this:
$text = nl2br(htmlspecialchars(stripslashes($text)));
With $text being the data outputted. It will replace apostrophes, quotes,
etc. with their proper html formatting.
Example: input: "PHP is Cool!"
html output: "PHP is Cool!"
Then if you don't want the $quot;, or whatever
Any php.ini directive can be used in your httpd.conf on a per-dir basis.
See the manual..
-Rasmus
On Sat, 25 Aug 2001, Andy Ladouceur wrote:
> Does anyone know if its possible to use disable_functions on only specified
> directories, and not all?
> Hopefully its possible..
>
>
>
>
--
PHP Ge
Does anyone know if its possible to use disable_functions on only specified
directories, and not all?
Hopefully its possible..
--
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 adm
hi.
thanks .
can you describe more about ???
nafiseh.
--
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]
A recent feature addition (4.0.7) is a safe_mode_include_dir php.ini
directive where you can do exactly this.
-Rasmus
On Sun, 26 Aug 2001, Artyom Plouzhnikoff wrote:
> Is it possible to use safe mode yet allow all scripts to include any files
> from /usr/share/php? Normal users ain't gonna ha
Is it possible to use safe mode yet allow all scripts to include any files
from /usr/share/php? Normal users ain't gonna have *write* access to that
directory, so it shouldn't be much of a security concern, I just don't know
how to do this. I know that I can disable safe_mode and enable open_
> If your php-code is on a web-server which gives access to other than you
> they can read your code. An example could be other people being hosted
> on the same server..
Not necessarily. You can enable safe_mode and/or set an open_basedir in
order to prevent those people from doing that. You s
Hello Rasmus,
Rasmus Lerdorf wrote:
>
> > So, it is very hard to convince the anybody to bet all the farm in PHP.
> > You may have the technical arguments, but is not enough, I'm afraid.
> >
> > You in particular, may not need to convince others to bet on PHP, but it
> > is nothing like that for
> mine always says ask don" lol...actually got it figured out right after muy
last post "rawurlencode" worked great
Thanks though!
> On 26-Aug-2001 [EMAIL PROTECTED] wrote:
> > Tried addslashes also urlencode, neither worked...
> >
> > the input is from a comment area in a form...that
On 26-Aug-2001 [EMAIL PROTECTED] wrote:
> Tried addslashes also urlencode, neither worked...
>
> the input is from a comment area in a form...that adds data to a mysql
> database...the comments contain commas and apostrphes, that when
> you try to subit, screw up the execution of the insert...
Thanks!
Helped a lot.
-Andy
Jeff Oien <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You can read the notes lower on the page here to get a good idea:
> http://www.php.net/manual/en/function.print.php
> Jeff Oien
>
> > I am fairly new to PHP Scripting, and I am
Tried addslashes also urlencode, neither worked...
the input is from a comment area in a form...that adds data to a mysql
database...the comments contain commas and apostrphes, that when
you try to subit, screw up the execution of the insert
Any help would be very very very very appreciate
I need to output an array to a text file, now I have created the text file now I just
need to
write to it, well I need to get the output of the browser to this text file. HOw can
i do this,
oh and return each line ...
heres the code
that gets the output
array1.php
\n";
}
exit;}
}
?>
http://www.php.net/manual/en/function.addslashes.php
That should work fine.
-Andy
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a form that submits data to a database, works great until
> someome
> > puts in an apostrophe in the comments area...how do
I should probably just forget I ever sent this post, but in case anyone is
curious, the problem was that I was using the address cached in the address
bar in Konqueror to open the home page of the application. For some reason
this address was "file: /var/ww/html/homepage.html" instead of
http
Hmmm. Manuel what's that you're smoking? Where can I get some?
M
-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 20:30
To: [EMAIL PROTECTED]
Subject: Re: [PHP] The future of PHP
Hello,
Egan wrote:
>
> On Fri, 24 Aug 2001 15:34:04 -0300, Manu
> I have a form that submits data to a database, works great until
someome
> puts in an apostrophe in the comments area...how do i escape this
> charecter upon
> insert?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
I have a form that submits data to a database, works great until someome
puts in an apostrophe in the comments area...how do i escape this
charecter upon
insert?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
Not only a good answer, but the best explanation.
thanks,
bill hollett
Rasmus Lerdorf wrote:
> > The first echo statement doesn't work, the second does. Anybody know
> > why?
> >
> > $string1=15;
> > $string2=27;
> > $myarray[$string1][$string2]="syncopated";
> > echo "$myarray[$string1][$str
Is there a program which will check for cookies before
it allows access into the web site ?
I want the user to enter the userid/password on a
secure web server and pass the cookie information to
the regular server. I don't want them to access
regular web server without that cookie being enabled
t
Hi!
> $sql2=str_replace("","\n",$sql2);
> $sql2=str_replace("","\r",$sql2);
well that was easy:
manual:
string str_replace (string needle, string str, string haystack)
and you did:
str_replace (string str, string needle, string haystack)
So better try
$sql2=
I think I did misunderstand -- php is not like C where you declare things
global
both in the main program and in subroutines. If you are not in a function
everything is
automatically "global"; in php functions you need to declare variables to be
global.
--so you don't need it
the problem looks li
You can read the notes lower on the page here to get a good idea:
http://www.php.net/manual/en/function.print.php
Jeff Oien
> I am fairly new to PHP Scripting, and I am learning from a book.
> Throughout the book, print is used as the basic command to output
> text/variables.. yet I see almost e
> The first echo statement doesn't work, the second does. Anybody know
> why?
>
> $string1=15;
> $string2=27;
> $myarray[$string1][$string2]="syncopated";
> echo "$myarray[$string1][$string2]\n"; //displays Array[27]
> echo $myarray[$string1][$string2] . "\n"; //displays syncopated
Complex va
I am fairly new to PHP Scripting, and I am learning from a book.
Throughout the book, print is used as the basic command to output
text/variables.. yet I see almost everyone in here uses echo. Might I ask
what the differences of the two are, and if there are any benefits of using
one over the othe
I'm not sure of the problem but something like
You can also print or echo html from php if that helps your program flow
like
title
$data
";
?>
Often you will want to generate the table rows in an if() or while()
statement
You can do the same thing with any html tag
The first echo statement doesn't work, the second does. Anybody know
why?
$string1=15;
$string2=27;
$myarray[$string1][$string2]="syncopated";
echo "$myarray[$string1][$string2]\n"; //displays Array[27]
echo $myarray[$string1][$string2] . "\n"; //displays syncopated
--
PHP General Mailin
dear group,
I use the $DOCUMENT_ROOT to make a complete file name.
$fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php';
It does not work on one site: the document root misses the /home/ start. I could
just hardcode this but i'ld rather have a function that would work everywhere.
W
Rory O'Connor <[EMAIL PROTECTED]> wrote:
> $sql2=str_replace("","\n",$sql2);
> $sql2=str_replace("","\r",$sql2);
you've got the first two arguments backwards.
$sql2=str_replace("\n","",$sql2);
$sql2=str_replace("\r","",$sql2);
or with php4.0.5 (or later):
$sql2=str_replace(array("\
I have been trying similar arrangements, but to no avail. I think it
has something to do with the actual string I am checking - it's an SQL
statement. I am trying to create a log of SQL statements in a textfile,
and the newline/return characters that people put in the TEXTAREA is
screwing it up.
I need to strip line break characters (or whatever the character is that
results from users hitting their "enter" key inside a TEXTAREA form
input) from a string. These characters will appear anywhere in the
string, not just at the end. In perl, the regex would look something
like this...
$a="a
"Tyler Longren" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Sat, 25 Aug 2001 15:03:49 +1000
> "GaM3R" <[EMAIL PROTECTED]> wrote:
>
> > can anyone explain to me exactly what this would do differently?
> >
> > $data = fread($fp, filesize($file));
> >
> >
"Mike Cullerton" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> it's an if/else shortcut.
>
> the part before the '?' is tested. '$i % 2' in your case.
>
> the part after the '?' is returned if the test evals to true. '0' in your
> case.
Documentation at
http
Hi,
>http://www.php.net/manual/de/language.variables.variable.php
Thanks!! Thats really embarrassed me :) So simple and I don't get it
for so many hours.
Greetings,
Christian Springub
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
it's an if/else shortcut.
the part before the '?' is tested. '$i % 2' in your case.
the part after the '?' is returned if the test evals to true. '0' in your
case.
the part after the ':' is returned if the test evels to false. i've never
tried it with nothing after the ':' like in your case. g
http://www.php.net/manual/de/language.variables.variable.php
On Fri, 24 Aug 2001, Christian Springub wrote:
> Hi,
>
> I know, the topic looks freaky, let me explain.
> I have a formular with many input fields called for example "firm[0]",
> "firm[1] etc.
> Now I submit and have the values of thi
Hi
Can someone explain to me what "$i % 2 ? 0:" means or what it
does step by step? I was looking in PHP docs for "?" and ":" and
didn't find it there. I use this line in my script to assign different
value for $bgcolor variable to color rows in result, but I want to
understand what does it m
Hi,
I know, the topic looks freaky, let me explain.
I have a formular with many input fields called for example "firm[0]",
"firm[1] etc.
Now I submit and have the values of this variables. But I have so many
input fields, that I want to generate the variables by reading the
names from a mysql tab
Thanks, Mike, for your help.
Best regards,
Pere
"Mike Cullerton" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote:
>
> > I am setting up a cookie stating the language the user wishes to have
the
> > site
Hello,
I want to create a script that would read the contents
of an HTML file (I can use Snoopy class for that) and
then, download some respective type of files from a
page (let's say .zip files)...
Any ideas how do I start or if anyone create something
like that?
Thank you and please, reply to
That will stop fread from producing errors. So, if you don't want to see
any error's from fread, put a & in front of it. This can also be done
with other functions:
$db = &mysql_select_db("dbname");
Tyler Longren
On Sat, 25 Aug 2001 15:03:49 +1000
"GaM3R" <[EMAIL PROTECTED]> wrote:
> can any
Thanx James for your answers... perhaps I'm missing a piece of the puzzle,
but here is how I corrected or fixed it.
In my included file that gets included in every app and every page, I
placed:
putenv( "TZ=America/Phoenix" );
and all my dates are now local time. SO saving to a mySQL da
on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote:
> I am setting up a cookie stating the language the user wishes to have the
> site written with. No problem up to here.
>
> Next time the user goes back to the site I want to read the cookie and,
> provided it exists, set up the site with the
This is an aside ...
At 02:08 AM 8/25/01 -0400, Cristopher Daniluk wrote:
>After following this thread for a while, it seems like there is a lot of
>discrepancy between what is "success" and what isn't for PHP. I do not
>believe PHP will ever become the ubiquitous web language, if for no other
>r
Hi Joe,
GMT isn't affected by daylight savings (altough in the UK we are using
British Summer Time at the moment, which is GMT +1), so that's the constant
you can work from if you're not experiencing daylight savings schemes where
you are. I have written out an example for you below.
We get the
hi.
I write program with php,then for build table I must to close it,
write html tag and then open php and continue,...
I ask time in one line and in another line I want to show it.
but I want the first line doesnot run in all condition.
I think my problem will solve with static variables.???
t
Good Morning(CST USA here :))
>
> PHP is represented at every important technical conference right alongside
> Perl and Python. When you hear someone talk about scripting languages,
> they will usually say Perl, Python and PHP. I don't see any problem with
> the current state of PHP "marketing"
"Saurabh Kapoor" <[EMAIL PROTECTED]> wrote in message
001901c12d63$b1b62100$9e2823d9@killer666">news:001901c12d63$b1b62100$9e2823d9@killer666...
> I am a C programmer, looking to migrate some code to PHP (Unusual, but my
> colleagues request it).
>
> Can someone tell me the size (in bytes) of the
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hi.
>
> I want to use glabal variable.
>
> global $a;
>
> ?>
> but it doesnot work??
... why do you think you need to use global here?
global is used *in a function* to let it see
external va
well i've not looked how its done...
but the PHP script that generates a image, will do DB stuff as well..
But I will go look how its done
After looking its just how I said...
They use a JSCript call to load a new image.. namly:
www.AudioGalaxy.com/satQueue/" + SongID + "?" + SID
(Where SongID
use php for everything from subscription management to email authoring and
use a perl script to effectively send the emails
At 10:08 25/08/01, Niklas Lampen wrote:
>I'm sending a huge amount of mails with php. How can I send mail directly to
>the smtp server? Right now I'm using pipe to send ea
I am a C programmer, looking to migrate some code to PHP (Unusual, but my
colleagues request it).
Can someone tell me the size (in bytes) of the type int in PHP.
I need a 16 bit (2 byte) storage unit (I use a lot of bitwise operations)
Thanx...
--
PHP General Mailing List (http://www.php.net
yeah... but other then returning the image, can it do stuff with DB and all?
BTW.. I saw how it's done... it's Javascript all the way... and there's no
call to a php script to switch the image...
At 03:35 23/8/2001 +0100, you wrote:
>See this is the lack of my explaining powers :)
>
>U click th
hi
>rasmus: "PHP is not marketed the way Java and .NET is. There are no
>multi-billion
>dollar corporations behind PHP and asking us, and apparently me
>personally, to make that happen is unrealistic";
true, but who can afford java and .net? oracle..., certainly not the small
and medium size
I am new to PHP (probably the question itself shows it...).
I am setting up a cookie stating the language the user wishes to have the
site written with. No problem up to here.
Next time the user goes back to the site I want to read the cookie and,
provided it exists, set up the site with the req
Hi All,
I'm running Suse Linux 7.1, Kernet 2.4
I have downloaded and installed the latest version of Apache and it's up
and running OK
It is installed in :
/usr/local/apache
To Install PHP, i have downloaded the Source and put it in:
/usr/local/src/php-4.0.6
To Install PHP I have done this
Look in the manual:
language.variables.scope.html
'global' is meant to use inside a function for accessing vars that are not
in a function (the main part).
> I use global in this form:
>
> global $a;
> $a=strtotime('now');
> .
> .
> .
> echo $a; but in this line dont echo $a
Using globa
you must change the session setting to get ride of it.
option>session option..>emulation>logical column>
you must increase the number of it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
Has anyone out there used ImageCopyResampled()? This function was added in
PHP 4.0.6 and requires GD 2.0.1 or later. So I haven't been able to try it
out yed.
I'm just wondering if it will deliver better image quality when you use it
to render a shrunk-version of a graphic than ImageCopyResized(
you must define port or connection.
for example in postgres:
$conn = pg_connect(" host=localhost dbname=big user=postgres
password=123");
result = pg_exec($conn,"select * from personel where name='$ID' and
date='now'");
I wish your problem solve.
nafiseh.
--
PHP General Mailing List (htt
hi.
I use global in this form:
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]
I'm not sure if it's right solution but I did this -
$ins_u = mysql_query("INSERT INTO users (name,email)
VALUES ('$u_name','$u_email')");
$userid = mysql_insert_id();
instead for this -
$ins_u = @mysql_query("INSERT INTO users (name,email)
VALUES ('$u_name','$u_email')");
$userid = @mys
Hi,
I got the answer from one earlier mail. I used nl2br(). It does just
what I want.
Adrian
On Fri, 24 Aug 2001, Adrian D'Costa wrote:
> Hi,
>
> I am creating a program for a newspaper to publish their article
> online. There is a form what allows them to cut and past from their
> editors
Hi,
I had this problem. If you say that even without the getimagesize() it is
not being uploaded. Then try this. If you declared $the_image in the
try using $the_image_name. From the
manual this is what I figured out and it works (on linux)
In PHP, the following variables will be defined w
I'm sending a huge amount of mails with php. How can I send mail directly to
the smtp server? Right now I'm using pipe to send each mail to sendmail.
Works fine with about 35 000 mails, but it takes ages to run.
What would be the smartest way?
Thanks!
-Original Message-
From: Richard
hi.
I want to use glabal variable.
but it doesnot work??
thanks.
--
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]
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ken) wrote:
> Is there a way to get PHP to list the names and/or contents of all variables?
http://php.net/manual/en/function.get-defined-vars.php
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTEC
This is what I get:
allach.question repair error The handler for the table doesn't support
check/repair
- Original Message -
From: Don Read <[EMAIL PROTECTED]>
To: Martin Kampherbeek <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, August 25, 2001 9:32 AM
Subject: RE: [P
On 25-Aug-2001 Martin Kampherbeek wrote:
> I still get this error. Can someone help me to solve this?
> MySQL Query Failed. Error 1030: Got error -1 from table handler
>
>
> $query = "SELECT * FROM question WHERE answer<>'1' AND id>250 ORDER BY id";
>
> $result = mysql_query($query) or die('My
80 matches
Mail list logo