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] 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:

RE: [PHP] Get current date and time

2001-09-29 Thread Kurt Lieber
How about one of the mirrors closer to you: http://php.nederland.net/ http://nl2.php.net/ http://nl.php.net/ Or are they all down, too? Regarding your specific question, you can find the answer either in the mySQL manual, as originally suggested, or even in the PHP manual as the second person

RE: [PHP] Mail function

2001-09-30 Thread Kurt Lieber
use qmail. php is a powerful language -- and with any powerful language, stupid people can wreak havoc by using it improperly. There are literally dozens of PHP mailing list managers out there that bypass the mail() function and use sockets directly. Perhaps you can recommend those to your

[PHP] Review of PHP-based content management systems? (Nuke, et al)

2001-09-30 Thread Kurt Lieber
Does anyone know of a good, solid review of the top 5 or so PHP-based content management systems? Or, at least which are considered the most popular/widely-used? I'm familiar with PHP-Nuke, but am looking for sites that review/compare other systems as well. --kurt -- PHP General Mailing

RE: [PHP] PHP - Nuke 5.2

2001-10-02 Thread Kurt Lieber
Actaully, I recommend you take a look at PostNuke. It's a fork of PHP-Nuke 5.0 that's designed to be more open, better architected, less buggy and just an all-around more mature, stable product. http://www.postnuke.com and the vision:

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Kurt Lieber
Check out hotscripts.com -- there's a bunch of PHP scripts that do various things. One in particular that at least may point you in the right direction is PHPEmailArchiver: http://www.hotscripts.com/Detailed/12104.html hth --kurt -Original Message- From: Chris Aitken [mailto:[EMAIL

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

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 On

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 all

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 your

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 needs

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,

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 apache runs

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 a

[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();

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

[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)

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%';

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

[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

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. If,

[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,

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

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 manual to

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

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 !-- or //-- is treated as white space. Um...maybe I don't understand your statement but php already has commenting built in. Anything between /* and */ is

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 track

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

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-mail:

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

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 = 'imglocation';

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 want a

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 while

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 has

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

2001-10-31 Thread Kurt Lieber
On Wednesday 31 October 2001 07:45 am, turtle wrote: img src=? echo $imglocation ? ? echo $size[3]; ? Glad we could help. Also, you can re-write the above so you don't have to define two sets of ?php ? tags by doing the following: ?php print img src=\$imglocation\ $size[3]; ? Not a big

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.

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 form.../form tags and

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 want

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.

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 html/htmlbody/bodytable... etc But want to keep the rest data as it is. Just want to remove those tags. Any idea how to do it ? -- PHP

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 = ?PHP Query_Database( $category );?; If I use ?PHP echo $content; ?, 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

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

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 and

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 to

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

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

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:

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] 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

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

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

2001-12-03 Thread Kurt Lieber
] (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 There's dozens upon dozens of messages in the archive about this topic, which comes up at least once per month

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?

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 IfModule mod_php4.c php_flag session.auto_start off /IfModule Also, this obviously only works with Apache with PHP running as a module. Not sure if there's

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

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

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 on

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] Question about PHP.net Web site and e-mail lists

2001-07-28 Thread Kurt Lieber
You do know that you can see the source of any page on PHP.net's site, right? Just click on the show source link in the bottom navigation bar on any page. For instance, the source to the page you mention is at: http://www.php.net/source.php?url=/support.php hth --kurt -Original

RE: [PHP] Good Tutorial

2001-07-31 Thread Kurt Lieber
The book discussion has been beat to death on this list -- check the archives (www.php.net) and you'll find a long list of opinions on various books. As for tutorials, the best way I've found to learn PHP is to come up with a project and simply do it. For instance, I created a PHP-based

RE: [PHP] What would you want in a PHP web host?

2001-08-02 Thread Kurt Lieber
OK, this bugs me. Jeff -- you're obviously getting a kickback for any business you refer to them -- why not mention that in your email so we all know you have some financial interest in the company? --kurt -Original Message- From: Jeff Pearson [mailto:[EMAIL PROTECTED]] Sent:

[PHP] question about PHP manual and ImageCopyMerge() function

2001-08-02 Thread Kurt Lieber
For the ImageCopyMerge() function in the PHP manual (http://php.net/manual/en/function.imagecopymerge.php) it states at the top that (PHP 4 = 4.0.1) is required in order to use it. However, farther down the page, it says Note: This function was added in PHP 4.0.6 Am I mis-reading something?

RE: [PHP] web hosting

2001-08-05 Thread Kurt Lieber
Check out Pair.com. Very stable and powerul. You can compile any version of PHP4 (cgi) to your heart's content. www.pair.com -Original Message- From: Damiano Ferrari [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 9:27 PM To: [EMAIL PROTECTED] Subject: [PHP] web

RE: [PHP] Is there a debugger ???

2001-08-08 Thread Kurt Lieber
http://www.php.net/manual/en/debugger.php -Original Message- From: Peter Dowie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Is there a debugger ??? Hi, I noticed in php.ini there was a setion for debugger, I tried

[PHP] using eregi_replace to replace only substrings -- not the entire string.

2001-08-13 Thread Kurt Lieber
I'm trying to update a number in a text file using eregi_replace. The original line is: $registrationLimit = 100; and I'd like to change it to: $registrationLimit = 300; now, 100 appears multiple times throughout the file, so I have to match on the whole string, not just 100. I used the

[PHP] updating several lines in a text file while leaving rest of file untouched

2001-09-10 Thread Kurt Lieber
I have a configuration file that I use to store several variables and would like to provide a web-based interface to update this form. I'm having some trouble replacing part of the file while leaving the rest of it intact. An example of the config file is: $eventInfo[1][1] = First Event Title;

RE: [PHP] updating several lines in a text file while leaving rest of file untouched

2001-09-10 Thread Kurt Lieber
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] updating several lines in a text file while leaving rest of file untouched On Mon, 10 Sep 2001 14:15:36 -0700, Kurt Lieber wrote: I have a configuration file that I use to store several variables and would like to provide a web

[PHP] counting number of lines in file() that match a regexp

2001-09-16 Thread Kurt Lieber
I'm trying to take a text file and count the number of lines that match a regexp. I've got it working using the following code: $data = file(myfile.txt); $total = 0; foreach($data as $i) { if (ereg(^1,,$i)) { $total = $total + 1; } } but I'm still learning PHP

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

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. ?php include(hello.php) ? 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

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: ?php echo x = . $mapclick_x . and y = . $mapclick_y . ; ? As for why it's happening, I'm not sure. --kurt - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July

Re: [PHP] image button troubles

2001-07-03 Thread Kurt Lieber
] To: [EMAIL PROTECTED] 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: ?php echo x = . $mapclick_x . and y

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: [PHP]

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

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
: [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 = 'http://url?yourVar=' + yourVar; from there, parse out the URL variable and store it into a PHP variable

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 -

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

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

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

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
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 PROTECTED] wrote in message 0c7f01c106fc$9c32e170$[EMAIL PROTECTED]">n

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

[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

Re: [PHP] stripping white space?

2001-07-09 Thread Kurt Lieber
Sabharwal [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). you could simply use str_replace( , , $var

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

  1   2   >