[PHP] for help :how to detect norton client through php socket

2003-12-04 Thread lph
how can i detect whether norton antivirus client are installed on the hosts through php socket ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] for help :how to detect norton client through php socket

2003-12-04 Thread lph
how can i detect whether norton antivirus client are installed on the hosts through php socket ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FreeBSD port install question

2003-12-04 Thread Dave Carrera
Hi List, I am in need to update our version of php to the latest stable 4.3.4 and in GD, XSLT and other goodies. The issue I have is how do I tell a port to install but not over right the current working version so that I can test it first. Make will be as a module for apache. I hope this is

Re: [PHP] for help :how to detect norton client through php socket

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 15:39:30 +0800, you wrote: how can i detect whether norton antivirus client are installed on the hosts through php socket ? Why would you want to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: for help :how to detect norton client through php socket

2003-12-04 Thread lph
why ? I manager a network including 2000 hosts, and i want to post the hosts ip and department not installing the norton client on our web page so i wonder to how to detect detect whether norton antivirus client are installed on the hosts through php socket Lph [EMAIL PROTECTED]

[PHP] SID problem

2003-12-04 Thread Binay
Hi everybody, I m trying to disable/off session.use_trans_sid. I don have access to php.ini file... hence trying to unset in the php scripts and .htaccess file . While this works in php script i.e ini_set(session.use_trans_sid,0); but in .htaccess it seems it doesn't i.e php_flag

RE: [PHP] SID problem

2003-12-04 Thread Wouter van Vliet
On donderdag 4 december 2003 10:36 Binay told the butterflies: Hi everybody, I m trying to disable/off session.use_trans_sid. I don have access to php.ini file... hence trying to unset in the php scripts and .htaccess file . While this works in php script i.e

Re: [PHP] File - Success Warning Message

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 01:54:31 -0800 (PST), you wrote: Warning: file(http://webmail.juicemarketing.net;) - Success in /me notes this is a pyramid scam site Don't know about the rest of you... but there are some people I'd prefer /not/ to do free consultancy for. -- PHP General Mailing List

Re: [PHP] SID problem

2003-12-04 Thread Binay
I have one more question. Is it necessary to call ini_set before session_start()?? or any where in the scope of the script? - Original Message - From: Wouter van Vliet [EMAIL PROTECTED] To: 'Binay' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:28 PM Subject: RE:

[PHP] File - Success Warning Message

2003-12-04 Thread [-^-!-%-
Hello everyone! I'm getting this weird warning message when I include a file. I was hoping someone could point me in the right direction. ==The Code== $_html = implode('',file('http://myaddress.com')); print_r($_html); === This code gives the following error: Begin Error-- Warning:

RE: [PHP] SID problem

2003-12-04 Thread Wouter van Vliet
On donderdag 4 december 2003 10:53 Binay told the butterflies: Yes AllowOverride is set to None But then i can not change it as i don have access .. wht other method/solution i can look except ini_set then ?? - Original Message - From: Wouter van Vliet [EMAIL PROTECTED] To:

[PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Karam Chand
Hello I have got an app wherein you need to pass a name as the first parameter and it will output that is cout a registraion code for my app based on the name. I would like to give a web based interface wherein a user can give his name on the form and I will be able to generate the code from

Re: [PHP] File - Success Warning Message

2003-12-04 Thread Richard Davey
Hello [-^-!-%-, Thursday, December 4, 2003, 9:54:31 AM, you wrote: $_html = implode('',file('http://myaddress.com')); Sorry, just noticed you're bringing it back via file which (should) convert it to an array. In which case the bad argument would be the lack of a delimeter (the first value).

Re: [PHP] Session Expiration Problem....

2003-12-04 Thread SLanger
Hello Have you considered breaking down your form into several smaller ones on seperate pages like a wizard? In each step you can save the entered data preventing it from being lost. In the end show the whole form with all data for verification by the user. Regards Stefan Langer

Re: [PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Sophie Mattoug
See www.php.net/passthru Karam Chand wrote: Hello I have got an app wherein you need to pass a name as the first parameter and it will output that is cout a registraion code for my app based on the name. I would like to give a web based interface wherein a user can give his name on the form

[PHP] Re: Variables scope question

2003-12-04 Thread Steve Fulleylove
Mike, It depends what you mean by local scope. If you declare the variable as global, it should be available to the code inside include1.txt and index.php. It will not be available to other pages however (i.e. it is not session global). To create a truly global (available to all pages in the

Re: [PHP] New line problem - but for Excel

2003-12-04 Thread Sven
David T-G schrieb: Manisha -- ...and then Manisha Sathe said... % % Actually I do not have phpscript for this. I am using readymade function % from PHPMyAdmin 2.1.0. They are having option to export to csv file with % delimeter ';' (It comes on screen first and then i copy to file manually.)

[PHP] Re: preserving blank space padding when using fgetcsv

2003-12-04 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello, I've been researching this for most of the day and am unable to find an answer. I'm using fgetcsv to read a comma delimited file (Microsoft Excel CSV). I'm trying to create a PHP application which will read a csv file line

Re: [PHP] Re: XML, strings and foreign (swedish/danish) characters

2003-12-04 Thread Victor Spång Arthursson
2003-12-03 kl. 11.18 skrev Victor Spng Arthursson: Temporarely solved the problem using substring to trim the crap-chars away, but I'ld prefer to solve it in a more beautiful way, but perhaps this behaviour is a bug and therefore not possible to solve in any other way But do we think it works

Re: [PHP] SID problem

2003-12-04 Thread Binay
Yes AllowOverride is set to None But then i can not change it as i don have access .. wht other method/solution i can look except ini_set then ?? - Original Message - From: Wouter van Vliet [EMAIL PROTECTED] To: 'Binay' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December

[PHP] Problem with references

2003-12-04 Thread Terry
I wonder if there is a simple techique to help me here. I wish to return 2 references to objects from a function. The following code describes what I want to do but obviously will not work (and I understand why): function Test ($P1, $P2) { $Object = new Thing(); $P1 = $Object; $P2 =

Re: [PHP] Re: XML, strings and foreign (swedish/danish) characters

2003-12-04 Thread Victor Spång Arthursson
Here is the error message, that the code produces: http://tosti.dk/xml/error.php And here is a copy of the code: http://tosti.dk/xml/error.txt I really cant figure what is wrong, especially not since it works on the dev-server and the outputted xml is valid, at least as far as IE concerns

[PHP] cookies

2003-12-04 Thread Maris Kalnins
Let's assume that we have an html page where we plant a call to cookie registering php script. This is done by the following html line which is placed on that page we would like to have cookies stats for: html ... body .. img nocache border=0 width=2 height=1

[PHP] Re: BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Leendert
Ahbaid Gaffoor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks to all who helped with my earlier questions on pulling BLOB data out of Oracle using PHP. I am however finding that performance is slow when downloading huge files from the database. A typical 2Meg GIF file

Re: [PHP] Problem with references

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 11:16:10 -, you wrote: I wonder if there is a simple techique to help me here. I wish to return 2 references to objects from a function. The following code describes what I want to do but obviously will not work (and I understand why): function Test ($P1, $P2) {

Re: [PHP] File - Success Warning Message

2003-12-04 Thread Richard Davey
Hello [-^-!-%-, Thursday, December 4, 2003, 9:54:31 AM, you wrote: $_html = implode('',file('http://myaddress.com')); Warning: Bad arguments to implode() in $_html is empty, even though the remote page exist and is working properly. implode creates a string from an array. Your web page is

[PHP] open rtf in IE

2003-12-04 Thread Egil Berntsen
I generate and save a rtf file with php in my MySQL db. Is it possible to open this file in IE? thanks /egil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Sophie Mattoug
Ahbaid Gaffoor wrote: Thanks to all who helped with my earlier questions on pulling BLOB data out of Oracle using PHP. I am however finding that performance is slow when downloading huge files from the database. A typical 2Meg GIF file being downloaded from Oracle via. PHP is taking about

Re: [PHP] open rtf in IE

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 12:48:45 +0100, you wrote: I generate and save a rtf file with php in my MySQL db. Is it possible to open this file in IE? Probably not; I doubt IE understands RTF documents. You're probably asking how to make IE pass the document over to Word, though. Try variations on

[PHP] Premature end of script headers: php.exe

2003-12-04 Thread Goran Ristic
Hello, I have a problem. When I start my PHP script, I get message Premature end of script headers: php.exe. How can I solve this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] copy_file() files

2003-12-04 Thread Jay Blanchard
[snip] What is the chmod of those files/directories. [/snip] You had already stated the owner/group...I want to know what the read/write permissions are. For 'nobody' to be able to write to a directory that directory must be owned by 'nobody' drw--- (chmod 600) If the group is 'nobody' it

RE: [PHP] BLOB - PHP Peformance DB vs. Web server Opinions

2003-12-04 Thread Jay Blanchard
[snip] 2) Is there any advice for or against storing images as blobs in a database? Or is it better to store them on the web server file system? [/snip] Never store images as blobs, never. The read/write operation to the database for these is expensive and unnecessary. Store a reference to the

[PHP] [OT MySQL] Syntax for selecting within a range of time from database

2003-12-04 Thread Dave G
PHP Gurus, What I'm trying to accomplish can be done in PHP, but someone on this list told me once that it's far more efficient to try and do as much on the MySQL side as possible. But I'm not really enough of an SQL guy to join an SQL list, so I hope I can be forgiven this posting here.

Re[2]: [PHP] related products, how to's best practices

2003-12-04 Thread Richard Davey
Hello Jon, Thursday, December 4, 2003, 12:59:17 PM, you wrote: JB They are in groups (type, category) but the problem is the way their JB products relate doesn't correspond to their type (book, video etc) or JB their category (like Classic Books, Rewarding Social Skills etc) and JB some products

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Richard Davey
Hello Jon, Thursday, December 4, 2003, 12:42:28 PM, you wrote: JB I don't think getting the info into the db will be a problem, what I JB see as a problem is how an admin will select 3 out of 200+ products. JB Obviously a drop down is a bad idea, but so would a alphabetical list. JB has anyone

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Jon Bennett
Hi, Why should I not use drop downs ?? are they generally out of favour now ?? why ??? I ask because I was thinking of having each categories products listed in a drop down ! Thanks, Jon jon bennett | [EMAIL PROTECTED] new media designer / developer _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Re[2]: [PHP] related products, how to's best practices

2003-12-04 Thread Richard Davey
Hello Jon, Thursday, December 4, 2003, 1:08:36 PM, you wrote: JB Why should I not use drop downs ?? are they generally out of favour now JB ?? why ??? Not at all. JB I ask because I was thinking of having each categories products listed JB in a drop down ! You said there were over 200 of

Re: [PHP] Premature end of script headers: php.exe

2003-12-04 Thread Marek Kilimajer
This is a common error with php/iis combination, google for the error string to find possible solutions. Goran Ristic wrote: Hello, I have a problem. When I start my PHP script, I get message Premature end of script headers: php.exe. How can I solve this problem? -- PHP General Mailing List

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Jon Bennett
They are in groups (type, category) but the problem is the way their products relate doesn't correspond to their type (book, video etc) or their category (like Classic Books, Rewarding Social Skills etc) and some products appear in more than one category as well. Any other ideas ?? Thanks,

[PHP] related products, how to's best practices

2003-12-04 Thread Jon Bennett
Hi, I'm currently working on my first e-commerce site and would like to offer my client the option of adding, maybe 3, related products for each product using the CMS I'm developing. I guess this would be much like Amazon et all. I don't think getting the info into the db will be a problem,

[PHP] CHMOD...

2003-12-04 Thread Tristan . Pretty
Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod (/somedir/%,

RE: [PHP] [OT MySQL] Syntax for selecting within a range of time from database

2003-12-04 Thread Jay Blanchard
[snip] SELECT date(?) FROM table WHERE DATE_ADD(now(?), INTERVAL 72 HOURS) [/snip] careful of keywords SELECT dateThing FROM table WHERE dateThing BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL 72 HOUR) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Premature end of script headers: php.exe

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 13:17:57 +0100 , you wrote: I have a problem. When I start my PHP script, I get message Premature end of script headers: php.exe. How can I solve this problem? Run from the command line, or via a webserver? IIS or Apache? CGI or Apache module? Do all scripts throw the error,

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] I need to know how to run a php script without it popping open a browser window. $cmd = 'start http://www.somedomain.com/somedir/somefile.php ' exec( $cmd ); I have tried using exec system with '' at the end of the command but that does not seem to work. It always opens a browser window

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Justin French
On Thursday, December 4, 2003, at 11:42 PM, Jon Bennett wrote: I'm currently working on my first e-commerce site and would like to offer my client the option of adding, maybe 3, related products for each product using the CMS I'm developing. I guess this would be much like Amazon et all. I

Re: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Sophie Mattoug
Jay Blanchard wrote: [snip] I am running php as an apache module, which is why I used 'START' in exec(START http://blablalga;. Not sure if this is the correct way of doing it but I cannot use -q with start. [/snip] What is it that you are trying to accomplish? Then perhaps I can better help. Even

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] exec(chmod 0777 /directory/*); You still cannot set all sub directory and files within those permissions. Best to loop through and set each as needed, don't forget to cahnge them back. Yes, you can: exec(chmod -R 0777 /directory/*); [snip] *slaps forehead* Duh me! Of course! I so

Re: [PHP] CHMOD...

2003-12-04 Thread Sophie Mattoug
Jay Blanchard wrote: [snip] Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply?

[PHP] How to display a waiting page while a CGI is running ?

2003-12-04 Thread Jean-Marc Godart
Hello, I need to have a waiting page displayed, with an animated GIF, while a CGI is running. As soon as the CGI has finished running, the waiting page should be replaced by a page displaying the results of the CGI. I had no problem to do this in Windows, but it is not working in Linux. Any idea

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] Even if php is an Apache module there still should be a path to the PHP executable (type 'which php') and you will not need the http://foo Sorry but no : when php is an apache-module, there's no executable (only a .so library) [/snip] Depends on the installation and method of

RE: [PHP] How to display a waiting page while a CGI is running ?

2003-12-04 Thread Jay Blanchard
[snip] I need to have a waiting page displayed, with an animated GIF, while a CGI is running. As soon as the CGI has finished running, the waiting page should be replaced by a page displaying the results of the CGI. I had no problem to do this in Windows, but it is not working in Linux. Any idea

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Jay Blanchard wrote: Yes you can, but 'tis not a swell idea. You can exec the chmod command exec(chmod 0777 /directory/*); You still cannot set all sub directory and files within those permissions. Best to loop through and set each as needed, don't forget to cahnge them back. Yes, you can:

Re: [PHP] CHMOD...

2003-12-04 Thread Neil Freeman
How about: exec(chmod -R 755 /somedir/); [EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders

Re: [PHP] Re: for help :how to detect norton client through php socket

2003-12-04 Thread Marek Kilimajer
Why are you asking this on php list? You might want to do it in php, but it's not a php problem. Ask the sofware vendor if it is possible. lph wrote: why ? I manager a network including 2000 hosts, and i want to post the hosts ip and department not installing the norton client on our web

Re: [PHP] SID problem

2003-12-04 Thread Marek Kilimajer
Before session_start() Binay wrote: I have one more question. Is it necessary to call ini_set before session_start()?? or any where in the scope of the script? - Original Message - From: Wouter van Vliet [EMAIL PROTECTED] To: 'Binay' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday,

[PHP] What do you say to someone who says...

2003-12-04 Thread Daniel Pupius
What do you say to someone who says: PHP is just a kiddie language? (Source: http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=19373) PHP is currently my strongest development language and it annoys me that it is a much less bankable skillset than .NET and Java. How long do you think it's

[PHP] html stripping

2003-12-04 Thread php-general
No this is not some shaddy game or strip poker knock-off. My question has to do with a person project I have started. I have a script that grabs names and ids from a database, puts them in an array and then based on that grabs a URL and parses that URL for this name, drops all the html crap,

RE: [PHP] copy_file() files

2003-12-04 Thread Jay Blanchard
[snip] Of course, user nobody had read/write permission and the group too. As an administrator with 15 years experience of Unix, I think I understand this! ;-) [/snip] Glad you solved your problem. Sorry for making an assumption about your lack of knowledge or experience. -- PHP General Mailing

Re: [PHP] copy_file() files

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 06:21:05AM -0600, Jay Blanchard wrote: You had already stated the owner/group...I want to know what the read/write permissions are. For 'nobody' to be able to write to a directory that directory must be owned by 'nobody' drw--- (chmod 600) If the group is

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Jon Bennett
Would I be right in thinking that php alone can't change the content of a dropdown once the browser has loaded the file without a page refresh ??? In which case I need to source out some javascript, anyone got anything that might help me (code, tute, urls etc) as I'm not having much luck with

Re: [PHP] Changing User Agent for fopen

2003-12-04 Thread Gerard Samuel
On Thursday 04 December 2003 10:36 am, Gohaku wrote: Hi everybody, There are some pages I would like to extract links from but I can't access the page using the following: ini_set('php.user_agent', 'Mozilla/5.0'); This should work - header('User-Agent: Mozilla/5.0'); -- PHP General

Re[2]: [PHP] related products, how to's best practices

2003-12-04 Thread Richard Davey
Hello Jon, Thursday, December 4, 2003, 3:43:53 PM, you wrote: JB Would I be right in thinking that php alone can't change the content of JB a dropdown once the browser has loaded the file without a page refresh Right. JB ??? In which case I need to source out some javascript, anyone got JB

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Brent Baisley
I could understand a programmer saying something like that, since PHP is after all a scripting language. As is Perl, Python, Ruby, etc. A programming purist may even consider any language without direct memory management a kiddie language. Of course, I think Java falls under this kiddie

RE: [PHP] Changing User Agent for fopen

2003-12-04 Thread jon
You might want to look at curl as an alternative -- it gives you a lot more flexibility than fopen. -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Gohaku [mailto:[EMAIL PROTECTED] Sent: Thursday, December

Re: [PHP] International Addresses and Telephones

2003-12-04 Thread Sophie Mattoug
I can tell you for France : zip code : 5 digits (may begin by '0') state : not relevant phone number : 10 digits or +33 and 9 digits Rankin, Randy wrote: I have a form which captures US addresses ( address, city, state ) and telephone numbers ( 10 digit ) and am writing this data to a MySQL

[PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Keith
Hi all, I need to know how to run a php script without it popping open a browser window. $cmd = 'start http://www.somedomain.com/somedir/somefile.php ' exec( $cmd ); I have tried using exec system with '' at the end of the command but that does not seem to work. It always opens a browser window

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] What do you say to someone who says: PHP is just a kiddie language? (Source: http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=19373) [/snip] Lack of knowledge begets statements like that. (On a DHTML board at that *snicker*) The only thing that you can say to them is this...when

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod

[PHP] International Addresses and Telephones

2003-12-04 Thread Rankin, Randy
I have a form which captures US addresses ( address, city, state ) and telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I need to expand this to capture non-US info, so I was hoping for some guidance on forms and table structures. I have googled this to death and still

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Matt Matijevich
** Low Priority ** snip Jon Bennett [EMAIL PROTECTED] 12/4/2003 9:43:53 AM Would I be right in thinking that php alone can't change the content of a dropdown once the browser has loaded the file without a page refresh ??? In which case I need to source out some javascript, anyone got

Re[2]: [PHP] International Addresses and Telephones

2003-12-04 Thread Richard Davey
SM I can tell you for France : SM zip code : 5 digits (may begin by '0') SM state : not relevant SM phone number : 10 digits or +33 and 9 digits For the UK you'll need (on average!) 8 characters for the postal (zip) code and it must allow letters and a space: BS15 7HL for example. Some postcodes

Re: [PHP] CHMOD...

2003-12-04 Thread Justin Patrin
In all fairness, that's not a very good solution. Using system commands makes your script not cross platform, meaning it can't work on Windows. For a better solution try writing a recursive chmod script that sets the permission, the loops through the files and calls itself on them if the input

[PHP] Changing User Agent for fopen

2003-12-04 Thread Gohaku
Hi everybody, There are some pages I would like to extract links from but I can't access the page using the following: ini_set('php.user_agent', 'Mozilla/5.0'); $url = http://www.google.com/search?q=php;; $fp = fopen($url,r); $buffer = fread($fp,100); echo

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Jon Bennett
How about a dropdown for each category (max 25 products per cat I'd think) with either a series of radio buttons or another dropdown to determine the order of preference (1,2 or3), how would something like that stand up to the user interface and usuability bods ?? Dang, that wouldn't work,

[PHP] Overload of private atributes ?

2003-12-04 Thread Eduardo R. Maciel
Do we have a way to avoid the overload of private atribute members? Look the example below, and you will see that as the private member is not visible in the subclass, it is overloaded by an atribute member of the same name. How to avoid that?? class PrivateAccess { private

Re: [PHP] International Addresses and Telephones

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 09:53:16AM -0600, Rankin, Randy wrote: I have a form which captures US addresses ( address, city, state ) and telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I need to expand this to capture non-US info, so I was hoping for some guidance on

[PHP] DB / Tables Question

2003-12-04 Thread Pushpinder Singh Garcha
Hello everyone, I have created a PHP and MySQL powered, web-based CRM package for our office. It simply takes care of our telephone marketing strategy. I need to provide this CRM package to our other clients as well. The CRM package makes use of 2 tables i.e. 'Admin' and 'Contacts' .

RE: [PHP] How does one run PHP scripts in 'silent mode' ???

2003-12-04 Thread Jay Blanchard
[snip] I am running php as an apache module, which is why I used 'START' in exec(START http://blablalga;. Not sure if this is the correct way of doing it but I cannot use -q with start. [/snip] What is it that you are trying to accomplish? Then perhaps I can better help. Even if php is an Apache

Re: [PHP] DB / Tables Question

2003-12-04 Thread Richard Davey
Hello Pushpinder, Thursday, December 4, 2003, 4:38:13 PM, you wrote: PSG I want to be able to create a similar CRM package for other clients. My PSG question is should I create a separate DB for each client. PSG or is it a better design practice to create 2 tables (Admin and PSG Contacts) per

Re: [PHP] International Addresses and Telephones

2003-12-04 Thread Mike
have a look at the pear Validate class - this is what you need. In the UK the postal code is (as a preg expression) /[A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]\s?[1-9][A-Za-z]{2}/ these are valid postcodes B1 4RT B56 6TY BN5 6ER SW1A 1AA (- the queen @ buck palace) SW14 5RT ie. one or 2 letters,

RE: [PHP] DB / Tables Question

2003-12-04 Thread Robert Sossomon
Personally, as a design practice I would make the 2 tables in their own separate database. This would allow it to port anywhere, even a new server you bring online and shift everything to. I have been working on a catalog/quote system for our salesmen to use and have given it to a sister

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Justin Patrin wrote: In all fairness, that's not a very good solution. Using system commands makes your script not cross platform, meaning it can't work on Windows. For a better solution try writing a recursive chmod script that sets the permission, the loops through the files and calls itself

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 15:16:06 -, you wrote: What do you say to someone who says: PHP is just a kiddie language? (Source: http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=19373) PHP is currently my strongest development language and it annoys me that it is a much less bankable skillset

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] (It's foolish to get into blind religious wars over languages, so I won't take this any further, but it's also foolish to be wilfully ignorant of the strengths and weaknesses of the tools you use.) [/snip] ...or to make statements based on willfull ignornace of others tools. :) -- PHP

Re: [PHP] Session Expiration Problem....

2003-12-04 Thread CF High
Hey Lowell. H, no, not a particularly elegeant solution, but it must work for you. I'm experimenting with ini_set('session.gc_maxlifetime', 4320); Don't know if this will extend the session timeout; i.e. garbage collection routine, I'm still testing it. A total drag that our host

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Cesar Cordovez
People (and some boots): I'm not against or in favor of all this stuff, but exactly all the opposite... (lmao) Seriously, there is no kiddie nor professional languages out there, what is important is what you do with them. PHP will power yahoo in a couple of months more, that is a company

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 12:25:25PM -0500, Cesar Cordovez wrote: So there you go! We are all greek!!! Beware of Greeks bearing GIFs (Sorry, couldn't resist ;-) -- Aj. Sys. Admin / Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problem with references

2003-12-04 Thread Eduardo R. Maciel
On Thu, 4 Dec 2003 11:16:10 -, you wrote: I wonder if there is a simple techique to help me here. I wish to return 2 references to objects from a function. The following code describes what I want to do but obviously will not work (and I understand why): function Test ($P1, $P2) {

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Chris W. Parker
Cesar Cordovez mailto:[EMAIL PROTECTED] on Thursday, December 04, 2003 9:25 AM said: I work on a project 100% made in PHP and MySQL that costs a lot of money (6 figures) a copy. Ok... I can't let this go. Do tell! What is it? Or at the very least, what does it do? Chris. -- Don't like

Re: [PHP] related products, how to's best practices

2003-12-04 Thread Ajai Khattri
On Thu, Dec 04, 2003 at 03:43:53PM +, Jon Bennett wrote: Would I be right in thinking that php alone can't change the content of a dropdown once the browser has loaded the file without a page refresh ??? In which case I need to source out some javascript, anyone got anything that might

RE: [PHP] related products, how to's best practices

2003-12-04 Thread Chris W. Parker
Justin French mailto:[EMAIL PROTECTED] on Thursday, December 04, 2003 6:03 AM said: 2. Javascript pop-up -- you could take this part of the process out of the main window, and into a JS pop-up window which let's the user dig through categories, do searches, WHATEVER to find each product.

Re: [PHP] replace %rand[x]-[y]% macro in string with random string

2003-12-04 Thread daniel hahler
on Tue, 2 Dec 2003 23:46:33 +0100 I already wrote, regarding replacing macro %rand[x]-[y] with random of random length ([x]-[y]). Before, I had my own (slow!) procedure to find next occurence of the macro and generated a new string, which was returned. This took about 15 seconds for 10.000

RE: [PHP] Problem with references

2003-12-04 Thread Chris W. Parker
David Otton mailto:[EMAIL PROTECTED] on Thursday, December 04, 2003 3:43 AM said: function f() { return (array (7, 5)); } list ($a, $b) = f(); Hey cool! I never knew about that. Chris. -- Don't like reformatting your Outlook replies? Now there's relief!

Re: [PHP] What do you say to someone who says...

2003-12-04 Thread Cesar Cordovez
I'm byting my tongue off... I have to resist... I've signed a do not tell anybody thingy... It is huge, as in database with a million records, huge... But... I can't tell. Sorry. Anyhow, we chose PHP over Java, C++, C#, coldfusion and asp to do this. The process was very simple: it is

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Chris W. Parker
Cesar Cordovez mailto:[EMAIL PROTECTED] on Thursday, December 04, 2003 10:21 AM said: I'm byting my tongue off... I have to resist... I've signed a do not tell anybody thingy... It is huge, as in database with a million records, huge... But... ARGH! I understand. :( Chris. -- Don't

Re: [PHP] cookies

2003-12-04 Thread Chris Shiflett
--- Maris Kalnins [EMAIL PROTECTED] wrote: img nocache border=0 width=2 height=1 src=http://www.cookiedomain.com/cookies/cookies.php [snip] Php cookie registering script has the following cookie set operation: setcookie(test, 1, time() + 3600, /, ); The problem is that when executing

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Jay Blanchard
[snip] I'm byting my tongue off... I have to resist... I've signed a do not tell anybody thingy... It is huge, as in database with a million records, huge... But... ARGH! I understand. :( [/snip] We process millions of records each day for a billing system based on PHP and MySQL. Gives us

[PHP] PHP, MySQL and datetime

2003-12-04 Thread Jough Jeaux
Greetings all, I'm working on a message-board-type application that will use time stamps to sort part of the messages. I was wondering what everyone's favorite way to transfer dates between PHP and MySQL was? --Jough - Do you Yahoo!? Free Pop-Up Blocker - Get

[PHP] Showing absolute path in $_FILES

2003-12-04 Thread David Green
Quick file question. I want to have a user locate a file, and have the absolute path be saved as a variable. I have a form of type file. In the form tag, I have enctype=multipart/form-data. On the target page, I call it by using $file = $_FILES['file']['name']. When i navigate to the file

Re: [PHP] PHP, MySQL and datetime

2003-12-04 Thread Richard Davey
Hello Jough, Thursday, December 4, 2003, 6:39:13 PM, you wrote: JJ Greetings all, I'm working on a message-board-type JJ application that will use time stamps to sort part of the JJ messages. I was wondering what everyone's favorite way to JJ transfer dates between PHP and MySQL was? Seeing as

  1   2   >