On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote:
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't
think this is a google owned site.
It's implied right on the front page it's not directly run by Google.
Produced for Google Inc. by Merchandise Mania Limited
My guess is
On Dec 6, 2005, at 2:55 PM, Mark Steudel wrote:
Sorry it took me so long, I wasn't sure where the problem lay and
couldn't
get you the exact code, but I figured out why (sorta) this was
happening.
// Causes only Safiri to bomb
header(location:
On Nov 15, 2005, at 12:07 PM, Ben Miller wrote:
I am trying to learn how to work with arrays, and have the basic
concept
down for working within a single page, but I am having trouble
sending an
array from one page to another. For example, I can send a variable
from
page to page using
On Nov 15, 2005, at 8:39 AM, Greg Donald wrote:
On Tue, 15 Nov 2005, Jim Moseby wrote:
It will be when you have to sort through 1,000,000 lines of code
in 400
files to change '?' to '?PHP'. Better to save the grief and do
it right
to start with, no?
for file in *.php; do
cp $file
On Aug 13, 2005, at 8:35 AM, [EMAIL PROTECTED] wrote:
table
tr
for($i=1;$i5;$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.
-dan
On Friday, January 31, 2003, at 08:13 PM, Weston Houghton wrote:
I seem to be getting a silly error on Solaris when trying to do a PHP
4.3 make. I get an error that looks to me like the liner arguments are
just too long. to be honest, I'm a bit stupified as to why this is
happening or how to
On Wednesday, January 22, 2003, at 10:44 PM, Reymond wrote:
Hi everyone,
I made a while loop and i'd like to know how to continue looping after
I
break it, and . Here is my script :
I found just break looping on my page, can't continue :(
break ends a loop. That's what it does. If you don't
You are misunderstanding how break and continue work. When you call
break, the loop ends. When you call continue, the loop starts over,
skipping the part between continue and the end of the loop.
When you call break, you're ending the loop. You never even get as far
as continue (let alone
Previously, Manuel Lemos wrote:
Your measures do not distinguish between the compile time and execute time.
I don't know about Perl, but since PHP 4, Zend engine first compiles PHP
code into opcodes and only then it executes the code.
Perl is compiled internally prior to execution.
--
Previously, Jimmy Lantz wrote:
(Unlink(file) == rm file) ? (ignore this mail):(explain diffs);
Does PHP unlink function handle deletion of files equally as the rm
command on the system in my case FreeBSD.
Or does it involve caching/handling files in any different way?
It just uses the
Previously, Nikola Veber said:
What chmod value gives the read-only premission to the file ? (777 is the
read-write)
0400 would be read-only and visible only to the owner
0444 would be read-only, visible to anyone
0644 would be read-only to anyone but the owner (r/w to owner).
-dan
--
Previously, John Meyer said:
BTW, .inc files can include PHP code that is executed, right?
Any file can contain such code, if the server is configured to interpret
the file as a PHP file, or if another file which is PHP include()'s the
file in question. The .inc extension just happens to be a
Previously, John Meyer said:
I haven't had much experience with dealing with uploaded files. Are there
any links that would help me to deal with these files using PHP from a
server-side.
http://www.php.net/manual/en/features.file-upload.php
--
If carpenters made buildings the way
Previously, Ville Mattila said:
---
$invdate = 14.8.2001;
echo $invdate\n;
list($day, $month, $year) = split(., $invdate);
echo $year-$month-$day;
---
Somehow, the second echo outputs only -- as it should be 2001-8-14.
Any idea why this happen and how this could be avoided?
Change the
Previously, Kelly Corkill said:
Define the height and width for each graphic, otherwise how does the browser
know how to draw the screen? With height/width netscape will allocate space
for the missing images and fill them in as the files complete, without - it
waits until all are done before
Previously, Johan Vikerskog (ECS) said:
How do i list the email for that entry? Ill get one answer from this, now
i want to print out the email adress for that entry.
How do i do that?
$sr=ldap_search($ds, $dn, $filter, $justthese);
$info = ldap_get_entries($ds, $sr);
print
Previously, Richard Kurth said:
That my problem www is not always the host when it is a sub-domain it
would be like mysit.domain.net or sometimes people put a few extra
periods in the domain name like www.my.test.net I thought maybe I
could look at the string and find out how many periods
Previously, Internaut said:
Thankx for your reply, would you recommend setting the register_globals to
on, would this be safe to do this?
It's not any more or less safe than using the $HTTP_POST_VARS or
$HTTP_GET_VARS arrays instead, but it could be less typing :-)
Note that for the arrays
Previously, Ker Ruben Ramos said:
hmm, got a little question.
1. what's that \\1 and \\2? got any info on where u got that from?
Expands to whatever the parentheses surrounded during the match. So
in this case you have:
Match pattern: a href=\([^/]+)/(.*)\\.html\
Replace pattern:
Previously, Gyozo Papp said:
metacharacter.
Is a '.' inside of a [] a literal '.', or a 'any character'
A period inside a character class (i.e. inside a [] block) is just a
period, and not a metacharacter.
-dan
--
Don't let it end like this. Tell them I said something.
Previously, Jason Caldwell said:
There's a setting in the PHP.INI file called [Mail Function] - SMTP
Can I programmatically set this? Or, am I for now restricted to this .INI
entry?
ini_set(SMTP, smtp.server.name);
ini_set(sendmail_from, [EMAIL PROTECTED]);
-d
--
What was the best thing
Previously, Dennis Gearon said:
***AND*** getting the certificate to work for it?
My provider that runs php/mysql/etc only lets people use SSH connections
for telnet, which I agree with.
As others have mentioned, PuTTY is the way to go. You can use key files
with it, or passwords (or
Previously, Joseph Bannon said:
I'm installing PHP on a sun box and when type in make and i get not
found. How can I run make if it's not found?
make is usually in /usr/ccs/bin/
However, you probably have no compiler (unless you bought one from Sun).
Try typing cc - if you get the software
Previously, Zef Hemel said:
$string = preg_replace(/[\\\*\+\-;]/s,,$string);
I think, you might have to escape the ; too
You don't need to escape * or + inside a character class since they don't
have a special meaning inside a character class.
You will need to use '' to match a
Previously, Kevin Price-Ward said:
I am setting up a php emailer facility using the 'mail' function, I have
defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps
getting overwritten by sendmail:
my code says:
$headers .= Return-Path: [EMAIL PROTECTED]\n;
but the
Previously, biscut said:
Thanks very much for your help on this, turns out there wasnt anything
wrong with it, I was trying to view the page with Netscape 4.7 on hte
Linux machine and getting blank pages, if I viewed it with IE 5.5 on a
windows machine then everything works fine...I have no
Previously, Dean Martin said:
Thanks to everyone for the help - unfortunately my problem seems to be the
function I'm using to do the redirecting. header() is supposed to be the
first item passed. What I'm trying to do is use a line of code well down
into the logic of my script to redirect
See ob_start().
http://php.net/manual/en/function.ob-start.php
Previously, Andy said:
I tryed it like that:
HEADER(Location:http://$HTTP_HOST/admin/admin.php?content=upload;);
But I did get an errormessage which said that I already have sent a header
( which was a body tag).
--
If
Previously, Jordan Elver said:
I'm not using virtual hosts on my local machine but I am on the production
machine. What should DOCUMENT_ROOT return? I though it returns the directory
of the current script. So if I had a site in
/usr/local/apache/htdocs/cha/script.php then I would expect
Problem with this is that many people use '+' in email addresses along with
other strange characters (a friend of mine has an apostrophe in her address
at General Electric).
Bottom line, trying to catch all valid email addresses using a regex is a
really ugly thing to try to do. The one shown
urlencode() will turn a space into +. If you want the real full codes
like %20 you need to use rawurlencode() instead.
http://www.php.net/manual/en/function.rawurlencode.php
-dan
Previously, John Huggins said:
IE may tolerate it, but you should transpose those spaces into the URL
Previously, Ashley M. Kirchner said:
I have a bunch of variables (through a POST form) that I need to
loop through and check for content. Right now, each one is being
evaluated separately:
if ($var1 == '') {
$url .= var1=;
$error = 1;
} else {
$url .=
rawurlencode() - http://php.net/rawurlencode
?php
$str = 'Oplg';
print $str . 'br';
$enc = rawurlencode($str);
print $enc . 'br';
?
-dan
Previously, Floyd Piedad said:
I discovered a bug in my program for uploading files, which stores the
filename in the database in order to
Tried this on a host running 3.0.16:
?php echo $PHP_SELF ?
Worked just fine.
-dan
Previously, Alan Ward said:
Does the variable $php_self work in PHP3? I am helping a friend with some
forms, and their host still uses PHP3.
--
If man evolved from monkeys and apes, why do we still have
Previously, Franklin Hays said:
RE: PHP as a CGI or Module
Generally people will almost always use the module because it's faster and
simpler, and gives you some IPC kind of advantages that the CGI doesn't
have ("internal" cross-talk with Apache).
Reasons to use the CGI:
1. Windows servers
35 matches
Mail list logo