Re: [PHP] Is there a way to...

2004-10-17 Thread raditha dissanayake
GH wrote: Is there a way to make sure that a page is only loaded via a require or include statement? or other type of SSI? I would like to make sure that a 'parent document' (namely admin_template.php) only calls the php file? Thanks leave if outside htdocs -- Raditha Dissanayake.

[PHP] mod-rewrite

2004-10-17 Thread Pete
I have just started using mod-rewrite, and have two questions... I see everywhere on the net that I can change file names to lower case - at present they are an ex-Windows based mess of upper and lower. But I can't see anywhere how to actually do it, just that it is possible. Also, I use

[PHP] mod-rewrite

2004-10-17 Thread Pete
Wow - this is *really* spooky! When I wrote that, with RewriteRule relative URLS within that page no longer work correctly, I had not realised that those within PHP worked ok, whereas those in raw HTML didn't... -- Pete Clark -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP5 and Multi Inheritance?

2004-10-17 Thread M Saleh EG
Is direct multi inhertance supported in PHP5? I'm on PHP4, didnt find this on the docs nor at zend's. It might be the reason of migrating to PHP5 for me. Any Idea? anyone who tested it? by this I dont mean the chaining method of inheriting. I mean direct multi inheritance! Thanx in advance. --

Re: [PHP] Is there a way to...

2004-10-17 Thread M Saleh EG
secure it with apache .ht* files for directory and file settings or the main config file. On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake [EMAIL PROTECTED] wrote: GH wrote: Is there a way to make sure that a page is only loaded via a require or include statement? or other type of

Re: [PHP] mod-rewrite

2004-10-17 Thread John Nichel
Pete wrote: I have just started using mod-rewrite, and have two questions... snip And neither one of them have anything to do with PHP. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php installation

2004-10-17 Thread alagu raj
hello all, i need to install php, postgresql and apache. i had redhat 7.3 running. i like to know, the comaptible versions of the above three. i couldn't install the current version of the above three as it is asking for GLIBC-2.3. but i had GLIBC-2.2.5 running. it is not possible to update

[PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread Matthew Weier O'Phinney
* M Saleh Eg [EMAIL PROTECTED]: Is direct multi inhertance supported in PHP5? I believe so -- this was one of the new features of the object model introduced in PHP5. My understanding is that you have to create interface classes that a class can then implement. Unfortunately, interface classes

Re: [PHP] Is there a way to...

2004-10-17 Thread S. Daurer
On Sat, 16 Oct 2004 22:04:33 -0400, Gh [EMAIL PROTECTED] wrote: Your right, this is not what I was expecting, I was thinking there was another way... Sounds good.. but any other suggestions? On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi [EMAIL PROTECTED] wrote: well, this is probably not what

Re: [PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread M Saleh EG
Thanx Mathew I guess I found it, it's disapointing though. Here was the answer: http://www.zend.com/php5/andi-book-excerpt.php#Heading3 Copied from the link above 4. Interfaces Gives the ability for a class to fulfill more than one is-a relationships. A class can inherit from one class only but

Re: [PHP] mod-rewrite

2004-10-17 Thread M Saleh EG
Yes it does! It aint off topic. Pate is trying to figure out how to integrate mod_rewrite functionality with his PHP scripts. If you're new to mod_rewrite then you can use this alternative PHP script that does the work for u. Here you go: http://www.zend.com/codex.php?id=674single=1 On Sun,

Re: [PHP] mod-rewrite

2004-10-17 Thread John Nichel
M Saleh EG wrote: Yes it does! It aint off topic. Pate is trying to figure out how to integrate mod_rewrite functionality with his PHP scripts. Ah well, I should just ask a question or two about how to integrate mod_perl functionality then, eh? It's as offtopic as MySQL, JavaScript, etc

[PHP] Tempnam not working??

2004-10-17 Thread Brent Clements
Hi Everybody, I'm running php 4.3.2 When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME I'm running under RHEL 3 U3 Anybody know what's going on? thanks, Brent

Re: [PHP] Tempnam not working??

2004-10-17 Thread Mark Charette
- Original Message - From: Brent Clements [EMAIL PROTECTED] When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME -- From the manual: Creates a file with a unique filename in the specified

Re: [PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread Rory Browne
I'm not sure, but I think the only way you are going to get MI in PHP, is if you implement if yourself. By this I mean, implementing the correct __get(), __set(), and __call() functions. On Sun, 17 Oct 2004 18:32:34 +0400, M Saleh EG [EMAIL PROTECTED] wrote: Thanx Mathew I guess I found it,

Re: [PHP] Tempnam not working??

2004-10-17 Thread John Holmes
Brent Clements wrote: Hi Everybody, I'm running php 4.3.2 When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME I'm running under RHEL 3 U3 Anybody know what's going on? If 'mytmp' does not exist (relative to your

Re: [PHP] Zend PHP Certification test

2004-10-17 Thread Rory Browne
I've been looking all over the Zend Cert site, trying to find the passing rate, ie how many questions I have to get right in order to pass. Is this information secret, or have I just not looked in the right place. If it's the latter, please enlighten me. Thanks Rory -- PHP General Mailing

[PHP] IIS6 - CGI vs ISAPI

2004-10-17 Thread Jason Williard
I am running a Windows 2003 web server with IIS 6. I currently have PHP 4.3.8 installed as CGI and it is almost working perfectly. Occasionally, I get the following error: No input file specified. I will be upgrading to 4.3.9 soon and am considering switching to ISAPI. I have heard good

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
On Sun, 2004-10-17 at 09:53 -0700, Stuart Felenstein wrote: I have 3 arrays. 3 for 3 fields in a table (all part of 1 record) array1 - field1 array2 - field2 array3 - field3 What I've been doing which works good with one array: if ( is_array( $_SESSION['foo'] ) ) { foreach (

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
Robby Here is the printout : Using- print_r ($skills); print_r ($skys); print_r ($slus); Array ( [0] = skillone [1] = skilltwo [2] = skillthree [3] = [4] = ) Array ( [0] = 2 [1] = 3 [2] = 4 [3] = [4] = ) Array ( [0] = [1] = [2] = [3] = [4] = ) 1 FYI - The skills is a string, skys and slus

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
On Sun, 2004-10-17 at 12:40 -0700, Stuart Felenstein wrote: Robby Here is the printout : Using- print_r ($skills); print_r ($skys); print_r ($slus); Array ( [0] = skillone [1] = skilltwo [2] = skillthree [3] = [4] = ) Array ( [0] = 2 [1] = 3 [2] = 4 [3] = [4] = ) Array ( [0] = [1] =

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
They are related in the sense that they are part of one record in the database. Fields Skill YearsUsed LastUsed When you say array of arrays you are referring to a multi-dimensional ? I'm not sure what you mean by are the [0] related. Thank you, Stuart --- Robby Russell [EMAIL PROTECTED]

Re: [PHP] Nested foreach ?

2004-10-17 Thread Robby Russell
On Sun, 2004-10-17 at 13:08 -0700, Stuart Felenstein wrote: They are related in the sense that they are part of one record in the database. Fields Skill YearsUsed LastUsed When you say array of arrays you are referring to a multi-dimensional ? I'm not sure what you mean by are the

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
Okay, I will try - I have these three fields in a form for user input. There are 10 sets of these, i.e. Users can enter three sets of skills, with the yearsused and when last used. I have set them up as arrays, since it's probably not wise to manage 30 seperate variables. I'm using session

Re: [PHP] Nested foreach ?

2004-10-17 Thread John Holmes
Stuart Felenstein wrote: Here is the printout : Using- print_r ($skills); print_r ($skys); print_r ($slus); Array ( [0] = skillone [1] = skilltwo [2] = skillthree [3] = [4] = ) Array ( [0] = 2 [1] = 3 [2] = 4 [3] = [4] = ) Array ( [0] = [1] = [2] = [3] = [4] = ) 1 FYI - The skills is a string,

Re: [PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
John, Sorry, I'm not trying to be unclear. There are 3 columns in the table. In the user form. there are 30 fields, 10 text and 20 dropdown. The 10 text are: $_SESSION['skills'] = $_POST['skill']; The first dropdown is : $_SESSION['skys'] = $_POST['sky']; The second dropdown is:

Re: [PHP] Nested foreach ?

2004-10-17 Thread Chris Dowell
Stuart, Having read what you've written so far, you may want to try something like this. In your HTML (I've left the selects empty, but you can see what I mean): input type=text name=skills[0][name] /select name=skills[0][years] /select name=skills[0][used] / input type=text

Re: [PHP] Nested foreach ?

2004-10-17 Thread John Holmes
Stuart Felenstein wrote: John, Sorry, I'm not trying to be unclear. There are 3 columns in the table. In the user form. there are 30 fields, 10 text and 20 dropdown. The 10 text are: $_SESSION['skills'] = $_POST['skill']; The first dropdown is : $_SESSION['skys'] = $_POST['sky']; The second

[PHP] cacheing problem

2004-10-17 Thread Mag
Hi, Heres my problem: I am offering a form for the client to upload his picture, then his pic is shown and he can pick some text to write on the image, then I am using GD to write the text. If the client does not like the position of the text he can press the back button and change the position,

[PHP] probs generating multiple drop down select lists within a single form

2004-10-17 Thread bruce
hi... i have a prob/issue that i can't see.. i'm trying to geneate a page with multiple lists so that the user has to select an item from all 3 lists in order to access the next page... the 1st select/list allows the user to select either one or more items. the 2nd/3rd select lists require the

Re: [PHP] cacheing problem

2004-10-17 Thread Greg Donald
On Sun, 17 Oct 2004 17:16:09 -0700 (PDT), Mag [EMAIL PROTECTED] wrote: Warning: Page has Expired You can use the GET method instead of POST in your form if that's appropriate. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List

Re: [PHP] probs generating multiple drop down select lists within a single form

2004-10-17 Thread Greg Donald
On Sun, 17 Oct 2004 17:23:14 -0700, bruce [EMAIL PROTECTED] wrote: i have a prob/issue that i can't see.. i'm trying to geneate a page with multiple lists so that the user has to select an item from all 3 lists in order to access the next page... the 1st select/list allows the user to select

[PHP] Help With Error

2004-10-17 Thread php-list
Hello Everyone, I keep getting the following errors in my class and I don't know why. Maybe something has changed in PHP 5.x that I don't know about? Here are the errors and the methods of that class: --- Notice: Undefined index: 0 in

RE: [PHP] Help With Error

2004-10-17 Thread Pablo Gosse
[snip] Notice: Undefined index: 0 in L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on line 77 [/snip] It's telling you that $data['0'], which is used twice in your query, is not a valid index (ie. it doesn't exist) for the $data array. Why don't you dump the $data array

Re: [PHP] cacheing problem

2004-10-17 Thread Mag
Hi, I dont really have a problem in converting from POST to GET but the html FILE box does not post its variables if it is not in POST eg: input type=file name=upload if you do a submit with $_GET the $_FILES array will be or not existant How to pass that? Thanks, Mag --- Greg Donald [EMAIL

Re: [PHP] Zend PHP Certification test

2004-10-17 Thread Chris Shiflett
--- Rory Browne [EMAIL PROTECTED] wrote: I've been looking all over the Zend Cert site, trying to find the passing rate, ie how many questions I have to get right in order to pass. Is this information secret, or have I just not looked in the right place. It's not public information. Chris

Re: [PHP] Zend PHP Certification test

2004-10-17 Thread Daniel Kushner
Hi Rory, The passing score is not revealed. There is only a pass/fail on the test. Best, Daniel Kushner On Sun, 17 Oct 2004 19:08:32 +0100, Rory Browne [EMAIL PROTECTED] wrote: I've been looking all over the Zend Cert site, trying to find the passing rate, ie how many questions I have to

[PHP] Shell commands on Windows not working

2004-10-17 Thread Tim Owens
We have a client using a Windows system: PHP 4.3.4 Windows NT WEBSERVER 5.2 build 3790 I'm attempting to use exec() to run a system command. I don't seem to be able to call any command, or at least I don't see any output. Indeed, the following produces nothing: echo `dir`; //i.e. backticks It

Re: [PHP] Tutorials for Maintenance of State

2004-10-17 Thread Chris Shiflett
--- GH [EMAIL PROTECTED] wrote: I know about sessions... but I am even more concerened now about the use of cookies but I am not 100% sure on how to accomplish this When you say you are concerned about cookies, what do you mean exactly? When used properly, cookies can afford a heightened

Re: [PHP] cacheing problem

2004-10-17 Thread Sagar C Nannapaneni
You have some restriction on the size of the data u send through GET method.. like i remember it as 256Kb or so. So if u r sending data larger than this limit ...u need to use the post method /sagar - Original Message - From: Mag [EMAIL PROTECTED] To: Greg Donald [EMAIL PROTECTED]; php

Re: [PHP] guessing timezone based on country/state/city

2004-10-17 Thread Justin French
On 17/10/2004, at 3:03 PM, Curt Zirzow wrote: * Thus wrote Justin French: I have an event CMS where really, I should know the TZ of the events, which can happen world wide. However the user base is not computer heads, so I can't just ask them. So, I'm faced with the prospect of making an educated

[PHP] Apache segmentation faults

2004-10-17 Thread Bostjan Skufca @ domenca.com
Hello, every now and then I notice in apache logs there were few segmentation faults (on a daily basis) and all I am stuck with is PID of that process (which is of course dead by then) and nothing about what it was doing. Is there any way to figure out what request that apache process was

Re: [PHP] guessing timezone based on country/state/city

2004-10-17 Thread Manuel Lemos
Hello, On 10/18/2004 02:23 AM, Justin French wrote: I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide. One easy way to do what you want is to use the Javascript Date object

[PHP] RE: [PHP-DB] Question: Putting separate form elements into an array

2004-10-17 Thread Graham Cossey
Stuart, now I'm confused. You seem to be posting slightly different versions of problems relating to the same script(s) on 2 lists. What is the current situation? Iterating through the 3 arrays or inserting into MySQL? Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL

[PHP] RE: [PHP-DB] Question: Putting separate form elements into an array

2004-10-17 Thread Stuart Felenstein
Sorry about the two lists. The echo's are fine. The problem was iterating through the 3 arrays. Stuart --- Graham Cossey [EMAIL PROTECTED] wrote: Stuart, now I'm confused. You seem to be posting slightly different versions of problems relating to the same script(s) on 2 lists. What is

[PHP] Nested foreach ?

2004-10-17 Thread Stuart Felenstein
I have 3 arrays. 3 for 3 fields in a table (all part of 1 record) array1 - field1 array2 - field2 array3 - field3 What I've been doing which works good with one array: if ( is_array( $_SESSION['foo'] ) ) { foreach ( $_SESSION['foo'] as $x ) { sql .= INSERT INTO TABLE (...