you are in.
You could place the value in a hidden form field with JS and then post
back to the server, but something tells me you may be approaching the
problem in the wrong way. Without more details I can't suggest
alternatives, though.
[1] http://en.wikipedia.org/wiki/Top-posting
-
the phone is in (for example "Cathedral Square" here in
Christchurch, New Zealand) but I'm not so sure about location. And some
cell names are pretty vague ("Christchurch East").
Anyway, this is a bit OT now...
--
Jasper Bryant-Greene
Freelance web developer
http://jasp
t
already, and it is well worth a read, especially the post by Satyam
That thread was very interesting, and while Satyam's advice was very
true and thought-provoking, you must remember (as one reply mentioned)
that you are talking about optimisations that save you about 0.1ms or so...
--
#x27;echo' language construct.
The '?' is just a string, and is interpreted just like any other string
in PHP. That will print out the value of $PHP_SELF followed by
?&action=something
By the way, you really shouldn't have register_globals turned on. And
you also really
PHP_SELF, so you might want to escape or
validate that variable. See [1], mentioned recently by Chris Shiflett on
this list.
[1] http://blog.phpdoc.info/archives/13-XSS-Woes.html
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please
, and other cool stuff. See:
http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advic
Mikey wrote:
Jasper Bryant-Greene wrote:
Philip Hallstrom wrote:
Then use an HTML meta refresh (or javascript, just not
Header("Location...) to redirect them to another page.
Why not header("Location...")? Just out of interest -- it's always
worked for me, and it
any
reasons[1] (like not breaking the back button).
[1] http://www.w3.org/QA/Tips/reback
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
T [offset],[rowcount] and the offset starts at 0.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http://tinyurl.com/7
Death Gauge wrote:
Ok how do I get rid of the annoying "[suspicious - maybe spam]" crap
that appears when I post?
This won't help with that, but please stop top-posting.
Your ISP is probably adding it because it thinks you're message is spam.
It might be something to do with your signature, m
file descriptors and sockets, so providing the file
descriptor would break that abstraction.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my a
Death Gauge wrote:
Where do I go learn about XmlHTTPRequest? I've done googles and all I've
found was stuff about toolkits no tutorials or documents telling how to
use it.
How about the top three results on Google?
http://www.google.com/search?q=XMLHTTPRequest
--
Jasper Bry
hat
cookies are enabled, but the application may be performing some sort of
sanity check, which is obviously failing...
Put a die($_COOKIE[session_name()]); just before that line, and tell us
what it shows.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If yo
[EMAIL PROTECTED] wrote:
Well basically i need it for an "add products" page and if the users doesnt fill
in all the fields correctly I display some error message as well as populate the
textfields and dropdown lists with the values they previously entered, so if
they entered/selected the file I
h.
is this possible?
Not with pure PHP. Maybe with some JavaScript, but most browsers heavily
limit any interaction with controls from JavaScript.
So probably not at all.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please con
might need to do:
SELECT *, (field1 / field2) AS divField FROM mytable ORDER BY divField
as I'm not sure if you can use expressions like that in the ORDER BY
clause. Maybe...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice usef
Thomas wrote:
Thanks for all the answers. I had not considered leaving the xml file
outside the webroot (duh!). However, in this case I don't think it would
work, as the project is working through a svn structure (and some boxes run
Linux, otherwise Win).
I thought that the .htaccess would have b
o be executed over and over (why?) then you would need to
move the mysql_query() inside the outer while loop.
HTH
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amo
domain for
them to look at (will the browsers let you do that? never tried), or
implementing something in the backend, like an XMLRPC request
behind-the-scenes that identifies the user and gives them a unique ID,
which you could then pass to site.com in the query string.
--
Jasper Bry
ent Apache every request.
[1] http://www.php.net/manual/en/language.oop5.magic.php
[2] http://www.php.net/session_set_save_handler
[3] http://www.php.net/session_save_path
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider d
nt library (libmysql.dll or something
similar) into c:\windows\system32 ?
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http://t
you have the text in $string, then this will output it safely and
with correct line breaks:
print(nl2br(htmlspecialchars($string)));
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You
g all of
the SQL queries out of given PHP files.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http://tinyurl.com/7oa5
. FOR UPDATE
which locks the rows selected until the end of the current transaction [2].
So your SQL looks like:
START TRANSACTION
SELECT ... FOR UPDATE
[...]
UPDATE ...
COMMIT
[1] http://dev.mysql.com/doc/mysql/en/transactional-commands.html
[2] http://dev.mysql.com/doc/mysql/en/select.html
. In that case you might like to look in to making your
tables InnoDB and using the transaction features of MySQL.
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever
per
[1] http://www.faqs.org/rfcs/rfc2396.html
[2] http://www.php.net/gd
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http
MV.
http://www.opensourcecms.com/
Disclaimer: unlike the previous poster, I don't have a vested interest
in giving you this link...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
If you find my advice useful, please consider donating to a poor
student!
hope wrote:
Hi all
Whenever I create a site
and create a index.php file as my home page.
Whenever i run it a http://localhost/myproject/
it says Page cannot be found
However if I have index.html file it displays.
SOmebody told me that i need to make changes to php.ini
bt where and what to
Adrian Cid Almaguer wrote:
You can find the IP and find with it the name.
Certainly, you can. But do you realise what sort of slowdown doing a DNS
lookup for (I am assuming here) every request would cause? Better to
store the IPs and run some sort of tool on the logs later to get the
names,
Santosh Jambhlikar wrote:
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth. And it's a news (not by
me) that's why i wanted to send link to u peoples.
I am sorry if i did something wrong, i am new user in php mailing list.
The
Santosh Jambhlikar wrote:
also
PHP HIT BY ANOTHER CRITICAL FLAW
A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers.
http://www.computerworld.com/securitytopics/security/holes/story/0,10801,
Ken Tozier wrote:
I found a method for converting javascript arrays to PHP arrays here:
"http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/414334"; and would
like to expand the list of types the function knows about. It looks
like 's' = string, 'a' = array but 'i' for integer and 'n' for
Chris Shiflett wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit te
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Prepending the variable name with an underscore happens to be what PHP
does ($_SERVER, $_GET, $_POST, $_COOKIES, so on...) so it is simpler
just to carry on that convention.
This is exactly the reason why you shouldn't do it. You don
Aljaž Bizjak Zupanc wrote:
I recommend using Smarty for wrapping:
{$foo|wordwrap:30:"":true}
That does the exact same thing as:
print(wordwrap($foo, 30, '', true));
Which is much more convenient if you're not already using Smarty.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To
Richard Lynch wrote:
PHP's wordwrap function may have an optional argument to FORCE it to
never be wider than X characters, but I don't think so...
http://www.php.net/wordwrap
string wordwrap (string str [, int width [, string break [, bool cut]]])
"If the cut is set to 1, the string is alway
Ross wrote:
$mail->AddAttachment($_FILES('userfile'));
Ignoring the fact that $_FILES['userfile'] is an array and probably
isn't what you want to pass to the AddAttachment method (although I know
nothing about phpmail specifics), shouldn't that be:
$mail->AddAttachment($_FILES['userfile']);
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
[snip]
Still need to check isset() status unless you've disabled E_NOTICE which
I don't advise since it's sloppy ;)
Yeah, I usually would in a real script. Just slipped my mind when
writing that exam
Robert Cummings wrote:
On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
I just do this:
function process_user_input($valu
George B wrote:
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look in the PHP manual [2] for the relevant function,
or as a last
Brian P. O'Donnell wrote:
($b + $c))
{
// do the second thing
}
elseif ($a < ($b + $c))
{
// do the third thing
}
?>
Each of the three variables is derived by some earlier calculation, but for
testing purposes I have made sure that they end up being $a = $b and $c = 0.
I have tested for three
Gustav Wiberg wrote:
Hi!
Njae
I have a webshop and want to see a price from another webshop online
(directly).
Let's call my webshop - varupiraten.se
and the other webshop - inwarehouse.se
I want to be able to see what price inwarehouse.se has for a certain
product directly. (without no co
Gustav Wiberg wrote:
Is it possible in PHP to retrieve value from one domain to another than
my own?
Something like this:
Other domain: function getValueForMp3Player()
My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves
value from other domain
What exactly do you mean by
Vidyut Luther wrote:
and then:
trigger_error("log(x) for x <= 0 is undefined, you used: scale =
$scale", E_USER_ERROR);
?>
So, wouldn't this make $errno in the "myErrorHandler" be "log (x) "
rather than E_USER_ERROR ?
No, because you're calling trigger_error, not myErrorHandler.
The
Giulio wrote:
I have a problem with a script when it is runs on a Mac OS X environment.
[snip]
The problem appears when $filename contains special characters, like
accented chars, on Mac OS X the ftp_fput function returns me an error.
I thinked that the problem could depend on the filesyste
Richard Lynch wrote:
On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote:
Kim Steinhaug (php list) wrote:
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
Robin Vickery wrote:
Both of these will fail to compile:
preg_match( '/\\7abc/', $myString);
preg_match( '/\7abc/', $myString);
Both of these are fine:
preg_match( '/\\abc7/', $myString);
preg_match( '/\abc7/', $myString);
In fact they behave *exactly* as if you hadn't doubled them up. You've
Kim Steinhaug (php list) wrote:
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
Is there a reason why you assign the
Dean Maunder wrote:
My session variables are saved in a database, that's more than possible,
tho the thought of saving a 3000char session variable in a table is a
bit hairy :)
Wouldn't worry me. It's a lot better than putting it in the URL :)
The other thing I thought of is, how are you genera
Dean Maunder wrote:
Hi,
I have a large string that I need to send to a script that creates an
image.
eg tag.
What you could do, however, is put the data in a session variable and
access it in the createimage.php file.
Only thing I can think of, however, is that the createimage.php file
migh
Kevin Waterson wrote:
This one time, at band camp, Philip Hallstrom <[EMAIL PROTECTED]> wrote:
My guess would be because file_get_contents returns the contents as a
string. So if 'myfile' is 100mb, you're going to have to allocate 100mb
of memory to store that string while echo() spits it ba
Dan Trainor wrote:
Would the abovementioned use of ForceType also allow one to produce an
image given an HTTP GET query? I was tinkering around with something in
the past where I wanted to implement something such as:
http://example.com/myscript.php?site=1&image=2&something=3";>
Would what you
Shafiq Rehman wrote:
Thanx to all of you. My server is running on Linux and there is not any
phpbb running on it. If vulnerability is in my code.. Is there any way that
I can find the buggy code on my server which allowed that trojan to write
into all the index files.
To start with, take a lo
Shafiq Rehman wrote:
My server was hacked last week and the message displayed on home page was
"spy kidz owns your server". I researched on internet and found that this is
some kind of trojan which infects the *.index files. It penetrate from HTTP.
Some paople were saying that there is vulnerab
M. Sokolewicz wrote:
Jasper Bryant-Greene wrote:
Well, it's hard to say without a bit more detail. Are you able to give
us the actual error that PHP is giving on the database connected pages?
I assume you are using the mysqli functions rather than the mysql
functions to access
On 21 Aug 2005, at 21:24, Jasper Bryant-Greene wrote:
As far as your database problem goes... Have you recently installed
MySQL 4.1 or has it previously been working with MySQL 4.1?
Alex Scott wrote:
I Installed it about a month ago (from RPM's) and php 4.4 as well
the two were wo
Lizet Pena de Sola wrote:
Hello all:
I need to test whether a library is installed with php or not. In this
case it's the tidy library I need for a project.
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Fernando Garza wrote:
Hi,
I am creating a 'Shell' in prolog language that interacts with a 'Visual
Prolog' database format in 'Win32', I would like to interact with this
database with 'PHP', just like the interaction with 'MySQL' database, can
you give me some notion or the code that need to
Juan Pablo Herrera wrote:
Thanks Jasper,
well, i need make a explode of results of the ping. The idea is check
a host and when the host don´ t response send a email.
I don't explode the result of the ping.
If it was me, I'd try opening a socket connection to the host instead,
and check to see
Juan Pablo Herrera wrote:
Hi all!
I have following script:
$comando = system('ping 168.192.0.1', $nn);
echo $nn;
Well, i need that only show the first ten lines of the ping and kill
the process.
How can i make it?
If I understand your question correctly...
$comando = system('ping -c 10 168.192
Kevin Waterson wrote:
This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
Because he asked for superglobals, not globals. $GLOBALS (not $_GLOBALS)
meh, force of habit
happens to be an example of a superglobal.
and variable can be set within its scope,
John Nichel wrote:
Personally, I have never used \\ in PCRE when looking for things like
spaces (\s), word boundraries (\b), etc. and it's all worked out fine.
It will work fine, but only because those (\s and \b) just happen to not
be special characters in PHP *at this time*.
It's sloppy pr
Kevin Waterson wrote:
This one time, at band camp, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
Wong HoWang wrote:
Hello, I want to know that is there any way to create a super global in PHP?
Only with the runkit extension. Take a look:
http://www.php.net/runkit
This is e
Wong HoWang wrote:
Hello, I want to know that is there any way to create a super global in PHP?
Only with the runkit extension. Take a look:
http://www.php.net/runkit
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Taylor-Johnston wrote:
In php, if I wanted to know if $mydata->email contained something, I
would do this, right?
if ($mydata->email)
{}
How would I express this in SQL (MySQL)?
That doesn't tell you if $mydata->email contains something. It tells you
whether the value of $mydata->email,
Richard Lynch wrote:
I have a HUGE distrust of web browsers, so will go out on a limb and say:
Web browsers are not reliable transport mechanisms for upload of
monster files. Use FTP.
That might be wrong, but that's my story, and I'm sticking to it.
If somebody else wants to claim that uploadi
Richard Lynch wrote:
On Fri, August 19, 2005 3:47 pm, Jasper Bryant-Greene wrote:
For CSV, it's as simple as explode() the data by "\n" (perhaps strip
out
any "\r" before you start) and then explode() by ",". Depending on the
software they're using, you
Brian Dunning wrote:
I have a system where I'm trying to facilitate a process for customers
to upload data to me (basically a list of people), and have it go into
a database. I can give them certain parameters, like it has to be a CSV
file, delimited in such a way, etc. but can't ask much m
[EMAIL PROTECTED] wrote:
I am trying to add 3 (or a user-defined amount) week days to a certain date..
An example is today 2005-08-18 then adding 3 week days to give me a date of
2005-08-23. I have tried searching online but cannot find an easy way of
doing so.
$numDaysToAdd = 3;
$s = ($numDa
Ben Ramsey wrote:
You don't need to convert the values to HTML entities when saving to a
database. That's not going to prevent this problem.
Furthermore, you don't need to use htmlentities() if you specify your
character set properly and all the characters you are outputting are in
your chara
Richard Lynch wrote:
Warning: Cannot modify header information - headers already sent in
test.php on line 4
I'm guessing that the error message has MORE information than that --
like the line number of the file in which the output occurred.
I'm also guessing that it's the LAST line of the fil
George B wrote:
Can you send a link to a free MTA server please??
I don't mean to be rude, but this is getting beyond a joke. This is a
PHP mailing list, not a
PHP-and-MTAs-and-domains-and-everything-in-between mailing list. Google
is your friend:
http://www.google.com/search?q=free+MTA+se
wayne wrote:
I have one other question that I would like answered.
One of the respondents in the archive file to the
above question said that "in PHP objects don't
have to be explicitly instantiated", could someone
point me to some docs that explains this.The person
never did give an explanation.
wayne wrote:
Okay, I got a reply from a moodle user pointing
me to an archive, apparently someone had the same
question. The answer seems to be that $CFG is
an array dressed up as an object.The books that
I'm learning from don't show this concept. Could
some kind soul give an example.
Thanks.
h
Cabbar Duzayak wrote:
Hi all,
I have a requirement for initiating tasks from my site that requires
long processing times, i.e. uploading/downloading some files to remote
nodes. And, to avoid timeouts and hence to be able to provide instant
responses to the user (user does not need to get the res
Dotan Cohen wrote:
And, the thing is, within this javascript_dump.php, HTTP_REFERER shows
nothing, because it gives you the referer of the html page (page1)
that contains this
Wong HoWang wrote:
Dear all,
When I try to encode non-english char. such as big5 to UTF-8 with
utf8_encode(), it always generate a wrong result, which is not readable.
What can I do?
From the manual [1]:
utf8_encode -- Encodes an ISO-8859-1 string to UTF-8
You're using the wrong tool for t
[EMAIL PROTECTED] wrote:
Hello Jasper,
Does your means :
I need to rewite the source / result page as the following ?
[snip]
Yes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
Sorry, I don't quit understanding the site http://www.php.net/for...
So, would you mind to give me a example about it ?
for($i=0; $i<3; $i++) {
print($i);
}
will print:
0
1
2
Basically in any expression like the following:
for(expr1; expr2; expr3) {
/
Dan Lowe wrote:
for($i=1;$i<5;$i++)
This means:
* Start with $i = 1
* End loop if $i is less than 5
* Increment $i each time around
So your loop is ending at the first check because $i is less than 5.
You want $i > 4 instead, I think.
Umm, no, I don't think so... Your second point is wron
John Taylor-Johnston wrote:
Folks are complaining mail arrives and text will not wrap. $message
comes directly from a textarea. Old mail readers, I guess?
How can I make their life better and make the text wrap?
http://www.php.net/wordwrap
--
PHP General Mailing List (http://www.php.net/)
To
Nahalingam Kanakavel wrote:
Now I am doing a project using PHP, in that I created a form.
That form has a field called e-mailid, to validate that I need a script
(function), whether I have to write it in the server side or client side,
which one is better?. I need your suggestions, If any scrip
Pablo Gosse wrote:
[snip]
$conn->Execute("delete from cms_events where e_id = {$fd['e_id']}") or
$this->CMS_error(2,$this->mod_name,$query,$conn->ErrorMsg());
header("Location:{$this->CMS_base_path}mods/events_manager/cms.events_ma
nager.dsp.php");
[snip]
Can anyone think of any
Evert | Collab wrote:
Lets just put it this way:
if you don't want your site indexed, use robots.txt
if you want to hide your site from search engines [ which won't even
touch your files if you use robots.txt ] check the UA string.
I can't imagine a situation where you want to hide your conte
Jochem Maas wrote:
Jasper Bryant-Greene wrote:
robots.txt will not do what you want it to.
Just sniff for those robots' User-Agents (Google, MSN and Yahoo all
publish their UA strings on their websites, AFAIK) and send different
content if it's one of those.
they will hammer
Brian Dunning wrote:
On Aug 11, 2005, at 3:44 PM, Evert | Collab wrote:
Use robots.txt
'evil' searchengines will spoof the user-agent string anyway
Can you be more specific about what you mean by "use robots.txt"?
I just want to cloak for Google, MSN, and Yahoo. I couldn't care less
about
John Taylor-Johnston wrote:
I have a field 'updated' How can I tell if the date is older than 1 year
ago (or should I think of 365 days)?
`updated` date NOT NULL default '1999-12-12'
From the description you gave it looks like you're using a DBMS to
store the date. If it's MySQL, then just d
Richard Lynch wrote:
On Wed, August 10, 2005 11:55 am, Marco wrote:
I tried using html_entity_decode () but why won't these characters decode:
’
–
…
“
”
WILD GUESS:
Those are not standards-based, and are some made-up Microsoft crap?
Nah, they are standard HTML entities. Depending on your
R. Ragunathan wrote:
can we implement lock to a table using postgres with php.
if any of u all knows the solution do reply back.
You may also want to look at the following URL:
http://www.postgresql.org/docs/8.0/interactive/explicit-locking.html
--
PHP General Mailing List (http://www.php.net
R. Ragunathan wrote:
can we implement lock to a table using postgres with php.
if any of u all knows the solution do reply back.
Please, for the second time, simply read the manual.
http://www.php.net/pgsql
It explains both the issues you have recently posted about very well. If
you have a s
Sebastian wrote:
yeah sorry, i must of deleted the original topic and all i had was the
followups..
anyway, what do you want, the cake and eat it too?
why two types of 404's?
i mean you either use ErrorDocument or use php headers..
i guess i dont understand why use both..
to send 404 header
Sebastian wrote:
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
Should it? Is it possible to write a doesexists.php script which
would cause the 404 directive to be triggered?
I also tried: header("Status: 404 Not Found"); but this did not work
either.
Jimmie wrote:
Warning: get_meta_tags(): php_network_getaddresses: gethostbyname
failed in d:\apache\htdocs\meta_tag.php on line 3
Looks like your DNS is failing or that host does not have a DNS record.
Have you tried going to that URL in a browser on the same machine the
PHP script is running
Jasper
Wong HoWang wrote:
as title, how to start a global variable within a function?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ut this and so I did a grep on "autoload"
and came up empty. Is there a different way of checking
for the magic function?
Thanks
On Mon, 2005-08-08 at 08:24 +1200, Jasper Bryant-Greene wrote:
Or if it's PHP 5 they might be using an __autoload() magic function
which gets called wheneve
If you use PHP 5 just use the __toString() magic method which does
exactly that.
http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
Jasper
Rory Browne wrote:
Um - did you read my last email regarding var_dump var_export and print_r
Did you try them?
Do they d
Or if it's PHP 5 they might be using an __autoload() magic function
which gets called whenever a class that isn't declared is instantiated.
That function could be require()ing another file.
Jasper
Chris wrote:
That isn't created by PHP, it must be declared in the code somewhere.
Maybe there
Hi all
Recently I've been reading /Code Complete/ by Steve McConnell, and in it
he recommends the use of ADTs, or Abstract Data Types, which I have been
thinking about implementing in a major project I am currently embarking on.
Basically the question that I have for the list is this:
If I h
201 - 300 of 362 matches
Mail list logo