On Mon, 8 Apr 2002 10:18:50 +0200, Matjaz Prtenjak [EMAIL PROTECTED] wrote:
Except on PHP side I have to produce javascript code without script tag,
like
xTest.php - SERVER1 with PHP
document.write(?php echo(\This WORKS!!!\); ?);
That makes sense - it's been awhile since I've had to do
On Sat, 6 Apr 2002 18:21:10 -0600, Peter J. Schoenster
[EMAIL PROTECTED] wrote:
I tried the above.
uksort ($ArrayOfNewsLinks, SortByValue);
function SortByValue ($a, $b) {
if ($a[language] == $b[language]) return 0;
return ($a[language] $b[language]) ? 1 : -1;
}
or this
On Sun, 7 Apr 2002 20:03:42 +0200, Matja¾ Prtenjak [EMAIL PROTECTED] wrote:
SERVER1 with PHP some file with name xTest.php
xTest.php:
? echo(Hi from SERVER1); ?
SERVER2 without PHP some file with name file1.html
file1.html:
html
body
Server1 is saying : ?
/body
/html
How
On Sat, 06 Apr 2002 15:01:24 +0300, Ando [EMAIL PROTECTED] wrote:
(eregi((frame[^]*src[[:blank:]]*=|href[[:blank:]]*=|http-equiv=['\]refresh['\]
You might want to try using preg_match instead. The PCRE engine should
be significantly faster. You might also find the ability to pass an
array of
On Sat, 6 Apr 2002 10:36:18 -0600, Peter J. Schoenster
[EMAIL PROTECTED] wrote:
$ArrayOfNewsLinks = array(
http://dailynews.yahoo.com/fc/World/Brazil/; = array(
title = 'Yahoo Brazil News',
category = 'news',
language = 'English',
),
...
function cmp ($a, $b) {
if
In article [EMAIL PROTECTED], Phil Schwarzmann wrote:
$query = UPDATE table SET (var1, var2, var3) VALUES ($var1, $var2,
$var3) WHERE username='$username';
Im wondering cause I have an INSERT query
$query = INSERT INTO table (var1, var2, var3) VALUES ($var1, $var2,
$var);
In article [EMAIL PROTECTED], Tom
Rogers wrote:
I am trying to calculate how far into a directory structure I am so that I
can include images and include files without having to hard code them.
I need to turn $PHP_SELF which could be /admin/emails/index.php into ../../
which I can then use
In article [EMAIL PROTECTED], Tom
Rogers wrote:
Thats what I was after :)
Glad I could help.
At the top of each page I now do
$reltoroot = preg_replace(|/[^/]+|, ../, dirname($_SERVER['PHP_SELF']));
ini_set (include_path,ini_get(include_path).:.$reltoroot.../include);
which takes care
On 19 May 2001 22:13:05 -0700, Weston Houghton [EMAIL PROTECTED] wrote:
I cannot for the life of me get browscap.ini to work.
Also the browserhawk version of the browscap.ini is sadly out of date.
Anyone have any leads for me on getting this to work? I consistently get an
empty array
On 14 May 2001 16:54:49 -0700, Nicolas Mermet [EMAIL PROTECTED]
wrote:
To avoid spamming my db I would like to implement a simple redirection
function, that would redirect the user to the main admin page once the
feeding script has successfully executed and would reduce chances of
double
On 14 May 2001 16:59:48 -0700, Christian Dechery [EMAIL PROTECTED] wrote:
My free-web-hosting (www.f2s.com) does not allow PHP to send emails... I've
tried everything... the mail() function, my alternate function which calls
popen(/usr/lib/sendmail -t) and even a script.cgi with
On 14 May 2001 19:04:43 -0700, Ben Gollmer [EMAIL PROTECTED] wrote:
If you have an account on a remote host, you can always do something
like this:
?php
include(http://www.remotehost.com/~myaccount/mailfunction.inc;);
mymail($to, $mailbody);
?
where mailfunction.inc has
On 8 May 2001 16:43:03 -0700, Stephan Ahonen [EMAIL PROTECTED] wrote:
I ment the signature signed by Adolf Hitler. As a German I doesnt like
such nonsense. BTW I'm also a webmaster @ php.net.
I side with Christian here - The only way we can prevent mistakes like the
whole Hitler thing is to
On 6 May 2001 10:25:19 -0700, FredrikAT [EMAIL PROTECTED] wrote:
Can Flash import some text from a database (e.g MySQL) and print it on the
fly?
Yes. It's actually pretty easy - you can tell flash to load a bunch of
variables from a URL. Your URL can return the encoded data (basically a
On 6 May 2001 05:53:54 -0700, Darren [EMAIL PROTECTED] wrote:
Hi. I just installed a fresh copy a windows 95. I installed winsock 2,
apache 1.3.19 and php4. I followed the instructions with the php
installation and I booted apache, I got a missing dll error message from
apache. I got the
On 4 May 2001 21:48:46 -0700, Richard Kurth [EMAIL PROTECTED] wrote:
I am having problems with Netscape and post in a form
In I.E. post works fine but in netscape it just gives me a
Method Not Allowed
The requested method POST is not allowed for the URL /scripts/index.html.
form method=post
On 3 May 2001 20:19:51 -0700, YoBro [EMAIL PROTECTED] wrote:
ASP or PHP and who has the biggest market share.
Which is better is a subject of some debate. Suffice it to say that most of the
people on this list will say PHP. I personally consider ASP a good idea only if
you have a heavy
On 30 Apr 2001 00:51:13 -0700, elias [EMAIL PROTECTED] wrote:
hello.
i'm trying to detect what browser version is there...i'm using get_browser()
as it was documented:
Check to see if your browscap file is being picked up - try something like this:
echo
On 29 Apr 2001 07:19:15 -0700, Steve Haemelinck [EMAIL PROTECTED] wrote:
I thought this was because the page might be cached, but when I set the
header(cache-control: no-cache) the meta tag http-equiv=Expires
content=-1 it still produces the same effect. How can I solve this
problem?
Have
On 27 Apr 2001 19:50:04 -0700, Chris Schneck [EMAIL PROTECTED] wrote:
anywho, im having problems getting data out of the count() function i've
implemented, could anyone lend a hand?
$query = select count(fld_gender) from tbl_survey;
how exactly is it that you output data
On 21 Apr 2001 19:26:03 -0700, McShen [EMAIL PROTECTED] wrote:
then, should i do this?
---
$query = "SELECT * FROM refer ORDER BY hits desc LIMIT $i,$end";
Is $end set at this point? Also, if you always want to display 15 records, this
could just be LIMIT $i, 15.
--
PHP General Mailing List
On 19 Apr 2001 14:08:13 -0700, ..s.c.o.t.t.. [gts] [EMAIL PROTECTED]
wrote:
OOooo...
it drives me nuts when i see beginning brackets
on seperate lines ;)
i like to start brackets on the same line as the
statement and finish them on a line of their own.
Very strong agreement here. I think a lot
On 14 Apr 2001 17:31:02 -0700, DRN [EMAIL PROTECTED] wrote:
$date = $row["date"];
$new_date = date("l, j M Y, G:i:s", strtotime($date));
~~
but I cannot get this to work :(, I get an "unexpected error in
date()"
At a guess strtotime() is choking on the format MySQL used to return the date,
On 12 Apr 2001 19:20:44 -0700, Franklin Hays [EMAIL PROTECTED] wrote:
Any ideas? I have tried using stripslashes() in the 'script' above but get
errors. Is there something unique to the php cgi I am missing? Something
else?
Check your magic quotes settings on both systems using phpinfo(). I bet
On 10 Apr 2001 06:52:07 -0700, Phil Labonte [EMAIL PROTECTED] wrote:
Can anyone send me a list of large commercial web sites that use PHP?
Cribbed mercilessly from a number of sources:
http://gateway.digitaria.com/~chris/php/sites.html
--
PHP General Mailing List (http://www.php.net/)
To
On 4 Apr 2001 08:06:06 -0700, Chris Hutton [RaptorNet] [EMAIL PROTECTED] wrote:
How would I go about using PHP to take an entered password, and check it
against an encyrpted MD5 password in a database or flat-file?
retrieve the record you'd like to check and compare it to
On 4 Apr 2001 19:12:52 -0700, Frank K [EMAIL PROTECTED] wrote:
Does anyone know is there are advantages to running linux while =
developing php? I just would like to know if there is anything special =
to installing and developing on linux before I move from Win2k??
Three advantages:
-
On 3 Apr 2001 06:26:47 -0700, Justin French [EMAIL PROTECTED] wrote:
(3) Use output buffering
huh? appreciate mroe on this...
put ob_start() at the top of your page and ob_end_flush() at the bottom. PHP
will store all of the output instead of sending it to the browser. If you put a
On 3 Apr 2001 19:29:14 -0700, Brian Hardwick [EMAIL PROTECTED]
wrote:
Im trying to optimize some php/mysql code. Does anyone know a way to
measure the amount cpu time a php script consumes?
Check out the POSIX functions - in particular the posix_times() function, which
not only shows CPU time
On 3 Apr 2001 20:31:28 -0700, SED [EMAIL PROTECTED] wrote:
I think the latter part of the value is Unix-time in sec (right?), but what
does the former part say like: 0.25576700 ?!?
For some reason, microtime() returns results backwards - the first part is the
decimal portion of the second part.
On 3 Apr 2001 21:02:34 -0700, Les Neste [EMAIL PROTECTED] wrote:
Correct me if I'm wrong, but isn't it possible to fake the referrer?
Quite easily, even when doing it by hand using telnet or netcat.
This may not matter for your application -- are you writing a financial app
or a personal
On 2 Apr 2001 07:58:42 -0700, Jason Stechschulte [EMAIL PROTECTED] wrote:
// This movie simply redirects to the appropriate page.
$m-add(new SWFAction("getURL('$thisURL', ''); stop();"));
I added code to write $thisURL to a file so I could see if it is getting
passed correctly, and it is. So
On 31 Mar 2001 20:33:56 -0800, LDL Enterprise [EMAIL PROTECTED]
wrote:
Could someone please give me a clue. I have a input type=text form
that pulls the quantity from a mysql database. I want the user to be
able to update the quatity by just entering the new quantity and when
On 31 Mar 2001 21:07:59 -0800, Michael Hall [EMAIL PROTECTED] wrote:
I'm using the following expression to check input strings:
if (!ereg("^[[:alnum:]_-]+$", $string)) { get outta here! }
This works fine except for when a string has spaces, as in text. What do I
need to add to the expression
On 31 Mar 2001 22:03:54 -0800, Sean Weissensee [EMAIL PROTECTED] wrote:
I have a shopping cart system I wrote which display several detail lines
of items purchased, at the moment if the user changes a quantity they have
to manualy
click a link to recalulate the total, I would like this to happen
On 16 Mar 2001 04:39:06 -0800, Phil Driscoll [EMAIL PROTECTED] wrote:
http://www.perlmonth.com/features/benchmarks/benchmarks.html?issue=4id=9351
4159
A performance comparison of various web scripting languages. PHP does rather
well!
It's also important to note that their comment that PHP
In php.general, you wrote:
I know (at least the claim) that PHP can do marvelous thing to Flash
files (with libswf), presumably including "streaming" realtime
feedback of a script's action.
It can't. PHP can generate Flash files directly (and using Ming - it beats
libswf handily -
On 14 Mar 2001 22:11:10 -0800, Rick St Jean [EMAIL PROTECTED] wrote:
All through this process there is a live thread between your browser and
the server.
unless you send a cancel.
One minor addition - the connection will close when you hit cancel but the PHP
code can continue running if you
On 14 Mar 2001 21:39:05 -0800, Lauri Vain [EMAIL PROTECTED] wrote:
How does the behind the scenes work by PHP exactly go? Does the PHP thread
remain active so long as the information is sent to the visitor? Or will PHP
parse the code and send it to Apache which will send the data to the user
On 13 Mar 2001 03:40:30 -0800, Joe Njeru [EMAIL PROTECTED] wrote:
I'm looking for a two way encryption function that I can use to encrypt a
cookie value. I have had experience with MD5 but its one way. Is there one I
can use with a key in php?
Check out the mcrypt extension for conventional
On 12 Mar 2001 21:47:44 -0800, James Lamb [EMAIL PROTECTED] wrote:
Can PHP talk directly to the SMTP server, i know that there is a mail()
function but this cannnot specify the reply-to and from addresses easily.
Yes, but it's less work to specify reply-to and from using mail(). If you do
want
On 11 Mar 2001 10:25:25 -0800, FredrikAT [EMAIL PROTECTED] wrote:
I have 2 dates...
$start = "20010101";
$end = "20010312";
Use mktime() (http://www.php.net/manual/en/function.mktime.php) on those
strings to convert them into Unix timestamps:
$start_time = mktime(0,0,0,
substr($start,
On 11 Mar 2001 10:57:32 -0800, Michael Geier [EMAIL PROTECTED] wrote:
So don't refrain from doing it because some people say it shouldn't be done
for one reason or another. Simply fix those reasons so they don't know any
different.
I'll second this - while I personally consider HTML email a
On 6 Mar 2001 07:53:46 -0800, kevin1 [EMAIL PROTECTED] wrote:
How can I tell reliably if someone has cookies turned off?
Set a cookie on your site (perhaps the homepage?) and use code like this:
if (!empty($UserHasCookies)) {
echo 'Whew - you do have cookies';
}
On 6 Mar 2001 08:13:00 -0800, Boget, Chris [EMAIL PROTECTED] wrote:
Is it possible to use the auto prepend/append directives to
prepend/append particular files only to files with a particular
extension?
I don't believe you can do this directly with PHP but you probably can with
Apache:
On 3 Mar 2001 17:17:15 -0800, Brett [EMAIL PROTECTED] wrote:
I want to send a confirmation email upon receiving an order, and would like
to send the page that I display on the browser to the user.
ob_start();
// do something
mail('confirm@somewhere', 'confirmation', ob_get_contents());
On 4 Mar 2001 04:17:18 -0800, Thomas Edison Jr. [EMAIL PROTECTED]
wrote:
The Internet Explorer converts the spaces in a query
string into it's hexadecimal value of "%20"
automatically, but netscape is not doing so. It's not
reading the space and thus not displaying the page at
all and giving the
On 3 Mar 2001 08:02:16 -0800, Randy Johnson [EMAIL PROTECTED] wrote:
Is there anyway to convert a string to a variable
example
$str="monday";
I would like to then do this:
$monday="blah";
extract() does something like that for arrays. There's no way to write the code
the way you have it,
Does anyone know of a company which is offering or planning to offer PHP
developer certifications? Arguments against certification programs aside[1],
there are a lot of companies which prefer certified developers, even to the
point of assuming a project done in ASP will be better than the same
On 25 Feb 2001 09:15:08 -0800, Philip Olson [EMAIL PROTECTED] wrote:
ini_set ('magic_quotes_gpc', 'off');
This will not work, ini_set cannot mess with magic_quotes setting,
More precisely, it can change the setting but your PHP code will be executed
after the magic quotes work has
On 24 Feb 2001 21:31:33 -0800, Clayton Dukes [EMAIL PROTECTED] wrote:
How do I remove unwanted/unprintable characters from a variable?
$sometext =3D "Th=C0e c=D8ar r=F6=F8an over m=D6y dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Strip everything which isn't in the list
On 25 Feb 2001 00:01:30 -0800, Mark Maggelet [EMAIL PROTECTED] wrote:
On Sat, 24 Feb 2001 17:51:07 +0100, Christian Reiniger
([EMAIL PROTECTED]) wrote:
On Saturday 24 February 2001 17:18, PHPBeginner.com wrote:
in my preceding email I've written:
if($var!='')
will fix your all your worries
On 25 Feb 2001 04:37:21 -0800, Andy Clarke [EMAIL PROTECTED] wrote:
Is there a way to use PHP to tell whether a user's browser has a particular
plugin?
...
I know that this can be done using Javascript, but as this can be turned
off by the user etc, it seemed as though it would be more reliable
On 25 Feb 2001 10:34:27 -0800, Jeff Oien [EMAIL PROTECTED] wrote:
I would like to get rid of \n characters unless there
are two or more in a row. So for example if there
The Perl-compatible regular expressions support lookahead and look behind:
$str = 'abcdefabcaadd';
echo "$str\n";
$str =
On 25 Feb 2001 14:37:02 -0800, Jeff Oien [EMAIL PROTECTED] wrote:
On 25 Feb 2001 10:34:27 -0800, Jeff Oien [EMAIL PROTECTED] wrote:
I would like to get rid of \n characters unless there
are two or more in a row. So for example if there
The Perl-compatible regular expressions support
On 18 Feb 2001 20:54:16 -0800, Edith Lai [EMAIL PROTECTED] wrote:
If i want to validate a form and check for empty input which then will
produce a pop up warning dialog box, what should i do?
Read up on your JavaScript. And consider whether this is really a good idea -
many people find it
On 8 Feb 2001 06:24:20 -0800, Kato Strandjord [EMAIL PROTECTED] wrote:
How is it possible to parse a WML strin variable with a value="SO480", and
parse over to a PHP strin variabl , so you can use it to in a PFP function.
I get a error messages in M3gate WAP emulator, an UP SDK emulator telling
On 5 Feb 2001 21:27:13 -0800, Dallas Kropka [EMAIL PROTECTED] wrote:
SELECT first_name FROM admin_table, user_table WHERE userNum = 1000
The info will only be in one or the other but what (if any) is the
correct syntax?
You mean something like
SELECT first_name FROM users
On 5 Feb 2001 23:31:17 -0800, andreas \(@work\) [EMAIL PROTECTED] wrote:
a 404 php-file which extracts the path and generates a page for that out of
mysql
or is there a better solution out there ?
This approach can work and, properly done, work fairly well. However, a more
elegant approach
On 29 Jan 2001 13:38:20 -0800, kaab kaoutar [EMAIL PROTECTED] wrote:
What's best ? using client script while validating form inputs(javasript or
vbscript) or using php for validating!
The only acceptable approaches must be server side - otherwise you've just
decided that security and
On 23 Jan 2001 06:36:02 -0800, Jochen Kchelin [EMAIL PROTECTED] wrote:
How can I extract the information
about email attachments using the IMAP-functions?
Use imap_fetchstructure(). It returns a pretty large array, so you'll probably
want to spend some quality time with the documentation and
On 23 Jan 2001 07:47:03 -0800, Liam Gibbs [EMAIL PROTECTED] wrote:
Can anyone tell me how to up the max. execution time in PHP? I know it's =
been said before, but I can't remember how it's done.
You can change the value max_execution_time in php.ini, or your apache
configuration files. If you
On 18 Jan 2001 08:28:50 -0800, Eivind Trondsen [EMAIL PROTECTED] wrote:
Can someone shed any light on the internals of the session file
format? Is it documented somewhere?
We are building a system to log user paths, and are thinking of
harvesting PHP session objects to accomplish this. Has
On 18 Jan 2001 08:58:45 -0800, Brandon Orther [EMAIL PROTECTED] wrote:
I am making a script that creates a dynamic htm page. One of the many
things that this script does is change the css. The problem I am having is
that it doesn't seem to display the css when it is loaded through the web
On 18 Jan 2001 14:28:16 -0800, Chris Lee [EMAIL PROTECTED] wrote:
I dont know if you can use XHTML syntax in XML, I dont think it works like
this, I think XML is more strict.
XHTML *is* XML - it's just HTML reformulated so that a valid XHTML document can
be parsed by a normal XML parser without
On 16 Jan 2001 05:05:18 -0800, Rick Hodger [EMAIL PROTECTED] wrote:
Here's a fun little thing I discovered, possibly a bug in PHP itself?
To output a WAP page you must output a content-type header else the phone's
browser won't recognise the page. Dead simple. Use:
header("Content-type:
On 13 Jan 2001 23:45:58 -0800, Hendry Sumilo [EMAIL PROTECTED] wrote:
I would like how to refresh particular browser with a new updated data when
the user has updated it at another browser.
Purpose of doing this is particular user won't user overwrite new value if
he uses another browser to
"Monte Ohrt" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can anyone give me a list of big named sites (or point me to a list)
that use PHP?
Basically, site names that marketers can recognize as "big names", or
very well known.
I haven't had time to update
68 matches
Mail list logo