Just use PHP to do it.
To check if an account with that username exsists just use the
mysql_num_rows function and a 'die' statement.
Then use SQL/PHP code to log the information in a database and just echo
the success text at the bottom of your code.
Simple.
On 3:21:47 am 08/04/2006 "Ryan A
Comment inline:
P. Guethlein wrote:
(Know enough to be dangerous beginner...)
Routine for a web login asked user name and password.
User Name is entered correctly.
Password is Incorrect.
Next Try.
User Name is enter correctly.
Password is Entered Correctly.
PHP notifies me on the html out
Man,
Anothers good books:
- PHP|Architect's Guide to PHP Design Patterns, ISBN: 0973589825
- PHP 5 Objects, Patterns, and Practice, ISBN: 0973589825
On 4/8/06, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Paul Goepfert wrote:
> > Hi all,
> >
> > Can anyone tell me a good php book to buy. I alr
Tedd,
I think Brad was just making some observations, he wasn't trying to be rude.
When he said that "the time differentials are too be expected." I think he
was just answering the question of why the exact same FOR loop could
possibly take different amounts of time to execute under the same condi
(Know enough to be dangerous beginner...)
Routine for a web login asked user name and password.
User Name is entered correctly.
Password is Incorrect.
Next Try.
User Name is enter correctly.
Password is Entered Correctly.
PHP notifies me on the html output that I am logged in. However, an
At 2:21 AM +0200 4/8/06, Ryan A wrote:
This is what i want to use it for:
Client comes to site, wants to make an account, I check if the username he
entered is not already in use, if already in use I print out a failute
message in red on the screen if not in usei make his account and print
ou
Paul Goepfert wrote:
Hi all,
Can anyone tell me a good php book to buy. I already have Web
Database Applications with PHP & MySQL by O'Reilly.
Thanks,
Paul
Professional PHP5 by WROX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ryan A wrote:
Just been googleing and trying out different AJAX frameworks..:
From PEAR HTML_AJAX
Gauva
My-Bic
AjaxAC
and quite a few moreand it happened, I confused myself :-(
For some reason HTML_AJAX is not working on my local machine (windows based,
I am getting runtime errors with the
Hello,
on 04/08/2006 12:11 AM Webmaster said the following:
> I'm not sure if this is the right list to ask this on or not
>
> Here's the situation... my php scripts were generating emails as
> expected. I was shocked when they told me that exim was not responding
> to requests on port 25 an
Hello,
I'm not sure if this is the right list to ask this on or not
Here's the situation... my php scripts were generating emails as
expected. I was shocked when they told me that exim was not responding
to requests on port 25 and had to be restarted. So, PHP communicates
with exim inte
Perhaps try implementing some AJAX on the page. Therefore, once the page has
loaded, the select tag is populated with different options, without actually
lagging the page.
""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
I have a form for user interaction and p
Hello,
on 04/07/2006 09:21 PM Ryan A said the following:
> For some reason HTML_AJAX is not working on my local machine (windows based,
> I am getting runtime errors with the examples) and it seems quite
If that is XMLHttpRequest based, that is not surprising. Under IE6,
XMLHttpRequest objects ar
On 4/8/06, Pablo L. de Miranda <[EMAIL PROTECTED]> wrote:
> I has modified my code to this, notice wich all directories that I
> refer is in the root of application:
>
> // File Controller.php in directory controller:
> $file = '../util/ClassUtil.php';
> echo $file.'';
> include $file;
> $service =
updating by user click for now. I might change that in the future to
update by interval.
Paul
On 4/7/06, tedd <[EMAIL PROTECTED]> wrote:
> At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:
> >Hi all,
> >
> >I am postilng pictures up on a website. So far I have a picture per
> >page. This will get
-B
At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote:
How is the CPU not in question? Does this script run on air?
I did not say that. I said that it was not MY CPU that was involved
and it isn't.
It may not be YOUR CPU, but it is still a CPU bound by the sceduling
algorithm of the Operating
At 12:35 PM -0500 4/7/06, Bing Du wrote:
Thanks for the response.
That way is secure and has nothing to do with register_globals ;)
Good. That's what I wanted to hear. I know by default some pre-defined
global variables can be accessed through $GLOBALS. If I don't want end
users to add t
Hey,
Just been googleing and trying out different AJAX frameworks..:
>From PEAR HTML_AJAX
Gauva
My-Bic
AjaxAC
and quite a few moreand it happened, I confused myself :-(
For some reason HTML_AJAX is not working on my local machine (windows based,
I am getting runtime errors with the examples)
On Friday 07 April 2006 16:41, tedd wrote:
> Note, it's not actually required to have a variable to be evaluated
> for each case statement. Each case statement stands on it's own
> independent from the evaluation.
>
> This has always worked for me in other languages and I am assuming
> that it work
At 10:50 PM -0400 4/6/06, sgsweb wrote:
Hi Tanner,
Here's a completely working piece of code that I got from my hosting
company. This looks like it does exactly what you want to do. I am
also including the output in the bottom of this e-mail.
sunil.
Was that for php 5? I couldn't get it
Anyways, I think this debate is pretty much pointless now, you've
clarified your point of view (sort of) and I'll just run with the final
though that you limit your use of switch to case where elseif would be
needed... and to clarify on my part once more, I did not call that
asinine.
Cheers,
Rob.
On 4/8/06, Pablo L. de Miranda <[EMAIL PROTECTED]> wrote:
> Hey Guys,
> I have the code below:
>
> $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php';
> echo $file.'';
> require_once($file);
>
> $service = ClassUtil::loadClass('service.FormularioService');
>
> And the output in browser:
>
> http
> Personally, as I said before, I use if/else for two conditions and
switch for three or more. Your mileage may vary, but it's truly a
> matter of choice and is not one of asinine methodology.
> tedd
I think that's a fairly good methodology to follow. I usually do that...
except when
if it's job related, you may even get your co. to pay for it.
On 4/7/06, Jad madi <[EMAIL PROTECTED]> wrote:
>
> in my case the salary increment is more valuable than the $400
>
>
>
> On Sat, 2006-04-08 at 00:24 +0200, Rory Browne wrote:
> > My info may be dated but AFAIK the exam is $200 - so wha
can you do a dump of what $file is?
Seems the path is incorrect.
On 4/7/06, Pablo L. de Miranda <[EMAIL PROTECTED]> wrote:
>
> Hey Guys,
> I have the code below:
>
> $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php';
> echo $file.'';
> require_once($file);
>
> $service = ClassUtil::loadClass(
My ISP has php5 with all the xml goodies installed, I'm not sure if that's
typical or not, php5 is still relatively new for shared hosting providers to
rollout. My previous ISP only has php 4.
On 4/7/06, jonathan <[EMAIL PROTECTED]> wrote:
>
> I'm working on a piece of an application that we'd l
At 9:19 PM +0200 4/6/06, [EMAIL PROTECTED] wrote:
Hi to all,
session_start();
$_SESSION['sessid'] = session_id;
echo $_SESSION['sessid']; will show e.g. 699e506bd42ea402985dce24a0ef9
After:
unset($_SESSION['sessid']);
$_SESSION['sessid'] = session_id();
I'm getting the same SID again.
I tr
At 4:59 PM -0400 4/7/06, Robert Fitzpatrick wrote:
I have an order table that we are trying to figure out a way to find the
best (cheapest) scenario to sending to vendors to fill the orders. Let's
say we have 10 parts ordered, if we split that amongst vendors, even
paying a higher shipping cost i
At 9:14 AM -0500 4/7/06, Ed Curtis wrote:
Can you call getimagesize() multiple times in one script? I'm trying to
use it multiple times but it only seems to work in the first loop I call
it in. I read something in the docs about it cacheing the results and
didn't know if this has something to do
At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:
Hi all,
I am postilng pictures up on a website. So far I have a picture per
page. This will get not be very efficient as time goes on. Is there
anyway that I can have one page with only the image updating? Can
this be done in PHP. If it can woul
At 1:52 PM -0500 4/6/06, Chris Boget wrote:
The way I understand it, pass by reference in php is determined in
the function definition and not the function call. Something like:
You used to be able to pass by reference at run time. But I see that is
no longer allowed... :| So I guess that mak
At 1:24 PM -0500 4/6/06, Chris Boget wrote:
Is there a way to test to see if a function argument was passed by
reference instead of by value?
thnx,
Chris
Chris:
As I am sure you know, passing by reference is simply passing the
memory address of the variable to a function instead of it's val
At 02:41 PM 4/7/2006, David Clough wrote:
I have to parse the string 'Hello $foo' as it comes from the
database: I don't get to construct it.
I did hold out more hope for the eval function, but it seems to me that
this is for PHP code in a database, not to evaluate variables.
David, please tr
I'm working on a piece of an application that we'd like to distribute
to other sites. Basically, it would be a REST application where the
client would transform the xml into html. I'd like to xsl for the
transformation but was curious about how prevelant xsl is installed
in a shared hosting
in my case the salary increment is more valuable than the $400
On Sat, 2006-04-08 at 00:24 +0200, Rory Browne wrote:
> My info may be dated but AFAIK the exam is $200 - so what if you have
> to take one one month and another the next? That (assuming PHP5 was
> the same price) would still only b
Hey Guys,
I have the code below:
$file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php';
echo $file.'';
require_once($file);
$service = ClassUtil::loadClass('service.FormularioService');
And the output in browser:
http://localhost/egressos/util/ClassUtil.php
Fatal error: Class 'ClassUtil' not f
On Friday 07 April 2006 15:24, Rory Browne wrote:
> having both will give you that long_time_user status.
Good point. Thanks :)
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099
--
PHP General Mailing List (http://www.php.n
My info may be dated but AFAIK the exam is $200 - so what if you have to
take one one month and another the next? That (assuming PHP5 was the same
price) would still only be $400. I don't want to sound petty, but what's
another $200 for a second certification - having both will give you that
long_t
If taking the exam now makes different to you then go for it, actually I
scheduled the exam 29 April bluntly just for the sake of salary
increment heh
On Fri, 2006-04-07 at 14:33 -0700, Ray Hauge wrote:
> Hello All,
>
> I've been thinking about taking the ZCE test. I want to, but I also want i
Dear Paul,
this is exactly the problem: the string including the dollar sign comes
from the database.
The problem I have is that the echo statement parses the $bar reference,
but not the $foo reference within it.
So
echo $bar
generates
Hello $foo
which is better than
$bar
but d
Thanks for all these responses, but unless I'm missing something none of
them work for what I need. Quotes are irrelevant: with the string "Hello
$foo" in $bar
echo "$bar"
echo $bar
both produce
Hello $foo
and
echo '$bar'
produces
$bar
I can't use any of the answers l
Hello All,
I've been thinking about taking the ZCE test. I want to, but I also want it
to be current for as long as possible. Should I wait for it to be revised
for PHP5, or are they even going to update it? I just don't want to end up
taking it and then a few months later have it be "outdat
I have an order table that we are trying to figure out a way to find the
best (cheapest) scenario to sending to vendors to fill the orders. Let's
say we have 10 parts ordered, if we split that amongst vendors, even
paying a higher shipping cost in some cases can be cheaper. We can send
2 of those p
On Friday 07 April 2006 1:56 pm, Chrome wrote:
> Backticks (`) encapsulate table or database names
>
> I was thinking maybe if the array references were encapsulated in curly
> braces {}:
>
> $_POST['model'] to {$_POST['model']}
>
> Of course if the field in the DB isn't numeric this would be
> '{$
Mi vote goes to the curly braces
The error is given by php, not by SQL
When exploding variables within double quotes it is hard for php to
distinguish when a variable end unless it is a simple variable like $foo.
When it is an array element and even worst, when it is an element of a
multidime
On Friday 07 April 2006 12:56, Chrome wrote:
> Of course if the field in the DB isn't numeric this would be
> '{$_POST['model']}'
>
> Dan
That's what I was thinking. Even if data is a number, I still generally put
quotes around it to make sure I don't have an issue.
--
Ray Hauge
Programmer/Sys
Tom Chubb wrote:
Complete code...
$insertSQL = "INSERT INTO cars (model, `year`, details, price, image1,
image2, image3, forsale) VALUES ($_POST['model'], $_POST['year'],
$_POST['details'], $_POST['price'], $_FILE['image']['name'][0],
$_FILE['image']['name'][1], $_FILE['image']['name'][2], $
thanks for the clarification, I guess the other solution would be to
avoid using names with special meaning for column names...
-B
Ray Hauge wrote:
On Friday 07 April 2006 12:53, Joe Henry wrote:
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = "INSERT INTO cars (model,
Backticks (`) encapsulate table or database names
I was thinking maybe if the array references were encapsulated in curly
braces {}:
$_POST['model'] to {$_POST['model']}
Of course if the field in the DB isn't numeric this would be
'{$_POST['model']}'
Dan
---
http://chrome.me.u
On Friday 07 April 2006 12:53, Joe Henry wrote:
> On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
> > $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1,
>
> Not sure if this is your problem, but those look like backticks around year
> instead of single quotes. Should there eve
Complete code...
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
Untitled Document
Model:
Year:
Details:
Price:
Image1:
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
> $insertSQL = "INSERT INTO cars (model, `year`, details, price, image1,
Not sure if this is your problem, but those look like backticks around year
instead of single quotes. Should there even be quotes there?
HTH
--
Joe Henry
www.celebrityacces
why do you have single quotes around year?
-B
Tom Chubb wrote:
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPAC
Tom Chubb wrote:
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STR
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in
C:\apache2tr
[snip]
>[snip]
>Am seeking for a solution to obfuscate php code on the server side, so
>if i decide to sell php closed source applications, i can encode the
>source code.
>
>Thanks for your help
>[/snip]
>
>No problem, we are always glad to answer questions. You're welcome.
>
>
Hey Jay,
Better ad
At 04:05 PM 4/7/2006, you wrote:
[snip]
Am seeking for a solution to obfuscate php code on the server side, so
if i decide to sell php closed source applications, i can encode the
source code.
Thanks for your help
[/snip]
No problem, we are always glad to answer questions. You're welcome.
At 01:06 PM 4/7/2006, Kevin Davies - Bonhurst Consulting wrote:
Hi,
Apologies if this is the wrong place for this question, but I'm sure there
are some experts out there who might be able to point me in the right
direction... :)
I'm doing some work at the moment where remote teams can submit r
[snip]
Am seeking for a solution to obfuscate php code on the server side, so
if i decide to sell php closed source applications, i can encode the
source code.
Thanks for your help
[/snip]
No problem, we are always glad to answer questions. You're welcome.
Did you google?
--
[snip]
Can anyone tell me a good php book to buy. I already have Web
Database Applications with PHP & MySQL by O'Reilly.
[/snip]
Core PHP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Am seeking for a solution to obfuscate php code on the server side, so
if i decide to sell php closed source applications, i can encode the
source code.
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Can anyone tell me a good php book to buy. I already have Web
Database Applications with PHP & MySQL by O'Reilly.
Thanks,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Am 2006-04-03 11:58:39, schrieb Wolf:
> I tend to stick "/nav/header.php" in for my includes, since I control
> the server.
>
> As long as the site translates root to the main directory of your
> website and not somewhere else, you can always have your links be
> "/menu.php" as server-speak "/" me
On Fri, 2006-04-07 at 11:57, tedd wrote:
> Ray said:
>
> >I'm pretty sure he's ONLY talking about IF/ELSEIF and not IF in general.
> >That's what I got from the message. Correct me if I'm wrong.
>
> Of course, you're absolutely right -- I said specifically IF/ELSEIF.
> My objection is not with
Jay Blanchard wrote:
[snip]
I am postilng pictures up on a website. So far I have a picture per
page. This will get not be very efficient as time goes on. Is there
anyway that I can have one page with only the image updating? Can
this be done in PHP. If it can would someone explain it to me.
Use double quotes/
On 07/04/06, David Clough <[EMAIL PROTECTED]> wrote:
>
> I've been bashing my head against the wall on this, and would be glad of
> help to stop.
>
> I have a variable containing a string that contains the names of
> variables, and want to output the variable with the variables
On Friday 07 April 2006 08:57, tedd wrote:
>
> Personally, as I said before, I use if/else for two conditions and
> switch for three or more. Your mileage may vary, but it's truly a
> matter of choice and is not one of asinine methodology.
>
> Thanks to all who replied.
>
> tedd
>
> --
> --
Frank,
It sounds like you need to run this as a job through crond. I'm not sure
what the OSX version is (maybe they have a port of crond?) but you could set
that up to execute the specific code, as root, whenever you want. As far as
I can think, and maybe Chris Shifflet can confirm/deny this, you
I just realized that I could check your version, and it appears that we've
found the problem. You're running PHP 4.3.10, so I'd suggest using the non
PHP5 work around on php.net's site.
Cheers!
- Joe
On 4/7/06, Joe Wollard <[EMAIL PROTECTED]> wrote:
>
> Tedd,
>
> The only way that I can even thi
Tedd,
The only way that I can even think of this as being possible is if you call
microtime() instead of microtime(true). The former will return 'msec sec'
separated by a space which can produce a negative number because you've
essentially got two different types of measurements there. IMHO PHP sh
Thanks for the response.
> That way is secure and has nothing to do with register_globals ;)
>
Good. That's what I wanted to hear. I know by default some pre-defined
global variables can be accessed through $GLOBALS. If I don't want end
users to add their own user defined variables in the supe
I wrote:
You need to EVALUATE the string coming from the database:
Assuming that $sDataField contains the string 'Hello $foo':
$foo = "cat";
$sText = eval($sDataField);
RESULT: $sText = "Hello cat"
http://php.net/eval
I was assuming that you meant that the string "Hello $fo
At 09:37 AM 4/7/2006, David Clough wrote:
I have a variable containing a string that contains the names of
variables, and want to output the variable with the variables it
contains evaluated. E.g.
$foo contains 'cat'
$bar contains 'Hello $foo'
and I want to output $bar as
Hello cat
T
Or change the quote style to double (")
Just another option
Dan
(If I'm right this time... I really can't afford 88AUD/hr... :) )
---
http://chrome.me.uk
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 18:12
To: David Clough; php-g
[snip]
I have a variable containing a string that contains the names of
variables, and want to output the variable with the variables it
contains evaluated. E.g.
$foo contains 'cat'
$bar contains 'Hello $foo'
and I want to output $bar as
Hello cat
The problem is that if I use
David,
Is this what you're looking for?
$bar = 'Hello '.$bar
HTH,
Kevin
-Original Message-
From: David Clough [mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 17:37
To: php-general@lists.php.net
Subject: [PHP] Parsing variables within string variables
I've been bashing my head against
How is the CPU not in question? Does this script run on air?
It may not be YOUR CPU, but it is still a CPU bound by the sceduling
algorithm of the Operating System, so the time differentials are too be
expected.
-B
tedd wrote:
At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote:
Interesting...
At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote:
Interesting...
as for your first question...
Know that PHP/Apache does not have free reign to your CPU, so the
times could be different based on the scheduling going on in the OS
kernel.
As for the second one...
No idea why you would get a negati
If your users are using Windows, then something like
http://www.hypervisual.com/winbinder/
might be good on the user side, as you can bundle the PHP binary and
everything else needed into one executable (with some work of course)
And then they can create a file formatted to your specifications to
[snip]
Apologies if this is the wrong place for this question, but I'm sure
there
are some experts out there who might be able to point me in the right
direction... :)
I'm doing some work at the moment where remote teams can submit reports
through to our database when connected over the internet t
Interesting...
as for your first question...
Know that PHP/Apache does not have free reign to your CPU, so the times
could be different based on the scheduling going on in the OS kernel.
As for the second one...
No idea why you would get a negative number, I just copied and ran from
the comman
Hello,
on 04/07/2006 01:06 PM Brad Bonkoski said the following:
> Good point...
> Maybe the gods of usability can kick the user's in the butt to get them
> to clean up the data!
> Previously they used a free text field, which is why the problem is as
> bad as it is currently
>
> All the data
Hi gang:
I'm getting elapsed time results I can't believe.
Would anyone care to check out:
http://www.xn--ovg.com/microtime.php
And answer a couple questions posted there?
Thanks.
tedd
--
http://sperling.com
--
At 08:51 AM 4/7/2006, Brad Bonkoski wrote:
I have a form for user interaction and part of it is a select box
with a large number of options from a database ~12K options.
Currently I have a function which queries the DB to get fresh data
and loads the HTML (Y) into a string, so
the DB is only hi
Hi,
Apologies if this is the wrong place for this question, but I'm sure there
are some experts out there who might be able to point me in the right
direction... :)
I'm doing some work at the moment where remote teams can submit reports
through to our database when connected over the internet to
Good point...
Maybe the gods of usability can kick the user's in the butt to get them
to clean up the data!
Previously they used a free text field, which is why the problem is as
bad as it is currently
All the data has to be available, so the only other option I can think
of is to select
Ray said:
I'm pretty sure he's ONLY talking about IF/ELSEIF and not IF in general.
That's what I got from the message. Correct me if I'm wrong.
Of course, you're absolutely right -- I said specifically IF/ELSEIF.
My objection is not with the IF statement, of course I use that. In
fact, I us
[snip]
I have a form for user interaction and part of it is a select box with a
large number of options from a database ~12K options.
Currently I have a function which queries the DB to get fresh data and
loads the HTML (Y) into a string, so the DB is
only hit once,
but the page still takes a wh
Hello,
I have a form for user interaction and part of it is a select box with a
large number of options from a database ~12K options.
Currently I have a function which queries the DB to get fresh data and
loads the HTML (Y) into a string, so the DB is
only hit once,
but the page still takes a
Just wrap it, like Example 1 of the manual shows
function my_echo($array, $key) {
echo $array[$key];
}
array_walk_recursive($array, 'my_echo');
> Date: Fri, 7 Apr 2006 15:42:40 +0100
> From: Chris Boget <[EMAIL PROTECTED]>
> To: php-general@lists.php.net
> Subject: [PHP] echo, print and is_
Bing Du wrote:
Hello,
We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard
using 'global' could cause security problems. Is using $GLOBALS still not
more secure than using the 'global' keyword? How should function foo()
obtain the value of $a?
===
Thanks in advance,
Because both echo and print are language constructs and not actual
functions, you can't seem to use either is_callable() or
function_exists() on either to determine if they are valid 'function'
calls. Is there any other way to determine to check to see if I can
execute either or? I'm writing a ve
Bing Du wrote:
Hello,
We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard
using 'global' could cause security problems. Is using $GLOBALS still not
more secure than using the 'global' keyword? How should function foo()
obtain the value of $a?
===
Thanks in advance,
Hello,
We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard
using 'global' could cause security problems. Is using $GLOBALS still not
more secure than using the 'global' keyword? How should function foo()
obtain the value of $a?
===
Thanks in advance,
Bing
--
PHP Ge
Ed Curtis wrote:
Can you call getimagesize() multiple times in one script? I'm trying to
use it multiple times but it only seems to work in the first loop I call
it in. I read something in the docs about it cacheing the results and
didn't know if this has something to do with it.
That 'somethi
Can you call getimagesize() multiple times in one script? I'm trying to
use it multiple times but it only seems to work in the first loop I call
it in. I read something in the docs about it cacheing the results and
didn't know if this has something to do with it.
I also tried creating an array
This one time, at band camp, Jad madi <[EMAIL PROTECTED]> wrote:
> Kevin,
> I'm just curious to know how to did you do that benchmark.
Sure, use ab (Apache Benchmark) which comes with your build of apache.
Simply create your file foo.php and give ab the command
ab http://www.example.com/foo.php
[snip]
I am postilng pictures up on a website. So far I have a picture per
page. This will get not be very efficient as time goes on. Is there
anyway that I can have one page with only the image updating? Can
this be done in PHP. If it can would someone explain it to me. The
only thing I k.now
Sure you can, Paul. See
http://www.lily-gallery.com/h/showlily.php?id=53&div=1 for an example.
There are 5 thumbnails and they all link to photo.php to display the
larger version.
On 4/7/06, Paul Goepfert <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am postilng pictures up on a website. So far I ha
Slowly I am getting the output I want.
Trying to use "dynamic" arrays, does creat the array I want, but getting
the info is sometimes surprising.
I notice a difference between arrays used locally in a function, and
arrays used as a 'var' in a class function (all in PHP 4 atm).
Code snippet:
Kevin,
I'm just curious to know how to did you do that benchmark.
On Fri, 2006-04-07 at 12:40 +1000, Kevin Waterson wrote:
> This one time, at band camp, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > I'm gonna go out on a limb here and say WRONG!
> >
> > Run yourself a benchmark.
>
> bench
1 - 100 of 107 matches
Mail list logo