Re: [PHP] One-page password-protected file

2006-10-23 Thread Dotan Cohen
On 24/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: Can't you just use $_SESSION ? Or is that also out? Once the user is authenticated, $_SESSION['username'] = $username; and you're done. No passing passwords, hashed or not, back and forth. Somebody can still hijack the session, but you ga

Re: [PHP] Comment management

2006-10-23 Thread Paul Scott
On Mon, 2006-10-23 at 15:53 -0400, tedd wrote: > Well... I was afraid that someone would say that (paint me into a > corner). I just wanted to check before launching my own home-grown > solution and then having everyone say "Why didn't you use so-and-so's > 'comment manager' "? > > I'm sure wo

Re: [PHP] pagination code not incrementing page numbers.

2006-10-23 Thread Chris
Mark wrote: I am using the following code for pagination with php5 and mysql 4.1.x The pages advance by clicking on the "Next" or "Last" link However the url does not advance past this in the url field http://localhost/page.php?pagenum=2 Also the page count does not increase past "--Page 1 of 5

[PHP] pagination code not incrementing page numbers.

2006-10-23 Thread Mark
I am using the following code for pagination with php5 and mysql 4.1.x The pages advance by clicking on the "Next" or "Last" link However the url does not advance past this in the url field http://localhost/page.php?pagenum=2 Also the page count does not increase past "--Page 1 of 50--" at the b

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Ed Lazor
If you're running Apache as an XP service, go to the services control panel, open the apache config, and you can change the user there. Otherwise, you'll have to edit the apache config and change the user there. On Oct 23, 2006, at 7:21 PM, Rob Kritzer wrote: For now I am on a PC XP Pro,

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
For now I am on a PC XP Pro, wish they would give me back my Mac. On 10/23/06, Ed Lazor <[EMAIL PROTECTED]> wrote: Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: > Yes, the directory on mapped drive Y does exist. > > I do think that it might have something

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Ed Lazor
Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: Yes, the directory on mapped drive Y does exist. I do think that it might have something with how PHP and Apache is running. How do I chanage how PHP is running under an account? Where do I tell PHP or Ap

Re: [PHP] Paginating searchs = performance problem

2006-10-23 Thread Chris
Richard Lynch wrote: On Fri, October 20, 2006 10:04 am, Fourat Zouari wrote: I have PHP/PostgreSQL application were i got a search page with some items to search, am building the search query on server side. I need to display a paginated search and for this i need to get the total count of line

Re: [PHP] PHP Search and Privacy...

2006-10-23 Thread Chris
Russell Jones wrote: Does anyone know if any of the PHP Site-Search tools have implemented the new #privacy search standard (http://www.poundprivacy.org). Looking to install a new site-search and I would really like to install something that is compliant... Don't know of any off hand but that s

Re: [PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Yes Tedd, This is what I am having trouble with, I can see where you can upload each file, but all I really need it to do is take the contents of a folder and upload everything it finds in the directory. Rob On 10/23/06, tedd <[EMAIL PROTECTED]> wrote: At 8:42 PM +0100 10/23/06, Stut wrote:

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
Yes, the directory on mapped drive Y does exist. I do think that it might have something with how PHP and Apache is running. How do I chanage how PHP is running under an account? Where do I tell PHP or Apache to run under a different accunt? On 10/23/06, Richard Lynch <[EMAIL PROTECTED]> wrot

Re: [PHP] Re: How to recognise url in a block of text

2006-10-23 Thread Richard Lynch
FTP your files up there again, but use TEXT instead of BINARY or vice versa? On Wed, October 18, 2006 3:55 pm, AYSERVE.NET wrote: > Hello Guys, > I thought I was home and dry when the program worked fine on my > windows > but when I ran from my Linus server, I keep getting a url like: > http://w

Re: [PHP] regex

2006-10-23 Thread Richard Lynch
On Thu, October 19, 2006 9:42 am, Robin Vickery wrote: > On 19/10/06, Bagus Nugroho <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> If we have variable like : >> >> $var1 = 'abcde 12'; >> $var2 = 'abcdefghi 34'; >> $var3 = 'abc 20 def'; >> >> Then we want output like : >> $var1 = 'abcde'; >> $var2

Re: [PHP] Creating thumbnails using Image Functions, then saving to folders

2006-10-23 Thread Richard Lynch
See how your network guys would feel about: A directory OUTSIDE the webtree which is 777. You can put the thumbnails in there. Then, in a PHP script that you use in the IMG tags, you would double check several things before you serve up that image: Does it match a record in the database so you

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Richard Lynch
Y: doesn't exist. It may not exist because you haven't opened it lately and authenticated it as valid. Or it might not exist because PHP is not running as you, and PHP has no access to it. Or it might not exist because it's Windows, and you need to re-boot. On Wed, October 18, 2006 2:14 pm,

Re: [PHP] IMAP extension causing delays

2006-10-23 Thread Richard Lynch
You may also want to read PHP IMAP source and see what it does in its initializiation function. That may reduce the category of "DNS Error" to something a lot more specific... http://lxr.php.net/ On Thu, October 19, 2006 8:52 am, Edward Kay wrote: > Hello, > > I need PHP's IMAP extension for m

Re: [PHP] User question for PHP

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 8:24 am, chris smith wrote: > php running through apache: > > mkdir('/path/to/dir'); > ?> > > Making that in a "shared" location will allow *any* domain to write to > it, read from it or delete it (forget about possible open_basedir > restrictions). If 'nobody' can read/

Re: [PHP] User question for PHP

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 12:49 am, Chris wrote: > A shared user (like "www" or "nobody") is a *much* bigger risk than > separate users. *MUST* we go through all the permutations of "What if..." for these two scenarios again? The Risk cannot be evaluated outside the context of everything else you

Re: [PHP] User question for PHP

2006-10-23 Thread Richard Lynch
On Thu, October 19, 2006 1:49 pm, Tom Ray [Lists] wrote: > Is it possible to have a PHP script execute as the user of the domain > instead of the webserver? So when I upload files through a PHP script > they are owned by me and not "wwwrun" or "nobody"? On a dedicated server, it's trivial to do it

Re: [PHP] Ensuring all links go to index.php

2006-10-23 Thread Richard Lynch
The way you do or don't tear apart the original URL to get user and login, as well as the URL you send out will affect this. If your URL starts with "/" then it is an "absolute" URL, and the browser won't put the current "directory" (from its perspective) in front of it. It's also possible you ju

Re: [PHP] Check HTML style sheet?

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 3:20 am, Marc Roberts wrote: > Is it possible to use php to check that the .css file in the html of a > web page is the correct one e.g. check if the file included in the > html > is new.css. > > I think I will have to write a regex but if anyone has any ideas (or > already

Re: [PHP] session - cookie issues

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 5:20 am, Dave Goodchild wrote: > Hi all, I am having issues with users not being able to post their > details > to my site. The system uses sessions, so when they hit the index page > a test > cookie is set thus: > > setcookie('djst', 'test'); You should *NOT* set the time

Re: [PHP] Fwd: Parsing and using URL variables

2006-10-23 Thread Richard Lynch
Your PHP is fine. Your URL sucks. :-) You can't have spaces in the data, nor / nor all kinds of stuff. Which is why you should ALWAYS call: http://php.net/urlencode on data before you cram it into a URL. *then*, if you are putting that URL into HTML for a person to click on, you need to make it

Re: [PHP] handling multipart form-data

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 9:28 am, Anton Statutov wrote: > DOCUMENTATION> php://input is not available with > enctype="multipart/form-data". > > What I should do if I really need to get multipart data? I want to > implement my own form-data parser with PHP5. Can I at least turn off > the > PHP's one

Re: [PHP] One-page password-protected file

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 2:41 am, Dotan Cohen wrote: > On 23/10/06, David Tulloh <[EMAIL PROTECTED]> wrote: >> Breaking this down you have a hardcoded password. >> In the script you store a hash of the password rather than the >> actual >> password. > > Yes, no choice but to have the password in th

Re: [PHP] FTP - folders

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 5:07 pm, tedd wrote: > Interesting. > > So a php server-side php script can establish a two-way communication > with a client-side php script -- do you have an example? http://php.net/sockets should have an example... -- Some people have a "gift" link here. Know what I w

Re: [PHP] Active Connections

2006-10-23 Thread tedd
At 4:21 AM +0600 10/24/06, Prathaban Mookiah wrote: Hello List, I am trying to develop a web based controller for a robot. The robot has an embedded telnet deamon and it is controlled primarily through issuing commands on this port. I am planning to implement this system with PHP on the server s

Re: [PHP] FTP - folders

2006-10-23 Thread Stut
tedd wrote: Interesting. So a php server-side php script can establish a two-way communication with a client-side php script -- do you have an example? http://php.net/sockets -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Active Connections

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 5:21 pm, Prathaban Mookiah wrote: > I am trying to develop a web based controller for a robot. The robot > has an > embedded telnet deamon and it is controlled primarily through issuing > commands on this port. I am planning to implement this system with PHP > on the > serv

Re: [PHP] Re: Paginating searchs = performance problem

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 4:55 am, Ivo F.A.C. Fokkema wrote: > For my projects I use MySQL anyway, and this one even bypasses the > LIMIT > clause, according to the MySQL manual. All I have to do is check if my > users are using MySQL >= 4.0... That's been released for a while, but > you > never kno

Re: [PHP] FTP - folders

2006-10-23 Thread tedd
At 2:56 PM -0700 10/23/06, Ed Lazor wrote: On Oct 23, 2006, at 2:27 PM, Richard Lynch wrote: On the Mac, I always dug "Fetch" personally. Nice... I've been looking for something like Fetch. Yeah, Fetch is super cool, but it's been around as long as I have -- I'm surprised you haven't heard

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
On 23/10/06, Stut <[EMAIL PROTECTED]> wrote: Mark wrote: > It is just my friends kids on this site so do you know how i could do > the active x thing please help thanks I don't care if it's on your Intranet! Spying on visitors to a website is not good on several levels. If you really want to do

Re: [PHP] FTP - folders

2006-10-23 Thread tedd
At 4:27 PM -0500 10/23/06, Richard Lynch wrote: On Mon, October 23, 2006 4:18 pm, tedd wrote: I certainly can read the contents of a folder on the server, but I don't see how you can do it client-side. E. You could install PHP on the client and do it with PHP. Interesting. So a php s

[PHP] Active Connections

2006-10-23 Thread Prathaban Mookiah
Hello List, I am trying to develop a web based controller for a robot. The robot has an embedded telnet deamon and it is controlled primarily through issuing commands on this port. I am planning to implement this system with PHP on the server side. Ideally what I would like to do is have two p

Re: [PHP] FTP - folders

2006-10-23 Thread Ed Lazor
On Oct 23, 2006, at 2:27 PM, Richard Lynch wrote: On the Mac, I always dug "Fetch" personally. Nice... I've been looking for something like Fetch. PC, you got your CuteFTP and all that ilk. SecureFTP by VanDyke rocks. Now, on *nix, SCP is nice for that, if you have SSH shell access. If

Re: [PHP] Paginating searchs = performance problem

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 10:04 am, Fourat Zouari wrote: > I have PHP/PostgreSQL application were i got a search page with some > items > to search, am building the search query on server side. > > I need to display a paginated search and for this i need to get the > total > count of lines matching

Re: [PHP] connectivity weirdness

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 11:40 am, Richard Lynch wrote: > The canonical PHP example of web-scraping: > http://php.net/');?> > fails on a machine I'm using. > > I'm laying out here all the things I've done and eliminated, and it > got awfully long... > > Short Version: > > FC4 + LAMPP on 2 different

Re: [PHP] Parsing serialized PHP arrays in "C"

2006-10-23 Thread Richard Lynch
On Sat, October 21, 2006 6:25 pm, Kevin Wilcox wrote: > ext/standard/var_unserializer.c, and I don't think what will port to a That's pretty much the code I would have pointed you to... Unless you happen to KNOW that all the data inside the arrays is ultimately scaler or something... I suppose y

Re: [PHP] IP Address

2006-10-23 Thread Richard Lynch
On Sat, October 21, 2006 6:55 pm, Fred Moses wrote: > Is there a function which returns the IP address of the requestor of > the > current page? Any question like this: "Is there a way to find out X that came in from the user" is almost always answered by adding this to the top of your code:

Re: [PHP] Comment management

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 17:27 -0400, Chris Shiflett wrote: > Robert Cummings wrote: > > Well it's still trivial, just most of us who have frameworks > > wouldn't be so wasteful of our time to remove the dependency > > of our framework and code it from first principles. > > If your framework is writt

Re: [PHP] Re: Screen Shots

2006-10-23 Thread Richard Lynch
On Sun, October 22, 2006 11:39 am, Dotan Cohen wrote: > And how does that produce a screenshot? You could re-render in smaller form the same page you sent to them, since you have all the inputs it required to send it, since you sent it from those inputs. -- Some people have a "gift" link here. K

Re: [PHP] Screen Shots

2006-10-23 Thread Richard Lynch
On Sun, October 22, 2006 7:19 am, Mark McWhirter wrote: > Is there any way that I can get a script to take a screen shot every > minute > of all the users using my php website? You mean a literal screen shot of what's on my monitor?! Uhhh, no. That would be just a tiny bit of a security hole, do

Re: [PHP] Comment management

2006-10-23 Thread Chris Shiflett
Robert Cummings wrote: > Well it's still trivial, just most of us who have frameworks > wouldn't be so wasteful of our time to remove the dependency > of our framework and code it from first principles. If your framework is written in PHP and doesn't have any external dependencies, why are you bot

Re: [PHP] FTP - folders

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 4:18 pm, tedd wrote: > I certainly can read the contents of a folder on the server, but I > don't see how you can do it client-side. E. You could install PHP on the client and do it with PHP. Or it could be TOTALLY OFF-TOPIC > Now, am I right, or do you have a way t

Re: [PHP] FTP - folders

2006-10-23 Thread tedd
At 8:42 PM +0100 10/23/06, Stut wrote: Rob Kritzer wrote: Is it possible to FTP a folder and all it's content? I can do a file at a time, but not a folder. Also there is times when I will not know the folder name, so I would like it to just upload everything it finds in the folder I set. Is th

Re: [PHP] Comment management

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 16:54 -0400, Chris Shiflett wrote: > Tedd wrote: > > I just wanted to check before launching my own home-grown > > solution and then having everyone say "Why didn't you use > > so-and-so's 'comment manager'"? > > For what it's worth, I'm interested in a good solution to this

Re: [PHP] Screen Shots

2006-10-23 Thread Stut
Please don't reply directly to me - always include the list. Mark wrote: It is just my friends kids on this site so do you know how i could do the active x thing please help thanks I don't care if it's on your Intranet! Spying on visitors to a website is not good on several levels. If you rea

Re: [PHP] Class privacy and variable identifiers

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 3:07 pm, David Morse wrote: > i) Does the language provide a way to generate a private or > local class that is accessible only within another function > or a parent class. In python, for example, if you declare a > class or function within a function definition, I believe

Re: [PHP] different php configuration per .httaccess?

2006-10-23 Thread Stut
Zbigniew Szalbot wrote: STFWNN!! Ok, don't know what it means but will google, lesson learnt ;) You could Google that too, but I don't believe the NN is very common. Stands for Search the Effing Web Numb Nuts. Glad I could help. -Stut -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Comment management

2006-10-23 Thread Leif Gregory
Hello tedd, Monday, October 23, 2006, 1:53:41 PM, you wrote: > Well... I was afraid that someone would say that (paint me into a > corner). I just wanted to check before launching my own home-grown > solution and then having everyone say "Why didn't you use > so-and-so's 'comment manager' "? Sorr

Re: [PHP] Comment management

2006-10-23 Thread Chris Shiflett
Tedd wrote: > I just wanted to check before launching my own home-grown > solution and then having everyone say "Why didn't you use > so-and-so's 'comment manager'"? For what it's worth, I'm interested in a good solution to this problem as well, and I don't think it's nearly as trivial as others s

Re: [PHP] different php configuration per .httaccess?

2006-10-23 Thread Zbigniew Szalbot
Hi, STFWNN!! Ok, don't know what it means but will google, lesson learnt ;) http://www.google.co.uk/search?q=change+php+configuration+htaccess Sorry, I should have started from google. I had a brief look at php configuration but could not find a specific reference. Anyway, thanks. --

Re: [PHP] different php configuration per .httaccess?

2006-10-23 Thread Stut
Zbigniew Szalbot wrote: I would like to know if it is possible to change php configuration per .htaccess file? For example, to be able to switch register_globals on/off and the like (based on the main configuration file)? If it is possible, could someone share what the general syntax for .hta

[PHP] different php configuration per .httaccess?

2006-10-23 Thread Zbigniew Szalbot
Hello, I would like to know if it is possible to change php configuration per .htaccess file? For example, to be able to switch register_globals on/off and the like (based on the main configuration file)? If it is possible, could someone share what the general syntax for .htaccess file would

Re: [PHP] Class privacy and variable identifiers

2006-10-23 Thread Jochem Maas
David Morse wrote: > I have two somewhat general questions about the PHP 5 > language. These points remain unclear to me after reading > the manual and working with the language for a few months: > > i) Does the language provide a way to generate a private or > local class that is accessible only

Re: [PHP] Comment management

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 15:53 -0400, tedd wrote: > At 12:17 PM -0400 10/23/06, Robert Cummings wrote: > >On Mon, 2006-10-23 at 11:12 -0400, tedd wrote: > > > Does anyone have any recommendations or can point me to a simple > > > content manager for such a purpose? > > > >If you just want something

[PHP] Class privacy and variable identifiers

2006-10-23 Thread David Morse
I have two somewhat general questions about the PHP 5 language. These points remain unclear to me after reading the manual and working with the language for a few months: i) Does the language provide a way to generate a private or local class that is accessible only within another function or a p

Re: [PHP] Comment management

2006-10-23 Thread tedd
At 12:17 PM -0400 10/23/06, Robert Cummings wrote: On Mon, 2006-10-23 at 11:12 -0400, tedd wrote: > Does anyone have any recommendations or can point me to a simple > content manager for such a purpose? If you just want something simple like what PHP uses, you're probably going to spend more t

Re: [PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Daniel Orner
No, not yet. I admit to being something of a novice when it comes to Ajax, and as has been stated, this is still in beta and I have yet to get any significant beta testers (most of the new versions are mainly new functionality rather than bugfixes, all of which I somehow discovered myself).

Re: [PHP] FTP - folders

2006-10-23 Thread Stut
Rob Kritzer wrote: Is it possible to FTP a folder and all it's content? I can do a file at a time, but not a folder. Also there is times when I will not know the folder name, so I would like it to just upload everything it finds in the folder I set. Is this possilbe? Yes[1][2]. -Stut [1]

[PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Is it possible to FTP a folder and all it's content? I can do a file at a time, but not a folder. Also there is times when I will not know the folder name, so I would like it to just upload everything it finds in the folder I set. Is this possilbe? Thanks

Re: [PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Ed Lazor
Has anyone checked this for security? On Oct 23, 2006, at 11:26 AM, Daniel Orner wrote: A big new update for Sparse, the HTML-based framework for writing MySQL-backed CGI applications easily and quickly. Now, the generated forms output in fully degradable Ajax, meaning that if a user doe

Re: [PHP] Screen Shots

2006-10-23 Thread Google Kreme
On 23 Oct 2006, at 08:32 , Dotan Cohen wrote: I give this information to spread awareness, not to spread malicious code, FUD, exploits, or anything else. On he other hand, IE related malicious code and exploits should be distributed as widely as possible as it is the only way MSFT will fix

[PHP] PHP Search and Privacy...

2006-10-23 Thread Russell Jones
Does anyone know if any of the PHP Site-Search tools have implemented the new #privacy search standard (http://www.poundprivacy.org). Looking to install a new site-search and I would really like to install something that is compliant...

[PHP] [ANNOUNCEMENT] Sparse 1.1b released - create Ajax forms!

2006-10-23 Thread Daniel Orner
A big new update for Sparse, the HTML-based framework for writing MySQL-backed CGI applications easily and quickly. Now, the generated forms output in fully degradable Ajax, meaning that if a user doesn't have Javascript available or if an error occurs, the regular functionality will still wor

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
On 23/10/06, Jochem Maas <[EMAIL PROTECTED]> wrote: it's a Pretty Damning Format ;-) I'd always thought of it as the Potty-Diaper Format. I stand corrected. Dotan Cohen http://faq-google.com http://what-is-what.com/what_is/spam.html -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Comment management

2006-10-23 Thread Google Kreme
On 23 Oct 2006, at 09:12 , tedd wrote: Does anyone have any recommendations or can point me to a simple content manager for such a purpose? Do you need a content manager? Sounds like you want a blog like setup where you post a entry (code) and people can comment. Wordpress is nice. Or

Re: [PHP] Comment management

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 18:16 +0200, Rocco Di Leo wrote: > Hi Tedd, > > you may want to check out a Blog-Software like Wordpress if it fulfills your > requirements and relaunch your website using it. From what i see on your > page, it could pretty much replace the functionality and add the benefits

Re: [PHP] [OFF] A note on replying to this list

2006-10-23 Thread Ed Lazor
You're asking everyone else to change their email client when the quickest solution would be for you to change yours. On Oct 22, 2006, at 10:59 PM, theIggs wrote: Hello all! Sorry for the offtopic. Please, when you reply to PHP mailing lists, put the Re: element right in front of the subject

Re: [PHP] Comment management

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 11:12 -0400, tedd wrote: > Hi: > > I posted this on the web-design list, but didn't receive any leads. > > I want to continue what I've been doing, which is to offer various > code solutions for people via my web site, but I would like to add a > feature where people can c

Re: [PHP] Comment management

2006-10-23 Thread Rocco Di Leo
Hi Tedd, you may want to check out a Blog-Software like Wordpress if it fulfills your requirements and relaunch your website using it. From what i see on your page, it could pretty much replace the functionality and add the benefits of comments, nice urls, etc Greets Rocco -- New Identity AG

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread David Giragosian
Angelo, as Brad says, you can pass user and password args to mysqldump from an include file. I run a php backup script via cron every night, then tar and compress and store in various dirs out of the web tree. I have the script if you'd like. It came from someone on the php-db list years ago, an

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread Angelo Zanetti
Edward Kay wrote: Angelo Zanetti wrote: hi all, Im doing the following dump through PHP: $output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename); It doesnt seem to work but when I run the exact same command (with appropriate values) in the command line it crea

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread Brad Bonkoski
Edward Kay wrote: hi all, Im doing the following dump through PHP: $output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename); It doesnt seem to work but when I run the exact same command (with appropriate values) in the command line it creates the dump file. What could be

RE: [PHP] mysqldump problem from PHP

2006-10-23 Thread Edward Kay
> >>>hi all, > >>> > >>>Im doing the following dump through PHP: > >>> > >>>$output = shell_exec('mysqldump '. $db_database .' > '. > >>>$backup_path.$filename); > >>> > >>>It doesnt seem to work but when I run the exact same command (with > >>>appropriate values) in the command line it creates the

Re: [PHP] Comment management

2006-10-23 Thread tg-php
Think he's looking for something that'll manage comments.. not bugs. As he says, so people can post comments (like in the online PHP docs where there are user comments for differnent entries with their own code samples and notes). -TG = = = Original message = = = Maybe you mean a bug tracker?

[PHP] Re: Finding a visitor's location

2006-10-23 Thread Colin Guthrie
John Messam wrote: > Hello, I am trying to find out the country and possibly the city where the > visitors to my site are coming from. I can capture the IP address but how > do I translate that to a specific locale. Is there a way to do it or do I > have to ask them and map the info myself. Th

Re: [PHP] Comment management

2006-10-23 Thread Thomas Munz
Maybe you mean a bug tracker? checkout http://flyspray.rocks.cc/ on Monday 23 October 2006 17:12, tedd wrote: > Hi: > > I posted this on the web-design list, but didn't receive any leads. > > I want to continue what I've been doing, which is to offer various > code solutions for people via my w

[PHP] Comment management

2006-10-23 Thread tedd
Hi: I posted this on the web-design list, but didn't receive any leads. I want to continue what I've been doing, which is to offer various code solutions for people via my web site, but I would like to add a feature where people can comment on the code. Such as if they found it useful, or fou

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread Angelo Zanetti
Angelo Zanetti wrote: hi all, Im doing the following dump through PHP: $output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename); It doesnt seem to work but when I run the exact same command (with appropriate values) in the command line it creates the dump file. Wha

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
On 23/10/06, Jim Moseby <[EMAIL PROTECTED]> wrote: > > Is there any way that I can get a script to take a screen > shot every minute > of all the users using my php website? > This is not a PHP question, but here's an answer anyway: With your users conscent, yes. There is a tiny utility that w

Re: [PHP] Screen Shots

2006-10-23 Thread Jochem Maas
Jim Moseby wrote: >> Is there any way that I can get a script to take a screen >> shot every minute >> of all the users using my php website? >> > > This is not a PHP question, but here's an answer anyway: > > With your users conscent, yes. There is a tiny utility that will take a > screensh

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread clive
write rights for apache/php user to the $backup_path? also is apache/php user allowed to run mysqldump? hi all, Im doing the following dump through PHP: $output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename); It doesnt seem to work but when I run the exact same comm

[PHP] mysqldump problem from PHP

2006-10-23 Thread Angelo Zanetti
hi all, Im doing the following dump through PHP: $output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename); It doesnt seem to work but when I run the exact same command (with appropriate values) in the command line it creates the dump file. What could be the reason for

RE: [PHP] Screen Shots

2006-10-23 Thread Jim Moseby
> > Is there any way that I can get a script to take a screen > shot every minute > of all the users using my php website? > This is not a PHP question, but here's an answer anyway: With your users conscent, yes. There is a tiny utility that will take a screenshot at set intervals using th

Re: [PHP] One-page password-protected file

2006-10-23 Thread Dotan Cohen
On 23/10/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: ... > Thanks for any and all input. // here is a completely different way of doing it: function setSimplePageProtectionDetails($login, $pwd, $makeSha1Hash = false) { if (!defined('SIMPLE_AUTH_PW') && !defined('SIMPLE_

Re: [PHP] Screen Shots

2006-10-23 Thread tedd
At 12:00 PM +0200 10/23/06, Jochem Maas wrote: Dotan Cohen wrote: > Has anybody read the original post? The OP wants a screenshot of his users' desktops. He does not want stats. the way I read it he's looking for something akin to a group photo. given that his users could be anywhere on the

Re: [PHP] Finding a visitor's location

2006-10-23 Thread tedd
At 3:35 AM -0500 10/23/06, John Messam wrote: Hello, I am trying to find out the country and possibly the city where the visitors to my site are coming from. I can capture the IP address but how do I translate that to a specific locale. Is there a way to do it or do I have to ask them and map

Re: [PHP] Ensuring all links go to index.php [SOLVED]

2006-10-23 Thread Dave M G
Edward, Roman, Jochem, Lowell, Kreme, Thank you for your explanations. Based on what was said here, I understand that the issue was setting up my local computer's Apache server to treat my directory hierarchies as they would behave on my hosting service. With the help of my local Linux user'

Re: [PHP] Screen Shots

2006-10-23 Thread Jochem Maas
Stut wrote: > Sancar Saran wrote: >> Do you want take screen shot of webpage from server? Convert your web >> page into pdf. >> >> Do you want take screen shot of your online user count. Collect user >> data into sql. generate web page from sql data and convert to pdf. >> >> Do you want take screen

[PHP] Hotel Reservations

2006-10-23 Thread Chris
Greetings all, I`ve searched Google and come up with a couple of links to PHP/MySQL open source based hotel reservation systems, does anyone have any advice/opinions on what you are using and how its worked for you. I`m just checking at various options at this stage before embarking on writing on

Re: [PHP] Screen Shots

2006-10-23 Thread Stut
Sancar Saran wrote: Do you want take screen shot of webpage from server? Convert your web page into pdf. Do you want take screen shot of your online user count. Collect user data into sql. generate web page from sql data and convert to pdf. Do you want take screen shot of your online users l

Re: [PHP] Finding a visitor's location

2006-10-23 Thread Ivo F.A.C. Fokkema
On Mon, 23 Oct 2006 19:00:08 +1000, Chris wrote: > John Messam wrote: >> Hello, I am trying to find out the country and possibly the city where the >> visitors to my site are coming from. I can capture the IP address but how >> do I translate that to a specific locale. Is there a way to do it

Re: [PHP] Screen Shots

2006-10-23 Thread Sancar Saran
On Monday 23 October 2006 13:00, Jochem Maas wrote: > Dotan Cohen wrote: > > On 23/10/06, Ed Lazor <[EMAIL PROTECTED]> wrote: > >> On Oct 22, 2006, at 5:29 PM, Sancar Saran wrote: > >> > Convert to pdf. > >> > >> Are you logging the stats? That would allow you to graph the usage > >> whenever you

Re: [PHP] Screen Shots

2006-10-23 Thread Jochem Maas
Dotan Cohen wrote: > On 23/10/06, Ed Lazor <[EMAIL PROTECTED]> wrote: >> On Oct 22, 2006, at 5:29 PM, Sancar Saran wrote: >> > Convert to pdf. >> >> Are you logging the stats? That would allow you to graph the usage >> whenever you want. >> -Ed >> > > Has anybody read the original post? The OP wa

Re: [PHP] Re: Paginating searchs = performance problem

2006-10-23 Thread Ivo F.A.C. Fokkema
On Mon, 23 Oct 2006 04:33:52 -0400, Robert Cummings wrote: > On Mon, 2006-10-23 at 10:13 +0200, Ivo F.A.C. Fokkema wrote: >> On Fri, 20 Oct 2006 12:06:26 -0400, Robert Cummings wrote: >> >> > On Fri, 2006-10-20 at 17:22 +0200, Ivo F.A.C. Fokkema wrote: >> >> On Fri, 20 Oct 2006 17:04:35 +0200, Fo

Re: [PHP] One-page password-protected file

2006-10-23 Thread Jochem Maas
Dotan Cohen wrote: ... > Thanks for any and all input. // here is a completely different way of doing it: function setSimplePageProtectionDetails($login, $pwd, $makeSha1Hash = false) { if (!defined('SIMPLE_AUTH_PW') && !defined('SIMPLE_AUTH_USER')) { if (!$login || !$pwd) {

Re: [PHP] Finding a visitor's location

2006-10-23 Thread Chris
John Messam wrote: Hello, I am trying to find out the country and possibly the city where the visitors to my site are coming from. I can capture the IP address but how do I translate that to a specific locale. Is there a way to do it or do I have to ask them and map the info myself. Thank yo

Re: [PHP] Re: Paginating searchs = performance problem

2006-10-23 Thread Chris
Robert Cummings wrote: On Mon, 2006-10-23 at 10:13 +0200, Ivo F.A.C. Fokkema wrote: On Fri, 20 Oct 2006 12:06:26 -0400, Robert Cummings wrote: On Fri, 2006-10-20 at 17:22 +0200, Ivo F.A.C. Fokkema wrote: On Fri, 20 Oct 2006 17:04:35 +0200, Fourat Zouari wrote: I have PHP/PostgreSQL applicat

[PHP] Finding a visitor's location

2006-10-23 Thread John Messam
Hello, I am trying to find out the country and possibly the city where the visitors to my site are coming from. I can capture the IP address but how do I translate that to a specific locale. Is there a way to do it or do I have to ask them and map the info myself. Thank you for you help. This

  1   2   >