[PHP] RSS/RDF generator

2004-05-21 Thread electroteque
Hi there, I was wondering if there is a standard pear class like the XML_Tree to build RSS/RDF documents from the database ? Let me know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Searching a file

2004-05-21 Thread Ian Barnes
Hi, I have a file that looks like this: #gc: Ian eth0,1000,1100,1200,1300,1400 eth1,10,100,200 eth2,3000,3100,3200,3300 Okay, the numbers after the ethx are not static, there can be more and there can be less depending on what the user selects. Now my problem, I have a list of numbers that they

[PHP] Re: include $var

2004-05-21 Thread Aidan Lister
Try it? (Yes, it works) "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Should 'include $var;' work? > I need go to an HTML page after the form has been submitted. > page A -> program B (no output) -> page A -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Re: php and java applets

2004-05-21 Thread raditha dissanayake
Travis Low wrote: The link you provided seems broken -- here's another: http://www.raditha.com/java/sandbox/ gee thanx that's the link i meant ;-) (my own site actually) -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the

[PHP] iconv with UTF-7-IMAP support

2004-05-21 Thread Bjai
I have recently found someone that has written a patch for iconv library to support UTF-7-IMAP encoding (http://www.technoids.org/utf7imap/index.html). Within the patching instruction it is required to edit the iconv library file of PHP in order to handle idiosncrasies #2 (there is an example of ed

[PHP] include $var

2004-05-21 Thread Bob Lockie
Should 'include $var;' work? I need go to an HTML page after the form has been submitted. page A -> program B (no output) -> page A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php and java applets

2004-05-21 Thread Travis Low
The link you provided seems broken -- here's another: http://www.raditha.com/java/sandbox/ raditha dissanayake wrote: Tom Playford wrote: That was my original plan. The problem is that if someone works out the commands needed to communicate with the php control page, they will be able to bypass th

[PHP] FreeBSD and phpize

2004-05-21 Thread Justin Hendrickson
FreeBSD and phpize have never cooperated with me. The phpize script requires a number of files, like automake, autoconf, libtool, ect, however FreeBSD installs these files as automake14, autoconf253 and libtool14. Has anyone out there found a good way to get around this problem without manually

Re: [PHP] Re: php and java applets

2004-05-21 Thread raditha dissanayake
Tom Playford wrote: That was my original plan. The problem is that if someone works out the commands needed to communicate with the php control page, they will be able to bypass the Java access control systems. I suppose I could use https, but does that encrypt the url and post data? I think you

Re: [PHP] Cannot Get Session Variables nor Global variables to work

2004-05-21 Thread Jordi Canals
You need to place session_start() at the top of test2.php. If you use session_start, you should not use using session_register(), just use $_SESSION. From Manual: "If you are using $_SESSION and disable register_globals, do not use session_register(), session_is_registered() and session_unregis

[PHP] Cannot Get Session Variables nor Global variables to work

2004-05-21 Thread Joe Carr
Help. I am missing a MAJOR aspect of using either Session variables or global variables. I am trying to set one variable on one page, and read it on the other _without_ sending any information in the query string. Here is the code for the two pages : test1.php : step 2 and test2.php looks like t

Re: [PHP] Re: Decompressing files via php

2004-05-21 Thread Gerard Samuel
On Friday 21 May 2004 04:44 pm, Justin Patrin wrote: > Gerard Samuel wrote: > > Looking for libraries that are capable of decompressing files, such as > > those in zip or tar format. > > Im aware of PCL(Tar/Zip), and was wondering if there were any others out > > there. > > Just want to see whats o

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Stephen Lake
All headers have to be sent before any output is sent to the browser. "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] GodFoca on Friday, May 21, 2004 1:29 PM said: > Warning: Cannot add header information - headers already sent by > (ou

Re: [PHP] Cpanel accounting library

2004-05-21 Thread Jordi Canals
Travis Low wrote: Jordi Canals wrote: I'm working on some scripts to manage the [cpanel] accounts directly from PHP (Scripts will be GNU/GPL licensed). After STFW, I've not found any good documentation on it, just the short samples on http://www.cpanel.net/remoteaccess-php.html I haven't found

Re: [PHP] empty connection string

2004-05-21 Thread Stephen Lake
Its a first for me to hear to...never thought PHP and MS were married :D "Jeroen Serpieters" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 21 May 2004, AMC wrote: > > > > > Yes > > > > It's the first time I hear response.write() and php together ... confused :S > > -- > Jer

RE: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Chris W. Parker
GodFoca on Friday, May 21, 2004 1:29 PM said: > Warning: Cannot add header information - headers already sent by > (output started at /home/tiempodemaria/main.php:3) in > /home/tiempodemaria/main.php on line 11 [snip] > Does anybody knows what's going on? I don't u

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Daniel Clark
Try putting your below setting the cookie. > I'm getting this error: > > Warning: Cannot add header information - headers already sent by (output > started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php > on line 11 > > With this code in "main.php": > > > define

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Kevin Murphy
I'm a newbie to PHP too, but I think its the HTML tag. Move it down below the PHP and see what happens. -- Kevin Murphy Web Designer - Stubborn Donkey Productions www.stubborndonkey.com On May 21, 2004, at 1:28 PM, GodFoca wrote: I'm getting this error: Warning: Cannot add header informat

[PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread GodFoca
I'm getting this error: Warning: Cannot add header information - headers already sent by (output started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php on line 11 With this code in "main.php": . Does anybody knows what's going on? I don't un

Re: [PHP] Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:41:00PM +, Curt Zirzow wrote: > * Thus wrote Michael R. Wayne ([EMAIL PROTECTED]): > > > > I've posted several times mentioning that I am completely unable > > to cause sessions to persist. Over the intervening time, I have > > replicated this problem to a different

Re: [PHP] empty connection string

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, AMC wrote: > > Yes > It's the first time I hear response.write() and php together ... confused :S -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer (not advised) are called hardware; those

Re: [PHP] empty connection string

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Curt Zirzow wrote: > > Are we talking about PHP here? > It smells like asp ;-) -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers were consciously designing a product for people not as smart as them. -- Paul Graham -- PHP Gene

Re: [PHP] empty connection string

2004-05-21 Thread AMC
Yes "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote AMC ([EMAIL PROTECTED]): > > Hi, > > > > I'm using an include file to store the connection string to a mysql db. > > Whenever I try to reference that a string to open a connection I get the > > error 'empy

Re: [PHP] empty connection string

2004-05-21 Thread Curt Zirzow
* Thus wrote AMC ([EMAIL PROTECTED]): > Hi, > > I'm using an include file to store the connection string to a mysql db. > Whenever I try to reference that a string to open a connection I get the > error 'empy connection string' . When I write the string to the page using > response.write(connectio

[PHP] Re: Decompressing files via php

2004-05-21 Thread Justin Patrin
Gerard Samuel wrote: Looking for libraries that are capable of decompressing files, such as those in zip or tar format. Im aware of PCL(Tar/Zip), and was wondering if there were any others out there. Just want to see whats out there before I settle on one of them. Thanks http://pear.php.net/pack

[PHP] empty connection string

2004-05-21 Thread AMC
Hi, I'm using an include file to store the connection string to a mysql db. Whenever I try to reference that a string to open a connection I get the error 'empy connection string' . When I write the string to the page using response.write(connectionstring) it shows up fine. Is the something else t

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Curt Zirzow
* Thus wrote Bob Lockie ([EMAIL PROTECTED]): > On 05/21/04 16:08 Michael R. Wayne spoke: > >On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: > > > >>Hi > >> > >>All my web sites suddenly stopped working after my ISP installed the > >>newer php 4.3.6 released. The problem is when calli

Re: [PHP] Sessions still do not persist

2004-05-21 Thread Curt Zirzow
* Thus wrote Michael R. Wayne ([EMAIL PROTECTED]): > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same > results. Here's a recap of the problem. > >

[PHP] Re: [PHP-ES] Proyecto GPL

2004-05-21 Thread Jordi Canals
Manuel González Noriega wrote: El vie, 21-05-2004 a las 19:12, Jordi Canals escribió: Queria comentar sobre un pequeño proyecto que tengo en mente: > sería interesante que comentaras la motivación detrás del proyecto. ¿Ves carencias que solucionar en proyectos ya equivalentes a tu idea como PEAR o

[PHP] grabbing string from URL if URL is masked/forwarded

2004-05-21 Thread Ryan Schefke
I've tried this code and it works wonders. $string = "/tgwedding/users/client1/sites/testgrabid.php"; $thisarray = explode("/", $string); foreach($thisarray as $item) { if(ereg('client', $item)) { $found = $item; $num = ereg_replace('client', '', $found); } } echo $num; ///

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Bob Lockie
On 05/21/04 16:08 Michael R. Wayne spoke: On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: Hi All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 released. The problem is when calling the session_start() function. It seems that the warning message sa

[PHP] Decompressing files via php

2004-05-21 Thread Gerard Samuel
Looking for libraries that are capable of decompressing files, such as those in zip or tar format. Im aware of PCL(Tar/Zip), and was wondering if there were any others out there. Just want to see whats out there before I settle on one of them. Thanks -- PHP General Mailing List (http://www.php

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: > Hi > > All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 > released. The problem is when calling the session_start() function. It seems that > the warning message saying that the session has alrea

[PHP] session_start in php 4.3.6

2004-05-21 Thread Paul Godard
Hi All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 released. The problem is when calling the session_start() function. It seems that the warning message saying that the session has already started and that the function will be ignored makes the php script

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Al
Many thanks everyone. Seems like I should be using constants a lot of places where I've been using globals. Al wrote: Can someone explain to me the value of using defined custom constants, in the context of good coding practice. I don't recall ever seeing define() used in the scripts I've see

Re: [PHP] Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 11:02:49AM -0700, Daniel Clark wrote: > Try a session_start() at the top of pages, see if that works. > Maybe the auto_start does not work. Done: session.auto_start = 0 added session_start to script. No change in behaviour. /\/\ \/\/ -- PHP General Mailing List (http

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 09:12:02PM +0200, Torsten Roehr wrote: > > > > So, what am I missing here? > > You could try it without session.auto_start. Turn it off and put > session_start() at the top of the script (in all pages). Tried that - makes no difference. Still works properly on the second

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: > > Sorry, I'm an idiot! The ? was missing: > > > > > > > > Well, I spoke too soon. It does work, but only the SECOND time the > script is run! > >St

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: > Sorry, I'm an idiot! The ? was missing: > > > Well, I spoke too soon. It does work, but only the SECOND time the script is run! Stage:0 SessionID: 6c9a1819fe95fa6f08f385ee2afa71ca __ [Submit] Stage:1 SessionID: 6c

[PHP] Re: how to verify PHP has been installed with ldap?

2004-05-21 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Bing, Run If you don't see a section for LDAP, it's not installed. In a Windows XP, PHP 4.3.6 environment, installed in C:/Program Files/PHP,I had to change a working default installation as follows to get it to work: Add to php.ini: extension_dir = C:/Program Files/PHP/extensions/ extension

[PHP] Re: what is the preferred method for outputting HTML?

2004-05-21 Thread Torsten Roehr
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > PERL has the CGI library to build HTML. > print header; > print start_html('A Simple Example'), > h1('A Simple Example'), > start_form, > "What's your name? ",textfield('name'), > p, > "What's the

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: > > Sorry, I'm an idiot! The ? was missing: > > Thank you, thank you. This does indeed seem to work in my test script. Now to go work on the real version. > This should work. As far as I have seen trans_sid is not used very often

Re: [PHP] what is the preferred method for outputting HTML?

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Bob Lockie wrote: > > Does PHP have something similar or do I have to write the raw HTML? > You have to write the raw HTML, altough you have several packages from the pear packages who deal with some specific html things, e.g. forms http://pear.php.net/packages.php?catpid=10&

[PHP] Re: MDB2 and single INSERT statement, prepare+execute or just query?

2004-05-21 Thread Torsten Roehr
"Michael Hanney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am ditching my own DB abstraction class in favour of MDB2. > When I need to do a sinlge INSERT, should I use MDB2_Driver_Common->prepare > like this.. > $prep = $this->mdb2->prepare('INSERT INTO test (te

[PHP] MDB2 and single INSERT statement, prepare+execute or just query?

2004-05-21 Thread Michael Hanney
Hello, I am ditching my own DB abstraction class in favour of MDB2. When I need to do a sinlge INSERT, should I use MDB2_Driver_Common->prepare like this.. $prep = $this->mdb2->prepare('INSERT INTO test (test_id, name) values (?,?)', $types); $result = $this->mdb2->executeParams($prep, $ty

[PHP] what is the preferred method for outputting HTML?

2004-05-21 Thread Bob Lockie
PERL has the CGI library to build HTML. print header; print start_html('A Simple Example'), h1('A Simple Example'), start_form, "What's your name? ",textfield('name'), p, "What's the combination?", p, checkbox_group(-name=>'words', -values=>['eenie','m

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: > > > > As far as I remember session.use_trans_sid does NOT work with forms (action > > attribute). Have you tried appending it manually to the action?: >

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: > > As far as I remember session.use_trans_sid does NOT work with forms (action > attribute). Have you tried appending it manually to the action?: Well, this certainly seems to be progress in the correct direction. So session.use_tran

Re: [PHP] Sessions still do not persist

2004-05-21 Thread Daniel Clark
Try a session_start() at the top of pages, see if that works. Maybe the auto_start does not work. > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same

[PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same > results. Here's a

[PHP] Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
I've posted several times mentioning that I am completely unable to cause sessions to persist. Over the intervening time, I have replicated this problem to a different machine, with the same results. Here's a recap of the problem. I am not using cookies. Sessions are automatically created (and

Re: [PHP] CONSTANTS and good coding practice

2004-05-21 Thread Jordi Canals
Al wrote: Can someone explain to me the value of using defined custom constants, in the context of good coding practice. I don't recall ever seeing define() used in the scripts I've seen and only the characteristics are described in the my php book and the php manual; but, not the use. Talking

Re: [PHP] Where to change upload_tmp_dir ini setting

2004-05-21 Thread Peter Risdon
Peter Risdon wrote: Hi, This page: http://www.php.net/manual/en/function.ini-set.php tells me that upload_tmp_dir is of level PHP_INI_SYSTEM and can therefore only be altered in php.ini or httpd.conf I want to be able to set this by virtual host. My httpd.conf s a directory which contains sepera

RE: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > How do I then cycle through this array to build the select box? I > currently use this which works fine when I hard code the values..ie. > $yesno=array("Yes"=>"1","No"=>"0") but doesn't seem to work using your > first option. > > Here is the form selec

RE: [PHP] array_push

2004-05-21 Thread Edward Peloke
How do I then cycle through this array to build the select box? I currently use this which works fine when I hard code the values..ie. $yesno=array("Yes"=>"1","No"=>"0") but doesn't seem to work using your first option. Here is the form select box code while($value=each($array))

Re: [PHP] curl + ssl and invalid certificate

2004-05-21 Thread Curt Zirzow
* Thus wrote Richard Davey ([EMAIL PROTECTED]): > Hi all, > > Does anyone know how to get curl to accept the ssl cert *regardless* > of how ballsed-up it is? I've nver tried it but perhaps: CURLOPT_SSL_VERIFYPEER 0 and/or CURLOPT_SSL_VERIFYHOST 0 Curt -- "I used to think I was indecisive, bu

[PHP] curl + ssl and invalid certificate

2004-05-21 Thread Richard Davey
Hi all, This is a very specific problem so I'm not holding out too much luck, but I am working on a script that must POST data to a secure server so I'm using curl for this. curl works perfectly including on ssl sites like PayPal.com - but the test server I am connecting to has an invalid site ce

[PHP] Where to change upload_tmp_dir ini setting

2004-05-21 Thread Peter Risdon
Hi, This page: http://www.php.net/manual/en/function.ini-set.php tells me that upload_tmp_dir is of level PHP_INI_SYSTEM and can therefore only be altered in php.ini or httpd.conf I want to be able to set this by virtual host. My httpd.conf s a directory which contains seperate files for each vi

Re: [PHP] php and java applets

2004-05-21 Thread jon
Nah... Maybe we're both confused. Is this a java app you wrote or one that you found somewhere? If you know how to control the camera from java and you know how to work in java, you could build yourself a quick and dirty command-line java application, then feed it commands from php using exec o

[PHP] Detect if a file is hidden or not (win32)

2004-05-21 Thread Simon Fredriksson
Is there any built-in function to find out if a file/directory is hidden in Win32? //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to make program execution go to another file?

2004-05-21 Thread michael young
Thank you for your help. This should do nicely. Michael Vail, Warren wrote: This is a common problem for people coming from other languages where the file structures are the same as the execution structure. A few of at least 50 answers is as follows; Force the browser to invoke your next program;

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Fri, 2004-05-21 at 08:37, Richard Davey wrote: > > Absolutely - and one of the best features of constants is their scope > > - being global in nature you can use them ANYWHERE which is very handy > > indeed! > > ANYWHERE except in code you plan to

Re: [PHP] php and java applets

2004-05-21 Thread Tom Playford
jon wrote: Can you just send a command line java app commands from php? I'm not sure what you're getting at. Do you mean writing the Java code in the php page? I didn't know php could compile the code on the fly, can it? Or do you mean something else? Tom -- jon Tom Playford wrote: Dear all k

Re: [PHP] php and java applets

2004-05-21 Thread jon
Can you just send a command line java app commands from php? -- jon Tom Playford wrote: Dear all knowing list, I am trying to control the movement of a camera in real time from the web. But I also need to make sure that only the user I specify can have control. What I though I could do was

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
yes, constants have global scope also :-) "Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have a look here also: http://ie2.php.net/define > > > "Al" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Can someone explain to me the value of using defined custom

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Greg Donald
On Fri, 2004-05-21 at 08:37, Richard Davey wrote: > Absolutely - and one of the best features of constants is their scope > - being global in nature you can use them ANYWHERE which is very handy > indeed! ANYWHERE except in code you plan to eval(). Funny how get_defined_constants() knows about al

Re: [PHP] CONSTANTS and good coding practice

2004-05-21 Thread Matt
> From: "Al" [EMAIL PROTECTED] Friday, May 21, 2004 9:02 AM > Subject: [PHP] CONSTANTS and good coding practice > Can someone explain to me the value of using defined custom constants, > in the context of good coding practice. Constants are useful anywhere you find yourself typing a constant (

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Richard Davey
Hello Craig, Friday, May 21, 2004, 2:30:20 PM, you wrote: C> Constants are useful when a variable will remain exactly the same C> (constant) through the life of a script. Absolutely - and one of the best features of constants is their scope - being global in nature you can use them ANYWHERE whic

Re: [PHP] Cpanel accounting library

2004-05-21 Thread Travis Low
Jordi Canals wrote: I'm working on some scripts to manage the [cpanel] accounts directly from PHP (Scripts will be GNU/GPL licensed). After STFW, I've not found any good documentation on it, just the short samples on http://www.cpanel.net/remoteaccess-php.html I haven't found anything more detai

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
Have a look here also: http://ie2.php.net/define "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can someone explain to me the value of using defined custom constants, > in the context of good coding practice. > > I don't recall ever seeing define() used in the scripts I've see

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
Constants are useful when a variable will remain exactly the same (constant) through the life of a script. e.g a script I wrote to calculate dates be it in the past or future would have constant values for how many seconds are in a day or a week. to be used in calculations. e.g: define("SECONDSIN

Re: [PHP] Re: php and java applets

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Tom Playford wrote: > > I suppose I could use https, but does that encrypt the url and post data? > Your data is encrypted when using ssl. -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer

[PHP] php cgi, apache suexec, filesystem problems

2004-05-21 Thread Peter Risdon
Hi, I am having a lot of problems with any PHP routines that have to access the filesystem - things like exec(), shell_exec(), system(), backticked shell commands, copy(), move_uploaded_file() and so on. I have a non-standard setup with CLI, CGI and mod_php all installed. These scripts are usin

Re: [PHP] Re: php and java applets

2004-05-21 Thread Tom Playford
That was my original plan. The problem is that if someone works out the commands needed to communicate with the php control page, they will be able to bypass the Java access control systems. I suppose I could use https, but does that encrypt the url and post data? Tom Aidan Lister wrote: > I'd im

[PHP] CONSTANTS and good coding practice

2004-05-21 Thread Al
Can someone explain to me the value of using defined custom constants, in the context of good coding practice. I don't recall ever seeing define() used in the scripts I've seen and only the characteristics are described in the my php book and the php manual; but, not the use. Thanks. -- PH

[PHP] How to insert, change and remove fields like Enum

2004-05-21 Thread Andre
Hello... Someone now or have script's about insert, change and remove fields like Enum in one table. Thanks .

[PHP] Re: php and java applets

2004-05-21 Thread Aidan Lister
I'd implement access control in the java object if possible, sounds easier. "Tom Playford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear all knowing list, > > I am trying to control the movement of a camera in real time from the web. But I also need to make sure that only the

[PHP] Cpanel accounting library

2004-05-21 Thread Jordi Canals
Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some scripts to manage the accounts directly from P

Re: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > > $clients[]=array(); > Here you should probably use $clients = array(); -- Jeroen Anybody who thinks a little 9,000-line program [Java] that's distributed free and can be cloned by anyone is going to affect anything we do at Microsoft has his head

Re: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > > $sql=new Database(); > $sql->query("select fname,lname, id from clients"); > $clients[]=array(); > while($sql->nextRecord()){ >array_push($clients, $sql->getField('id')=>$sql->getField('fname')); > } // while > > Parse error: parse error, unexpect

[PHP] array_push

2004-05-21 Thread Edward Peloke
Ok, I am having a brain cramp for some reason but I need to pass in an array to my form class to build select boxes. The array is ("id"=>"John Doe"), I need to dynamically build this array from a query but I am getting errors using array_push.do I need to use array_merge? Example: $sql=new Da

[PHP] Re: Showing weekly activity reports from Php / MySql script

2004-05-21 Thread David Robley
[EMAIL PROTECTED] (Dave Carrera) wrote in news:[EMAIL PROTECTED]: > Hi List, > > How do I group rows from a MySql table and show them as a list of > activity by week numbers. > > I.e.: > > WEEK 1: > This happened, this happened... > > WEEK 2: > This happened, this happened... > > And so on.

[PHP] Showing weekly activity reports from Php / MySql script

2004-05-21 Thread Dave Carrera
Hi List, How do I group rows from a MySql table and show them as a list of activity by week numbers. I.e.: WEEK 1: This happened, this happened... WEEK 2: This happened, this happened... And so on. I hope this makes sense and one of you clever guys (or girls) can advise me on this one. Thank

RE: [PHP] want to buy second hand books online - cant remember site

2004-05-21 Thread php chucker
Give this a shot: http://dogbert.abebooks.com/servlet/SearchResults?sortby=0&sn=Programming&ph =2&sts=t -Original Message- From: Brent Clark [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 4:26 AM To: [EMAIL PROTECTED] Subject: [PHP] want to buy second hand books online - cant reme

[PHP] php and java applets

2004-05-21 Thread Tom Playford
Dear all knowing list, I am trying to control the movement of a camera in real time from the web. But I also need to make sure that only the user I specify can have control. What I though I could do was this: launch a java applet from a php page parsing the session id. Then when the user adjust

Re: [PHP] Creating mail accounts

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, mustafa ocak wrote: > Hi, > > Is there a way to create new email accounts with PHP? > Server is RedHat Linux 8. > What mailserver are we talking about? -- Jeroen The only thing more frightening than a programmer with a screwdriver or a hardware engineer with a program is

[PHP] Creating mail accounts

2004-05-21 Thread mustafa ocak
Hi, Is there a way to create new email accounts with PHP? Server is RedHat Linux 8. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Content Management Systems

2004-05-21 Thread David Robley
[EMAIL PROTECTED] (Jed R. Brubaker) wrote in news:[EMAIL PROTECTED]: > Hey all - > I was hoping that I could get some advice! I am setting up a site that > will be quazi-portal-ish in nature. As such, a lot of different people > in a lot of different departments will be making contributions and >

[PHP] want to buy second hand books online - cant remember site

2004-05-21 Thread Brent Clark
Hi all a while ago someone on the list was kind enough to mention where he or she buys books online. The URL im looking for is a site that sells second hand IT books. I know the site is someone where in the US. For the likes of my I cant remember it. If someone could assist it would greatly be ap

[PHP] Content Management Systems

2004-05-21 Thread Jed R. Brubaker
Hey all - I was hoping that I could get some advice! I am setting up a site that will be quazi-portal-ish in nature. As such, a lot of different people in a lot of different departments will be making contributions and editing parts of the site. I have never done something like this before, but I