- Original Message -
From: Silvia Mahiques
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 9:04 PM
Subject: problems with php and jscript
I have written an html page with jscript and php code, but I have some problems.
The errors are in black
Hey fellow PHP-codemonkeys. :)
Let me start by laying out some facts:
SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS
driver_firstname, $CommonSQL, COUNT(g.NAME) AS number FROM ENTITY e, ENTITY
g, EXPERTISE_FILE f, DAMAGE_CASE d WHERE (f.CUSTOMER = '$CustomerID') AND
I am just learning them, but I think something like this may be in order...
I know that you would use the | (or) operator.
if(! (ereg('^[a-z|A-Z|0-9|\-]+$', $fn) (ereg('^[a-z|A-Z|0-9|\-]+$', $fs)))
{
Either $fn or $sn failed the match
}
-Jason Garber
IonZoft.com
At 04:41 PM
Hello,
I have a little question about the GD-Lib. Is it possible to parse
anti-aliassed text? This would be very interesting because anti-aliassed
buttons are more beatiful!
Thanks,
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites
if (count(preg_grep('/(([0-9a-zA-Z]+)|\-)/',array($fn,$sn)))==2){
}
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Jason G. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 10:18 AM
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Adam Whitehead) wrote:
if ((ereg([^[:alnum:]],$fn)) || (ereg([^[:alnum:]],$sn))) {
// Do something here
}
What it's doing is checking two variables to make sure they contain only
alphanumeric characters.
I have a requirement that
i have .htaccess on root of my web:
ErrorDocument 400 /e.php
ErrorDocument 401 /e.php
ErrorDocument 403 /e.php
ErrorDocument 404 /e.php
ErrorDocument 500 /e.php
When i try get via http an nonexisten html document : noneasdfaasd.html i
got result of e.php script.
When i try to get nonexisten
True. I had the attachment outside of the function (encoding once) but this
is a leftover of debugging and trying to get it to work. I hadn't thought of
Bcc-ing everybody. I'll try that, thanks. Still doesn't solve the problem,
though. Maybe a socket is the answer.
-Original Message-
Hello,
some days ago I asked help on this list because I have to develop and
test on Linux/Apache some PHP pages that will have to run on on an
IIS/NT box. On the real server the pages must manage a MS Access
database via ODBC (this mixed setup cannot be changed: explanations in
the original
Hello,
How can is check with php wether a number is even or not? What i want is
that in a while loop the background color of a cell changes!
Thanks,
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites B.V.
http://www.esites.nl
Try putting curly brackets around the if and else clauses. I'm guessing the
embeded html form counts as another statement in the program, which means
you want to execute 2 statements if the strstr is true. I ALWAYS use curly
brackets, even if I'm only executing one statemenet in my if, and
OSv How can is check with php wether a number is even or not? What i want is
OSv that in a while loop the background color of a cell changes!
Try
echo (($i++ % 2) == 0) ? #FFBR : #00FF00BR;
First it performs an integerdivision and checks if the remainder is 0.
If that is the case it
RB ?php
RB if (strstr($DomResults,$Match))
RB print Congratulations! $domain.$suffix is available!;
?
RB form method=POST action=step2.asp name=form2
RB pinput type=submit value=Register name=B1/p
RB /form
RB ?php
RBelse
RB print Sorry, $domain.$suffix is already
Tyler,
It must be something weird with your NT version of MySQL, you might try asking on
the MySQL list, or checking the bug list on mysql.com. I have an even older version
here on 95, that doesn't display any of those problems.
Here's the code I used with it's output (no duplicates, I
It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
$yesterday = mktime(0,0,0,date(m),date(d) -1,date(Y));
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites B.V.
http://www.esites.nl
Minervum 7368 Telefoon: (076) 5 730 730
4817 ZH BREDA Telefax: (076) 5 877 757
Hi,
I am relatively new to mysql - I'm developing a site using mysql php.
I need to populate a drop down menu with all of the table names in a
database.
I can do standard queries (SELECT * FROM blah WHERE ...) but I'm having
trouble returning all of the table names.
Can anyone help?
Thanks,
Hello,
The PHP manual provides a method for File Upload. The sample code is as
follows:
FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST
INPUT TYPE=hidden name=MAX_FILE_SIZE value=1000
Send this file: INPUT NAME=userfile TYPE=file
INPUT TYPE=submit VALUE=Send File
/FORM
While this
Following is a solution...
$now = getdate();
$today = date(d-m-Y);
$yesterday =
date(d-m-Y,mktime(0,0,0,$today['mon'],$today['mday']-1,$today['year']);
echo(Today is . $today . and yesterday was . $yesterday);
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Oh what a big mistake...sorry!
$now = getdate();
$today = date(d-m-Y);
$yesterday =
date(d-m-Y,mktime(0,0,0,$now['mon'],$now['mday']-1,$now['year']);
echo(Today is . $today . and yesterday was . $yesterday);
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hallo Damien,
Tuesday, November 13, 2001, 10:39:31 AM, you wrote:
I am relatively new to mysql - I'm developing a site using mysql php.
I need to populate a drop down menu with all of the table names in a
database.
I can do standard queries (SELECT * FROM blah WHERE ...) but I'm having
This time VERY non-php, but I trust you guys! ;)
Are Java applets stored automatically to cache? Can I prevent it
somehow?
Niklas
[EMAIL PROTECTED] (Harry Lau) wrote:
It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
echo date(m-d-Y, mktime(0,0,0,date(n), date(d)-1, date(Y)));
--
Henrik Hansen
--
Hi, I'm hoping someone can help me with this one...
I'm doing redirects to various types of file (Flash, Office, DWF etc) and
have found a problem with IE5.
I pass the script a document ID, and it retrieves the document record from
a database, which stores the location of the file on the web
Hi,
Right I'm still pretty new to server side programming and have a few
questions regarding the possible uses of existing technology in 'low-tech'
(not 3d FPS/RTS/RPGs) online games. As I understand it PHP is used to add
dynamic content to HTML (from MySQL database for example) and it is also
Third db question today: do folk know there is a (lightly loaded) '[PHP-DB] list' with
some v.competent members?
Hi Alexander,
- Original Message -
Let me start by laying out some facts:
SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS
driver_firstname,
Rudolph,
Mail() is v.finicky!
Windows machines need more than the \n - what are you running?
Have you tried putting some string of characters into the (text) msg body?
Can you send us a copy of the actual email msg showing the headers etc (output as
received at the POP/IMAP
server) - after
strtotime('yesterday') should work!
Harry Lau [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
Hallo Daniel,
Tuesday, November 13, 2001, 11:31:49 AM, you wrote:
Hi,
Right I'm still pretty new to server side programming and have a few
questions regarding the possible uses of existing technology in 'low-tech'
(not 3d FPS/RTS/RPGs) online games. As I understand it PHP is used to add
Hi!
For the programming language, I would go with PHP over any other. Yes,
yes, there's no best language for every task, but with your C++ background
it should be easy to develop advanced techniques on PHP than on others on
short time.
Depending from what you meant with 'background apps
Hi All
I have a client who has presented me with a near finished website that uses
frames. She would like me to build a simple PHP cart into it. I've built simple
carts before without drama, but this one has me baffled. I have avoided using
frames in almost everything I've done to date and don't
Thanks but I am still having problems, $DOCUMENT_ROOT does not seem to
work(I am using an NT4 server), I cannot use an absolute path as the content
management software that is running has a tendency to strip them out!
It seems (to me) that it is a precedence problem, as it does not look in the
Good day!
Some time ago I tried to create game server for games on line(people with
people)... poker, preferance, chess and so on well as I was wery new in
this action I tried diferent languages and even operation systems.
At last (for some hawy rezons :-) ) I stoped on Client-Server
Yes, you can do it, but this is not a PHP feature, it is an HTML trick, the
only thing you need to do is create a page which contains a frame only (yes
neither two or more, only one frame). Then, when you select a link on this
page the URL displayed on the browser does not change. This is a
I just want to know how to make a form inside a form get to respond or
dont make any browser errors?
It looks someting like this :
form
input type = text
input type = text
form
select onchange = this.form.submit(); //This must
change the next select
I don't think that you can nest forms.
George
- Original Message -
From: De Necker Henri [EMAIL PROTECTED]
To: PHP-General (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 1:09 PM
Subject: [PHP] Form's : making me sick!
I just want to know how to make a form inside a form
You cannot nest forms however if you set the action to the same page and
submit the entire form to itself, then you can use javascript to change the
action to the eventual target by using an onChange event on the final field:
input type=text name-lastField
Hi everybody,
I would like to declare/redeclare a function twice in the same doc. Is it
possible to unset/undeclare the function and include it again a second
time? I have searched the manual but can´t find anything useful, any ideas?
TIA
Michael
--
PHP General Mailing List
I think it's not possible.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Michael Cronström [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 3:13 PM
Subject: [PHP] Redeclare a Function
Hi everybody,
I
Couldn't you also make your initial page a php page? So then you would
have onChange as Steffan says but then pass the values to self.php?vars
which would then be used by the php page to fill in the next select with
vars?
Hope that makes sense..
On Tue, 13 Nov 2001, PACKER, Steffan wrote:
OK.Please give some code that i can work with.I have heared about self.php
but dont have any idea how it works.
I am using php with my two select's but how will i get the first one to
respond to some change?At this stage i just dont have any idea!
-Original Message-
From: Ashwin Kutty
its possible to create lambda-style functions with create_function() and
redeclare the variable functions
---
$funct = create_function('$x', 'return ++$x;');
echo $funct(10);
$funct = create_function('$x', 'return --$x;');
echo $funct(10);
---
its fun to create array's of functions :) try it
I got something similar and it had to do with a corupted binary file. It could have
been on a
download or the upload to the install directory.
thats the only problem I had. have you tried running ? phpinfo(); ? you should see a
ZendOptimizer line if its running.
--- Robert Kemp [EMAIL
I have a php script I'd like to run at regular intervals, but my isp will
not set a cron job for it but will for a perl script
Is there anyway round tis, or does anyone one know of a perl script that
might then execute the php script if I can get that to be automated?
thanks
--
PHP General
Thanks Joffrey
You learn everyday
Michael
its possible to create lambda-style functions with create_function() and
redeclare the variable functions
---
$funct = create_function('$x', 'return ++$x;');
echo $funct(10);
$funct = create_function('$x', 'return --$x;');
echo $funct(10);
---
If you use a form with method=GET and submit it all the field names and
values are stored in a global associative array called HTTP_GET_VARS as
name/value pairs.
Steffan
-Original Message-
From: Peter Tilm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:16 PM
To: [EMAIL
Hello,
this question should be ask to a flash forum, php would never open a
window!!
I used this class to achieve what you asked
(http://www.hotscripts.com/Detailed/8970.html)
but I know nothing about flash...
py
- Original Message -
From: dharvell [EMAIL PROTECTED]
To: [EMAIL
On Tue, 13 Nov 2001, Caspar Kennerdale wrote:
I have a php script I'd like to run at regular intervals, but my isp will
not set a cron job for it but will for a perl script
Is there anyway round tis, or does anyone one know of a perl script that
might then execute the php script if I can
how did you plan on running php from cron? however you do that you could run
a perl script that just makes a system call and does the same thing
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:04 AM
To: Php-General
Subject:
i´m new in PHP. What does the expression:
$ref=$GLOBALS[HTTP_GET_VARS][ref];
$id=$GLOBALS[HTTP_GET_VARS][id];
do?
It gives you the content of the querystring variable ref and id. eg.
page.php?id=20ref=value
What is $GLOBALS?
$GLOBALS is an array wich contains all the varibles in the
Hello,
I use a lot Flash with PHP. I really don't understand why your browser opens
a new window. Could you tell me exactly which function you run
(loadVariablesNum ...) and which browser you are using. (MAC IE5 doesn't
work well with loadVariablesNum.
Eric
www.b-tween.com
web design
On Tue, 13 Nov 2001, Jack Dempsey wrote:
how did you plan on running php from cron? however you do that you could run
a perl script that just makes a system call and does the same thing
[blah.php]
#!/path/to/php -q
do_stuff();
[/blah.php]
Then just add a record to user crontab, running
His list,
I have some images stores in a mysql database and now i need to recover them
to put in a html. My question is there's a way to do this in the same page,
I mean, withou the need to buil another php page that process th image?
Something like a function that output the image to the img
how did you plan on running php from cron?
Well, this works for me:
0 3 * * * lynx -dump http://mysite.com/mypage.php /dev/null
HTH
Jon
**
'The information included in this Email is of a confidential nature and is
hi,
i´m new in PHP. What does the expression:
$ref=$GLOBALS[HTTP_GET_VARS][ref];
$id=$GLOBALS[HTTP_GET_VARS][id];
do?
What is $GLOBALS?
What are the parameters [HTTP_GET_VARS][ref]?
thanks
Peter
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
PHP General
I currently have a script which gathers information from a site, adds a new
variable and then resubmits it as a post back to the originating script.
I need to gather the header information from the final response to
categorise the errors received. At the moment the error I get is not
consistant
PHP will do fine. What's the project? I'm a wannabe game developer, and I
had a bit of fun a few months back with randomly generated, but
reproducable, game worlds (in my case it was a star map for a space conquest
type of game). It's a really neat concept, and its how alot of the 'big
world'
If I understand you right, then what you want is just impossible.
You have to give a source as filepath. You can't put the binary picture data
into the same output.
What you could is to have a file which calls itself with params telling it
to output now the image instead of the html e.g.
thanks jonwas more of a 'how are you going to' rather than 'how is it
possible' :-)
either way, from lynx or from php being a cgi a simple shell script or perl
script should be able to make the appropriate call...
jack
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
In a form you can't really have 2 submit buttons.
Either a submit submits or it is just a button.
That's because the var name is already submit (check out your
http_post_vars).
And you have it twice!
Change one of them and make it just a button (HTML4).
Recheck your post-vars.
This should help.
another option could be to make the choice between delete and update two
radio buttons with the same name and just have the one submit button, then
add extra logice to your PHP script to either delete or update depending on
the value of this field.
good luck!
Steffan
-Original Message-
Fans!
I need your help, but first you must worship me.
Does PHP have a flakey file upload limit? Or what could be wrong?
max_upload_size and all that is set to 32Mb.
post_max_size is also set to 32Mb.
max_exec_time is set to 0 (unlimited).
apache's timeout is set to 1800 (30 mins).
And my 6Mb
The Big Roach wrote:
In a form you can't really have 2 submit buttons.
Either a submit submits or it is just a button.
That's because the var name is already submit (check out your
http_post_vars).
And you have it twice!
Change one of them and make it just a button (HTML4).
Recheck your
thanks for the ideas
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 15:23
To: Jon Haworth; [EMAIL PROTECTED]
Subject: RE: [PHP] cron not allowed
thanks jonwas more of a 'how are you going to' rather than 'how is it
possible' :-)
Hello,
first of all I didn't exactely know where the right place is to ask this
question.
Well, my problem is that I just had some exams and am very unhappy on
how certain things were rated.
There's especially one question and I try to translate it as exact as
possible:
When is it possible
Hello Pat,
Tuesday, November 13, 2001, 4:10:31 AM, you wrote:
PH I'm doing my senior exit project on database languages online. I'm asking
PH for help from anyone who can provide any information on the comparison
PH between the different languages. I'm comparing languages such as PHP, ASP,
PH
Brian C. Doyle wrote:
Hello all,
Does PHP have the ability to control a serial port? I see we can use
the Printer but that was All I saw.
I guess you may fopen COM1: or COM2:
You should be able to fopen PRN: or LPT1: as well.
--
PHP General Mailing List (http://www.php.net/)
To
hello
we want to save every word of a text in an array field.
we want to solve the problem without split.
Here's our code:
$str=eins zwei drei vier fünf sechs;
preg_match('(\w+)(\s+\w+)*',$str,$Wort);
$n=count($Wort);
for($i=0;$i$n;$i++){echo $i: $Wort[$i]br;}
The result is:
0: eins zwei drei
Try this code:
$str=eins zwei drei vier fünf sechs;
$Wort = explode (' ',$str);
$n=count($Wort);
for($i=0;$i$n;$i++){echo $i: $Wort[$i]br;}
It should works
Zliy Pes [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
?
$str=eins zwei drei vier fünf sechs sieben acht neun;
if (preg_match_all(/\w+/, $str, $matches))
{
$words = $matches[0];
var_dump($words);
}
?
viele Grüße,
lallous!
Ewald Schoeller [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hello
we want
Interesting because I have used multiple submit buttons on forms for years.
Each can have a different name, and even if I use the same name for all of
them, which I often do, each can have a separate value. Each will cause all
other form fields to transmit their variables in their usual manner,
Hi,
Can anyone recommend a good place on the web to learn about user
authentication.
I want users of my site to login with a username password - once they are
logged in they can see information customised to each separate user.
Without being logged in the won't see any valuable information.
Hi there. I have a small php app connected to sqlServer db. The app is used
as a code library for various programming languages. Basically, a code
repository. My problem is this, I would like to be able to insert the code
for a function (the actual code) into the db. However, I keep running into
http://www.google.com/search?q=php+mysql+user+authenticationbtnG=Google+Search
First hit's a winner :)
Damien Burke wrote:
Hi,
Can anyone recommend a good place on the web to learn about user
authentication.
I want users of my site to login with a username password - once they are
Hi Stephan,
IMHO, I think the answer requested is the only one that really makes
sense - as soon as I read it, _my_ first thought went to scope.
If a variable changes values, the other value is no longer usable, and
thus there aren't really two variables with the same name in that case.
When
Hi everybody, this is my first time writing in this list.
I have the next problem:
I have a page called
login.php
and when I log in, there's a new page who receive the user and the
password, and this page is called
main.php
This page, check if the user have a valid account
BTW, the official explanation is wrong.
local part this variable is destroyed and declared again
is incorrect. The global variable is not destroyed. The local namespace
pushes the variable name onto the stack and gives it a value for the
duration of the function. Every time you try and access
I need to check variables for blank values but it appears that is_null and
== return true if there is a space.
Any other suggestions?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave
that part to your imagination. Bad guys might take advantage of that :)
http://www.google.com/search?q=php+mysql+user+authenticationb
tnG=Google+Search
First hit's a winner :)
--
PHP General
trim(); it before?
--
Julio Nobrega
No matter where you go, this.
Spunk S. Spunk III [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I need to check variables for blank values but it appears that is_null and
== return true if there is a space.
Any other
Hi!
I'm trying to send a mail with password to the new user of my website, but
. Does anyone know how to put the variable inside my mail?
I have tried this:
--
else {
// sende kundeopplysninger til databasen
$db = mysql_connect(localhost, root);
A space is a valid string. Are you sure there is a space?
?
$a = ' ';
if($a == '') {
echo a is blankbr;
} else {
echo a is not blankbr; // this is printed
}
if(is_null($a)) {
echo a is nullbr;
} else {
echo a is not nullbr; // this is printed
}
?
Kirk
I need to check variables
I'm feeling dumb!
The Basic Problem
=
Basically all I want to do is to output each day in turn from 1900 i.e.
01-Jan-1900
02-Jan-1900
03-Jan-1900
etc.
But date() won't accept dates pre 13-Dec-1901
and mktime doesn't like anything pre 01-Jan-1970.
I know I can get mysql to do
Hi
We encountere some problems with our Squid-Proxy.
When we user direct internet connection the sky was the limit,
but with our Proxy, the limit was 2MB...
Sebastian
-Ursprüngliche Nachricht-
Von: The Big Roach [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. November 2001
Hi,
I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Windows.
I'm trying to access the $QUERY_STRING var, but it's empty even when I
do have a query string. On one server (Win2K), it works ok. On the other
server (WinXP) it's always empty.
If I use index.php?s=1, $HTTP_GET_VARS['s'] is 1,
I'm trying to run a script in my server (IIS 5) that uses the function
getrusage(), but it returns the following warning:
Warning: getrusage() is not supported in this PHP build in file_name.php on
line 377
Does anyone know how I can solve this problem?
Thanks in advance.
--
PHP General
Thanks Sebastian,
I'll take a look at our proxy logs.
I've also discovered a perl script deep in the bowels of our servers which
seem to be a problem.
Here's an error log excerpt:
POPSTACK
panic: POPSTACK
panic: POPSTACK
panic: POPSTACK
panic: POPSTACK
panic: POPSTACK
[Tue Nov 13 13:26:57 2001]
Try getenv() function to import the query string from apache ambient.
This is not a bug, maybe the index.php?1 isn't standard at all.
Ernesto [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Windows.
- Original Message -
From: Gustavo Luis Pereira Verly [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 2:26 PM
Subject: [PHP] Expiration problem
Hi everybody, this is my first time writing in this list.
I have the next problem:
I have a page called
Nop. getenv(QUERY_STRING) also returns an empty string.
The crazy thing is that getenv returns an empty string instead of FALSE.
Anyway, if I do index.php?a=1, I get HTTP_GET_VARS['a']==1, but
$QUERY_STRING is still empty :(
dav wrote:
Try getenv() function to import the query string from
1.7303379774094 seconds with strtr()
1.557923078537 seconds with preg_replace()
1.494078040123 seconds with str_replace()
1.4984160661697 seconds with ereg_replace()
/* source ---8---*/
?php
$files = array(html1.html, html2.html);
$strtr_rep = array( pre = PRE,
li=LI,
tr =
1.7303379774094 seconds with strtr()
1.557923078537 seconds with preg_replace()
1.494078040123 seconds with str_replace()
1.4984160661697 seconds with ereg_replace()
/* source ---8---*/
?php
$files = array(html1.html, html2.html);
$strtr_rep = array( pre = PRE,
li=LI,
tr =
Hi there,
I am trying to put after .php an information like:
.php/1234
This is because I am trying to build a searchfriedly URL like described in
http://www.zend.com/zend/spotlight/searchengine.php#3
The problem is... it does not work I get an server error. As soon as there
is a slash and
This problem took a while to figure out. I'm posting the solution so that =
other's may find this example. If you know of a better way, please reply. =
:-)
Cheers,
Rob
Problem: Generate Future Dates:
Sub-Problem: Future Dates are Dictated by Record Type (Permanent or =
Temporary)
The Script:
I RTFM but did not find a solution. My head hurts from banging it against =
the wall. :-P
Apache, OpenSSL, MySQL and PHP work fine... but the PDF libraries will not =
work. I used the following configure commands:
PHP: './configure' '--with-mysql=3D/usr/local/mysql/' '--with-xml' =
Hi guys, I know that you can take todays date and display it as the
numeric day of the year, 1 - 365 / 0 - 364 etc.
But can you take a date such as (November-30-1971) and convert that to
the numeric day of the year?
I have been trying to do this but have had no joy, I don't think my code
is
According to the docs, it says to check your systems man pages for
getrusage. Since they appear to referencing *nix system (no man in NT), my
guess is that NT does not support it. In fact, executing getrusage at the
NT command prompt gives the 'not recognized internal or external command'
error.
On Tue, 13 Nov 2001, Martín Marqués wrote:
I have tried starting a session in the main frameset file, then adding
?=SID? to the URLs of the frame files, which sort of works but breaks
where JavaScript is used for buttons in one of the frames. JavaScript
doesn't seem to cope with the PHP
Hi Richy,
Try sending the content header before the location header:
header(Content-type: image/jpeg);
header(Location: http://yourhost.com/yourfile.jpg;);
HTH,
John
Hi, I'm hoping someone can help me with this one...
I'm doing redirects to various types of file (Flash, Office, DWF etc)
Hi Ernesto,
Try taking a look at the HTTP_SERVER_VARS array:
test.php?1
HTTP_SERVER_VARS[argc] = 1
HTTP_SERVER_VARS[argv] = array([0] = test)
XPerience the new windows (scary!) :)
John
Nop. getenv(QUERY_STRING) also returns an empty string.
The crazy thing is that getenv returns an
1 - 100 of 154 matches
Mail list logo