Re: [PHP] Hosting provider...

2002-01-01 Thread Kurt Lieber
On Tuesday 01 January 2002 04:19 pm, Matt Moreton wrote: > Can anyone here suggest a good provider that meets the above criteria? Asked and answered about 4 billion times in the archives. Might check there. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Kurt Lieber
Um...this isn't php related and I already get a ton of emailcould we keep things on-topic? that said, check out www.favicon.com -- it should have the info you need. --kurt On Monday 22 October 2001 11:37, you wrote: > Anyone out there know how to set the icon that is shown in the address b

Re: [PHP] web base mail client???

2001-10-23 Thread Kurt Lieber
I would say this comes in a close second as the "most oft-asked question on php-general", with the first, of course, being "What's a good text editor for PHP?" So, couple of suggestions: 1. Search the archives. You'll find a ton of information there. 2. Check out squirrelmail.org --kurt O

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 11:13, Andy wrote: > Problem is, that I cannot see any solution to protect the value of $sDBpsw. > Of course I wont set the value of $sDBpsw in the same PHP script. I do > that including a file pa/pa.php (protected area) but this file also has to > have read access to a

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 11:20, Matt Williams wrote: > Move it outside the document root > > or put a .htaccess file inside the dir to deny access. This will still > allow system access but will prevent other fopen. Either solution still allows anyone with shell access to the machine to read y

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 12:29, Chris Lee wrote: > I use proftpd, I can setup a chroot for the user that logs in, chroot them > to their vhosts dir, move the mysql passwd file out of that dir. now anyone > that ftp's in can not read the passwd. as for telnet (shell) access, its > rare a user nee

Re: [PHP] How to protect MySQL password

2001-10-24 Thread Kurt Lieber
On Wednesday 24 October 2001 00:30, you wrote: > What we > really need is an expert here to give us the low-down on the best way to > accomplish the best security given regular tools. There isn't a way to solve it within the constraints you've mentioned (shared server at a hosting provider, apac

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Kurt Lieber
On Thursday 25 October 2001 10:08, you wrote: > $GalleryPHPName = "Pins"; > mkdir ("../$GalleryPHPName", "0775"); > ?> > > Results in... > > MkDir failed (Permission denied) When you use a file-related command (fopen, mkdir, etc.) you're executing that command under the same user-context that a

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Kurt Lieber
On Thursday 25 October 2001 11:41, you wrote: > How do I set permissions for a certain user (ie nobody) for a directory? > If I do this, won't anyone on teh server be able to write to that > directory? If you're going to start messing around with *nix permissions, you really, really need to have

[PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
I'm executing a query that returns some a UID and a company name. I'm using the following code to loop over that query result set: $result = mysql_query($myQuery) //$myQuery gets defined earlier $resultCount = mysql_num_rows($result); $companyID = array(); wh

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
OK, so I defined the variables before using them and that solved the problem. (Thanks!) I'm still curious as to why not defining them ahead of time would cause the data within each string to get duplicated. In other words, if the query results are "a,b,c,d", then by not defining the variable

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
I don't think so, but if I have to suspect my code or a bug in php, I'll suspect my code. :) I did a quick "if (isset($companyID_string)) { print "true"; } else { print "false";} and that didn't turn up anything, but I didn't spend a whole lot of effort on it. Like I said, I'm pretty sure I s

[PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Kurt Lieber
Is it possible to account/trap missing arguments in functions? For instance, say I have a function foo: function foo($arg1,$arg2) { blah } If someone calls that function as: foo($arg1); Can I somehow code around the fact that $arg2 is missing? I've tried: function foo($arg1,$arg2) { if

Re: [PHP] editor for working with php

2001-10-25 Thread Kurt Lieber
Oh please please please check the archives. This thread has been thrashed around and beat until it's nothing more than a bloody mass of quivering flesh... http://marc.theaimsgroup.com/?l=php-general On Thursday 25 October 2001 21:10, Ray Todd Stevens wrote: > I ahve been using go-live (4.0) t

Re: [PHP] problem with a while loop

2001-10-26 Thread Kurt Lieber
your while loop is working fine -- it's just that you're re-setting the value of $email every time it loops through. I'm not sure what you're trying to accomplish, but you might try something like: $query = "SELECT * FROM members Where Company LIKE '%$search1%'"; $result=mysql_db_query($dbNam

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Kurt Lieber
On Friday 26 October 2001 10:25, you wrote: > What is the most reliable, browser-safe way to redirect the browser from a > default index.html to, say, index.php? The I'm doing it now is with the > following javascript: The most reliable, browser-safe, non-PHP way to redirect mail is to do it se

[PHP] PHP redirects (was Re: [PHP] Advanced. Trapped in architecture.)

2001-10-26 Thread Kurt Lieber
AFAIK, ASP does output buffering by default (meaning it doesn't send the code to the browser until the page is fully parsed and ready to send to the client) That's what allows it to response.redirects after headers have been generated. Cold Fusion is the same way. However, once the actual HT

Re: [PHP] Setting Up Secure Pages with PHP

2001-10-26 Thread Kurt Lieber
On Friday 26 October 2001 16:55, Martín Marqués wrote: > You need https, and that comes with the web server (i.e.: Apache). actually, SSL (aka https) has little, if anything, to do with user authentication -- it's used mainly for data encryption. If you're looking for user authentication, then

Re: [PHP] Excel to MySQL

2001-10-27 Thread Kurt Lieber
On Saturday 27 October 2001 17:11, Daniel Harik wrote: > You see i have huge(for me) 100 000 record access table, i wanted to > convert it to mysql, i thought of making php convertor that uses odbc > and mysql, but maybe there is faster way? Your subject says "excel" but above, you say "access".

[PHP] function for hashing URL strings to check integrity?

2001-10-27 Thread Kurt Lieber
Does anyone know of a function that assists with checking URL strings to make sure they haven't been monkeyed with? Ideally something that calculates the md5 hash of a string and then automatically verifies it when a user clicks a link. I've checked the usual places (hotscripts, devshed, etc)

Re: [PHP] How do I prevent remote loading of jpegs from my site

2001-10-28 Thread Kurt Lieber
On Sunday 28 October 2001 10:26 am, you wrote: > So, the question is, how do I prevent this remoting loading from > happening. Well, since the users are linking directly to your image, then you can't use PHP commands to prevent it. (since that would requuire the user loading a PHP page that th

Re: [PHP] One last kick at the cat

2001-10-28 Thread Kurt Lieber
On Sunday 28 October 2001 12:57 pm, you wrote: > It seems that when I try to connect to my database inside "function > Table_Title()", my function cannot read the values of $server, $user, > $pass, "$db or $table ??? you need to declare the variables as global. See below and also see the manua

Re: [PHP] Problem appending data in a file with fopen("ftp://...","a")

2001-10-28 Thread Kurt Lieber
On Sunday 28 October 2001 06:41 pm, you wrote: > Is it possible to solve this problem or it's a feature in PHP? If I understand your problem, you are trying to open the same file twice. I'm not sure why you would want to do that, but assuming you have a good reason, you need to make sure you f

Re: [PHP] feature sugestion

2001-10-28 Thread Kurt Lieber
On Sunday 28 October 2001 06:10 pm, Ray Todd Stevens wrote: > How about > making the php engine ignore these to.  That is any string like is treated as white space. Um...maybe I don't understand your statement but php already has commenting built in. Anything between /* and */ is ignored by th

Re: [PHP] Problem appending data in a file with fopen("ftp://...","a")

2001-10-28 Thread Kurt Lieber
On Sunday 28 October 2001 07:29 pm, you wrote: > I only fopen my file once... > > My program checks if there is a specific session cookie. If not (it's a > new user that browse the site) I set a cookie and try to store the unique > ID of this user (other cookie) in a file with a timestamp to trac

Re: [PHP] Where does mysql keep the records data

2001-10-29 Thread Kurt Lieber
On Monday 29 October 2001 07:51 am, you wrote: > I needed to start over with the work on publish so I deleted the publish > directory. #rm -R /var/db/mysql/publish. Um, not that it's PHP-related, but... You should use "drop database" instead of manually removing the file. mysql> drop database d

Re: [PHP] protecting files

2001-10-29 Thread Kurt Lieber
On Monday 29 October 2001 07:37 am, you wrote: > what is the script that was mentioned a while back that you use to > allow apache access to a directory that has all world/group access > turned off. I php-cgiwrap. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] User Authentication against remote authentication server

2001-10-29 Thread Kurt Lieber
> However, if the authentication server is not the web server, instead, > it is a remote independent server. How can we manage the user > authentications at the web server side? Use LDAP. http://www.php.net/manual/en/ref.ldap.php -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 10:13 am, turtle wrote: > $link = mysql_connect('localhost')or die ("Could not connect"); > mysql_select_db('img760')or die ("Could not select database"); > $query = "select ('imglocation','height','width') from img where > imgname=$getimg"; > $imglocation = 'imglocati

Re: [PHP] need coments...

2001-10-30 Thread Kurt Lieber
Well, my first comment would be to not send attachments to mailing lists. --kurt On Tuesday 30 October 2001 11:40 am, Galkov Vladimir wrote: > Good day! > > I try to wrote Web-interface for DNS. Only simple test version now. I'd > like to listen your comets to make real good and useful thing.

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 11:58 am, turtle wrote: > No reading that section of the manual did me no good. I do not understand > other than I cannot store the results as a variable. yes, you can. > Is there any of what I have done that is usable? yes, there is. see below. It's probably not

Re: [PHP] Mail Handling Question

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 01:56 pm, Reggie White wrote: > Now here's where I'm stuck. When the user is finished previewing the html > letter, I want two things to happen: When the user submits, I want the page > itself (with the variable in it) to be emailed to a specified recipient. I > also wan

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 02:53 pm, you wrote: > It is starting to make sense. I see the correlation between the manual > example and the code you show. Surprisingly (and equally confusing) the > book I have also uses a while loop with mysql_fetch_array to display a > list. You would use a whi

Re: [PHP] PHP+MySQL=Help(?)

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 02:32 am, you wrote: > So, I'd recommend giving that a try. From my understanding (limited) of > MySQL, use = in the case of $id=2, and LIKE in the case of firstName > LIKE "justin". Um...you *can* do that, but I don't think you want to. Using LIKE means that MySQL

Re: [PHP] PHP+MySQL=Help(?)

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 07:45 am, turtle wrote: > Glad we could help. Also, you can re-write the above so you don't have to define two sets of tags by doing the following: "; ?> Not a big deal here, but if you start writing multiple lines of HTML code, you probably don't want to enc

Re: [PHP] defending PHP mail function

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 08:16 am, you wrote: > The addresses I know about are clients that are already a little peeved > with me so I can't send them out for testing but I have found at least 4 > addresses that will "not work" (no error message, just dead air) with > Mail(). It is something

Re: [PHP] defending PHP mail function

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 08:40 am, you wrote: > for now it's PHP that's in question AFAIK, this is the first I've ever heard of probelms with mail() not sending to perfectly valid email addresses. Scalability issues and other performance problems, sure, but that's a different animal. Gi

Re: [PHP] defending PHP mail function

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 09:08 am, you wrote: > It doesn't do much good to test on a nix box because what I'm looking > for is a solution to a PHP/SMTP problem. Really? No good at all, huh? I would think that would answer the question right there if it was an SMTP problem or a problem that

Re: [PHP] 2 Forms On 1 Page

2001-11-03 Thread Kurt Lieber
On Saturday 03 November 2001 11:28 am, you wrote: > If I have two forms on one page that both use the same script how > do I get only the fields on one of the forms to be submitted? If that > makes any sense. > Jeff Oien as long as you enclose each form within it's own set of ... tags and make s

Re: [PHP] Incoming mail to PHP as Apache module

2001-11-03 Thread Kurt Lieber
On Saturday 03 November 2001 02:08 pm, Ross wrote: > Maybe I should be posting this on the Procmail list but someone here > might have a non-Procmail solution. I'm trying to get a PHP script to > process incoming email. I'm sure it can be done with PHP, but my first thought was "why would you w

Re: [PHP] email receipt confirmation

2001-11-08 Thread Kurt Lieber
Using standard internet mail, no. You can *request* that a read receipt be sent when the email is opened by the recipient, but there is no guarantee that that person will allow the receipt to be sent. Read receipts also often annoy the recipient and can be perceived as rude and intrusive. Yo

Re: [PHP] Want to remove some special from text

2001-11-08 Thread Kurt Lieber
http://www.php.net/manual/en/function.strip-tags.php On Thursday 08 November 2001 08:01 pm, you wrote: > I want to remove all html related tags, such as > ... etc > > But want to keep the rest data as it is. Just want to remove those tags. > Any idea how to do it ? -- PHP General Mailing List (

Re: [PHP] Eval()??? A variables contents?

2001-11-09 Thread Kurt Lieber
On Friday 09 November 2001 11:51 am, Christopher Raymond wrote: > Let's say I have: > > $content = ""; > > > If I use , it doesn't evaluate that content. What am > I doing wrong here? What you're doing doesn't make any sense. If it were to work, it would look like the following: ; ?>, or som

Re: [PHP] Server redirection

2001-11-09 Thread Kurt Lieber
On Friday 09 November 2001 07:46 pm, Ernesto wrote: > How do I do server-side redirection? > I want to redirect the user to another URL without using javascript. RTFM. http://php.net/header Or, check the archives of the mailing list. http://marc.theaimsgroup.com/?l=php-general This question h

Re: [PHP] Why no one helps?

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 08:42 am, Christian Dechery wrote: > Why doesn't anyone say something about my messages "probelms with sessions > and SSI"? This list gets 2000 - 3000 messages per month and you find it surprising that not all messages get a response? My suggestion regarding SSI a

Re: [PHP] global variable for all scripts

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 01:29 pm, you wrote: > if i like to move my scripts to /www/my_newdir i habe to change the > include() function in every script A few options: 1. Don't use absolute paths -- use relative paths. Then you don't have to worry about it as long as the overall structure

Re: [PHP] using mail

2001-11-12 Thread Kurt Lieber
Did you RTFM? http://www.php.net/manual/en/function.mail.php Just create a variable and input it as an extra header. $from = "from: [EMAIL PROTECTED]\r\n" ; mail($to,$subject,$message,$from); On Monday 12 November 2001 02:41 pm, you wrote: > Hello, > > I am using the mail() function right now

Re: [PHP] FTP Clients

2001-11-14 Thread Kurt Lieber
Look -- if you're going to post OT messages, at least put [OT] in the subject line so those of us who get pissy about OT messages (such as myself) can filter them out. As for a good, free windows FTP utility, you have one: Open up a command prompt and type "ftp". --kurt On Wednesday 14 Novem

Re: [PHP] Newsgroup?

2001-11-15 Thread Kurt Lieber
On Thursday 15 November 2001 07:41 am, Christopher Raymond wrote: > Is this newsgroup still functional? Yep -- I just checked and it's working fine for me. I'm using news.php.net connecting on port 119 (default NNTP port) --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] MS Exchange

2001-11-19 Thread Kurt Lieber
On Monday 19 November 2001 10:19 pm, Benj Arriola wrote: > On the php.ini, if there is no SMTP server > and MS Exchange is used, what changes are needed > to be done on the php.ini file? MS Exchange has supported SMTP since (at least) version 4.0 and possibly even since the old MS Mail days.

Re: [PHP] PHP SECURITY

2001-11-24 Thread Kurt Lieber
On Saturday 24 November 2001 04:24 am, [EMAIL PROTECTED] wrote: > But when any of our user use readdir and other commands for manipulating > with directories - this user can read scripts of others. > > Do you know what to do ? 1) Read the PHP manual chapter on security: http://www.php.net/manua

Re: [PHP] User access rights..

2001-11-25 Thread Kurt Lieber
On Sunday 25 November 2001 03:30 pm, you wrote: > The problem is... using PHP, they can open any file > that is readable to nobody account (Apache user).. > So it can read and even edit other users' files.. > > Consquently, the users should be able to access only and only their home > directories.

Re: [PHP] User access rights..

2001-11-25 Thread Kurt Lieber
On Sunday 25 November 2001 04:08 pm, Ali Pakkan wrote: > And consider they are real users, then how will i tell Apache server to > run as the user owning the file? Using the PHP module, you can't. Using PHP as a CGI, you can use something like cgiwrap to execute under the user's account > Is

Re: [PHP] Updating Timestamps

2001-11-26 Thread Kurt Lieber
This is more of a MySQL question than a PHP question, but... The TIMESTAMP format in MySQL isn't a read-only field -- you can update the data with your own timestamp information just like you can any other normal database field. So, simply create a timestamp using PHP and insert that into the

Re: [PHP] PHP 4.1 out?

2001-11-28 Thread Kurt Lieber
On Wednesday 28 November 2001 01:03 pm, Mike Eheler wrote: > I'll hold off, but people will still try stuff like that. I'm not trying > to tell ya what to do, but I've found it best never to put files with > release-names in their primary download spots, regardless of how hidden > they may seem,

Re: [PHP] Getting the filesize of an image?

2001-11-30 Thread Kurt Lieber
Yes -- RTFM. http://php.net/getimagesize --kurt On Friday 30 November 2001 04:04 pm, Uchendu Nwachukwu wrote: > Is there any easy way to get the filesize of an image on a remote server? > > Please tell me there is! TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] BEST Book for Learning PHP/MySQL

2001-12-03 Thread Kurt Lieber
There's dozens upon dozens of messages in the archive about this topic, which comes up at least once per month. I believe there's also a blurb or two about PHP books on the PHP web site, php.net. Please check those resources. --kurt On Monday 03 December 2001 08:35 pm, Monty wrote: > I'm a P

Re: [PHP] BEST Book for Learning PHP/MySQL

2001-12-03 Thread Kurt Lieber
q=b --kurt > > Monty > > > From: [EMAIL PROTECTED] (Kurt Lieber) > > Reply-To: [EMAIL PROTECTED] > > Newsgroups: php.general > > Date: Mon, 3 Dec 2001 20:50:29 -0800 > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] BEST Book for Learning PHP/MySQL &

Re: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 08:02 am, you wrote: > Little problem with MySQL 3.23.46 under Windows ME. I This would be an excellent question for the MySQL mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
I've read the manual notes for ini_set, so I have a feeling the answer to my question is no, but I'd like to make sure. I have no control over my ISP's php.ini file, but the fact that they have session.auto_start set to 1 in php.ini is causing me problems. Is there any way to override this? T

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
That worked! Thanks! For those who may be interested, I added the following lines to my .htaccess file: # change some php.ini settings php_flag session.auto_start off Also, this obviously only works with Apache with PHP running as a module. Not sure if there's an equivalent option for IIS

Re: [PHP] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 10:00 am, you wrote: > Alternatively, is there another way to pass variables > from a PHP script to a HTML form where I won't run into this limit? I'm not seeing why you have to redirect the user just to get a custom response. If you can instead use an include();

[PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Kurt Lieber
I am working on an open source e-commerce package and have hit a wall with sessions. If I have session.auto_start turned on, I get the following error message: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definitio

Re: [PHP] PHP shopping cart packages

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 02:05 pm, you wrote: > Your thoughts appreciated! Check out The Exchange Project. http://www.theexchangeproject.org/ I've been using it for a few months now. My biggest complaint is there doesn't seem to be a clear sense of direction in the development process.

Re: [PHP] Newbie question on Tutorials?

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 05:16 pm, Geoff E wrote: > Okay, probably been asked zillions of times already, Yep >but I couldn't find reference to it in the last 5 minutes. :) Didja try the archives? http://marc.theaimsgroup.com/?l=php-general -- PHP General Mailing List (http://www.php.ne

Re: [PHP] PHP Installed in CGI for IIS 5(microsoft)

2001-12-06 Thread Kurt Lieber
On Thursday 06 December 2001 11:23 am, pong-TC wrote: > Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5? Is it > running good? I mean you got a full capability as PHP has, and there is > no serious harm to the webserver(IIS 5). I am also using ASP. I don't > know installing PHP

Re: [PHP] Dynamic Document Creation

2001-12-07 Thread Kurt Lieber
On Friday 07 December 2001 09:43 am, you wrote: > Does anyone have any scripts or know a location to point me to where I can > dynamically create Microsoft Word documents using PHP. You said you wanted to create some nicely formatted forms -- what's wrong with HTML and style sheets? Assuming

Re: [PHP] deleting file contents

2001-12-11 Thread Kurt Lieber
On Tuesday 11 December 2001 09:00 am, DigitalKoala wrote: > What i want to do is then delete the contents of the file, but not the file > itself...can you tell me the best way to do this? Well, you can read the contents of the original file into a PHP variable using fopen(). Then, use something

Re: [PHP] oscommerce / Exchange project

2001-12-21 Thread Kurt Lieber
On Friday 21 December 2001 08:56 pm, Daniel Guerrier wrote: > Does anyone have any experience using this thing. > I installed it and it seems to work, but it's very > buggy. Yes, I've used it fairly extensively. I haven't found it to be nearly as buggy as your message implies. It's not perfect

Re: [PHP] Quering given dns and list A records with PHP

2001-07-03 Thread Kurt Lieber
By design, most DNS servers won't let you do this because it's something of a security risk. However, for DNS servers that *will* let you do it, there isn't a built-in function in PHP that will do what you want, but I imagine you can accomplish it by interacting with a unix shell and using the ns

Re: [PHP] #exec and php together

2001-07-03 Thread Kurt Lieber
First question is why not just use PHP for both parts? i.e. I'd guess the reason your second example doesn't work is because PHP isn't being called to parse the page. even though you're calling a php page with your SSI, the destination page is named *.htm meaning that PHP won't be involved.

Re: [PHP] image button troubles

2001-07-03 Thread Kurt Lieber
I had a similar problem a while back that I solved by isolating my variables. Such as: As for why it's happening, I'm not sure. --kurt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 1979 4:25 PM Subject: [PHP] image button troubles QU

Re: [PHP] image button troubles

2001-07-03 Thread Kurt Lieber
TECTED]> Sent: Tuesday, July 03, 1979 4:44 PM Subject: Re: [PHP] image button troubles > on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > > > I had a similar problem a while back that I solved by isolating my > > variables. Such as: > > > > > >

Re: [PHP] Troubleshooting syntax ?

2001-07-04 Thread Kurt Lieber
That domain name doesn't appear to be valid. Perhaps you meant: http://validator.w3.org ? --kurt - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> To: "Jack Sasportas" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 3:19 AM Subject: Re: [

Re: [PHP] multiple domains using one cookie

2001-07-05 Thread Kurt Lieber
Actually, that's not entirely accurate. You can set cookies for multiple domains on one HTML page -- you simply have to write a page that calls one image from each domain that you want to set a cookie on, even if that image is nothing but a 1x1 transparent gif. Cookie management and updating wil

Re: [PHP] $phpvar = javascriptvar???

2001-07-05 Thread Kurt Lieber
As the original respondent said: window.location = 'http://url?yourVar=' + yourVar; from there, parse out the URL variable and store it into a PHP variable and you're good to go. - Original Message - From: "Romeo Manzur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05

Re: [PHP] $phpvar = javascriptvar???

2001-07-05 Thread Kurt Lieber
EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 12:12 PM Subject: Re: [PHP] $phpvar = javascriptvar??? > I want to store the value of screen.ColorDepth on a php var... > Thanks... > > Kurt Lieber wrote: > > > As the original respondent said: > > > > window.location =

Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Kurt Lieber
is the header() code at the very top of your page before any other HTML code? By default, you have to put all HTTP header-related information at the top of your pages. There's a setting in php.ini that allows you to bypass this, but I don't remember it off the top of my head. --kurt - Origi

Re: [PHP] hey, got a question....

2001-07-06 Thread Kurt Lieber
sounds like a firewall issue to me -- do you have a firewall in between your computer and your 'net connection? Might run a port scan on your default gateway (which is likely your firewall if you have one) to see what ports it's allowing inbound. Alternatively, you could have a router that has s

Re: [PHP] How to build this SQL statement?

2001-07-07 Thread Kurt Lieber
ummm...it's not clear at all what your decisioning criteria are. That is to say, how did you come up with the 6 rows in your result set? Are they chosen randomly or is there some rhyme/reason to how you chose them? (and if it's the latter -- what is your rhyme/reasoning?) - Original Messag

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
Look at your code -- where do you tell it to set $file_name equal to the file handles within e:\work\images? $file_name is only being set to the values within e:\work -- not e:\work\images. If you only need to display the images within e:\work\images, then why not just set $dir_name to that in t

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
> by the way, what do u guys use as your news reader client? > how do u reply to my post and send me an email at the same time? Do u > manually add my email to Cc: or you just hit "reply to group"? I don't know > how to do this. > > "Kurt Lieber" <[EMAIL P

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
In that case, it would be better to read all the image names into an array and then use that to spit out 20 images at a time. You'll get better performance that way, too. --kurt - Original Message - From: "McShen-CelebritieZones.com" <[EMAIL PROTECTED]> To: "Chris Lambert - WhiteCrown Ne

[PHP] stripping white space?

2001-07-09 Thread Kurt Lieber
Is there a way using PHP to easily strip white space out of an html page as it's being sent to the client. That is to say, the page that we as developers work on is nicely formatted, indented, etc. but when it's sent out to the client, PHP will remove all the extra white space both to obfuscate t

Re: [PHP] stripping white space?

2001-07-09 Thread Kurt Lieber
<[EMAIL PROTECTED]> To: "Kurt Lieber" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 10:04 PM Subject: Re: [PHP] stripping white space? > Hi, > > I take that you simply want to remove ALL whitespaces > from a data block (variable). > &

Re: [PHP] If (!$results) are true what am I missing

2001-07-09 Thread Kurt Lieber
um...I believe your query will return results if there is a match, but your error message will only display if there is no match. !$result will only be true if there are no records returned on your query, meaning that the domain name doesn't exist. From your error message, I'd say that's not wha

Re: [PHP] stripping white space?

2001-07-09 Thread Kurt Lieber
overlooking something. --kurt - Original Message - From: "Chris Lambert - WhiteCrown Networks" <[EMAIL PROTECTED]> To: "Kurt Lieber" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 10:11 PM Subject: Re: [PHP] stripping white space? > Nothing can _easily_ do thi

Re: [PHP] Newbie. Help on installation on a Win2K

2001-07-10 Thread Kurt Lieber
get the PHP 4.0.6 installer at http://www.php.net/downloads.php -- it will install everything you need to work with IIS. Works great. Also has detailed readmes to discuss other installation methods/options. --kurt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

[PHP] examples of using PHP to control .htaccess

2001-07-10 Thread Kurt Lieber
does anyone have/know of any existing code that allows PHP to control .htaccess files? I'm aware of SPHPAT on sourceforge, but I'm looking for something a little more mature. I don't really have a set of requirements other than what I've already stated -- I'm just looking for some examples to he

Re: [PHP] Re: Warning: mail() is not supported in this PHP build

2001-07-11 Thread Kurt Lieber
I believe it varies depending on distribution and install parameters. However, try: find / -name php and that should show you all the places with php files squirreled away. --kurt - Original Message - From: "Kyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 200

Re: [PHP] php ad banner rotation

2001-07-11 Thread Kurt Lieber
There's quite a few ad banner systems over at sourceforge. Might give them a look. http://sourceforge.net/ (just search for php ad banner) --kurt - Original Message - From: "Jack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 8:17 AM Subject: [PHP] php ad ba

[PHP] Upcoming wrox php/flash book?

2001-07-12 Thread Kurt Lieber
I was searching for a Flash book today and ran across the following book, due to be released in September 2001: http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 It's entitled "Foundation Php for Flash 5" Now, I've never heard of using PHP to control Flash and, given th

RE: [PHP] Upcoming wrox php/flash book?

2001-07-12 Thread Kurt Lieber
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016 0 BTW, in case this link doesn't work for some of you, note that some mail clients (including my version of Outlook) wrap the href and don't maintain the link. (note the trailing 0 in the link above) Sorry for any confusio

RE: [PHP] Export to Excel

2001-07-13 Thread Kurt Lieber
Easiest way is to export the data into comma-delimited format. (.csv files) Excel can import those no problem. So, you would write a php function that created a simple text file that looked like: Fieldname1,fieldname2,fieldname3 Data1,data2,data3 Etc. And excel can open that kind of file right

[PHP] php w/ mysql support compiled in -- can't connect to mysql

2001-07-14 Thread Kurt Lieber
OK, there's been another thread floating around about getting: Fatal error: Call to undefined function: mysql_pconnect() Turns out, I'm getting this same error message for both mysql_pconnect as well as plain mysql_connect. I'm using the PHP debian package found in potato. (4.0.3pl1) phpInfo(

[PHP] SOLVED: php w/ mysql support compiled in -- can't connect to mysql

2001-07-14 Thread Kurt Lieber
For those of you who might be using Debian (and new to linux in general) mysql support for php is offered as a separate package in debian. Just use apt-get install php4-mysql, restart apache and you should be good to go. Hope this helps someone. --kurt -Original Message- From: Kurt

[PHP] Can anyone explain what this does?

2001-07-15 Thread Kurt Lieber
I'm sure this is a simple one, but I've never seen it before: $this->file = $file; I'm specifically confused about the -> operator and what that does. I looked in the online documentation under operators, but didn't find anything. Ideally, if someone can point me to the location in the docum

[PHP] converting multiple URL values for the same variable into an array

2001-07-15 Thread Kurt Lieber
I'm modifying some code for ampache (ampache.kveton.com) and have run into a snag that I'm not sure I understand completely. Part of the code produces a URL similar to the following: http://myhost/playlist.pls?song=100&song=101&song=102 and $song then gets passed to this function: function get

RE: [PHP] converting multiple URL values for the same variable into an array

2001-07-15 Thread Kurt Lieber
I should also clarify that .pls is set up as a PHP extension and the page is being interpreted by the PHP engine. --kurt -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 15, 2001 4:03 PM To: [EMAIL PROTECTED] Subject: [PHP] converting multiple URL

RE: [PHP]OT I know, but WTF...

2001-07-15 Thread Kurt Lieber
I have an idea. Let's keep this thread off the PHP list. One OT email is bad enough -- an entire thread is simply too much. -Original Message- From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 15, 2001 8:10 PM To: PHP General List (E-mail) Subject: RE: [PHP]OT I know, b

  1   2   >