Re: [PHP] Google using PHP @ "Google Store"

2006-01-25 Thread Dan Lowe
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 t

Re: [PHP] Redirects Safari vs Others

2005-12-06 Thread Dan Lowe
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: ".$_SERVER['PHP_SELF']."?action=listentries&c

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Dan Lowe
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 'it right to start with, no? for file in *.php; do cp $file $file.tmp sed -e "s/$file rm $file.tmp done ... Woul

Re: [PHP] Sending arrays from page to page

2005-11-15 Thread Dan Lowe
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 eit

Re: [PHP] array varible problems

2005-08-13 Thread Dan Lowe
On Aug 13, 2005, at 8:35 AM, [EMAIL PROTECTED] 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. -dan {

Re: [PHP] 4.3 Install on Solaris

2003-02-01 Thread Dan Lowe
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

Re: [PHP] continue after break

2003-01-22 Thread Dan Lowe
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 as

Re: [PHP] continue after break

2003-01-22 Thread Dan Lowe
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

Re: [PHP] Re: Speed comparison of PHP vs. PERL (not conclusive)

2002-06-01 Thread Dan Lowe
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.

Re: [PHP] (Unlink(file) == rm file) ? (ignore this mail):(explain diffs);

2002-05-28 Thread Dan Lowe
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 use

Re: [PHP] chmod trouble

2001-10-03 Thread Dan Lowe
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 --

Re: [PHP] Protecting include files

2001-08-18 Thread Dan Lowe
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 b

Re: [PHP] How to stop images preloading in netscape?

2001-08-13 Thread Dan Lowe
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 befo

Re: [PHP] Problems with split

2001-08-13 Thread Dan Lowe
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 avoi

Re: [PHP] Dealing with a file

2001-08-13 Thread Dan Lowe
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 progr

Re: [PHP] ldap

2001-07-17 Thread Dan Lowe
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 $info

Re: [PHP] ereg questions

2001-05-24 Thread Dan Lowe
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: "" Replace pattern:"" There are two pl

Re: [PHP] Variable Passing

2001-05-24 Thread Dan Lowe
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

Re: [PHP] regex

2001-05-24 Thread Dan Lowe
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.

Re: [PHP] pulling data out of a string

2001-05-24 Thread Dan Lowe
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 peri

Re: [PHP] still not friends with RegExps..

2001-05-22 Thread Dan Lowe
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 ba

Re: [PHP] installing PHP on a sun box

2001-05-22 Thread Dan Lowe
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 "sof

Re: [PHP] ssh

2001-05-22 Thread Dan Lowe
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 b

Re: [PHP] PHP & Mail (SMTP)

2001-05-22 Thread Dan Lowe
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 be

Re: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Dan Lowe
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";

Re: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Dan Lowe
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 redire

Re: [PHP] Really easy question

2001-05-06 Thread Dan Lowe
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

Re: [PHP] Cant add new Header

2001-05-04 Thread Dan Lowe
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).

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-25 Thread Dan Lowe
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 he

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Dan Lowe
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 expe

Re: [PHP] link variables space problem in netscape

2001-04-24 Thread Dan Lowe
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 >

Re: [PHP] Looping through variables

2001-04-23 Thread Dan Lowe
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 .=

Re: [PHP] Use of special characters in filenames results in IE problems

2001-04-20 Thread Dan Lowe
rawurlencode() - http://php.net/rawurlencode '; $enc = rawurlencode($str); print $enc . ''; ?> -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 create a link for it on the web page in > th

Re: [PHP] cgi vs. module

2001-04-17 Thread Dan Lowe
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

Re: [PHP] PHP3 and PHP_SELF

2001-04-17 Thread Dan Lowe
Tried this on a host running 3.0.16: 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 monkeys and apes?

Re: [PHP] ldap_search...no results!

2001-04-16 Thread Dan Lowe
Previously, Miguel Carvalho said: > if a do > ldapsearch -o ",o=xyz" "ent=entry1,uid=ldap,ou=People,o=xyz", it > works just fine. > > How can i access the entry "ent=entry1,uid=ldap,ou=People,o=xyz" using > ldap_search/ldap_list or ldap_read? > > I have tried ldap_search... but i can not fi

Re: [PHP] Parse error - script help.

2001-04-16 Thread Dan Lowe
Previously, Dddogbruce (@home.com) said: > > fwrite( $fp, "fwrite( $fp, "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]