Re: [PHP] I need answers for the questions

2003-11-18 Thread Ryan Thompson
On Tuesday 18 November 2003 02:12, Arivazhagi Govindarajan wrote:
 PHP Questions

 1. Explain about session management and cookies ? In PHP how we can
 maintain a session

 2. What is HTTP tunneling

 3. How to enable PHP in Apache server manually?

 4. When we upload a file using INPUT tag of the type FILE what are global
 variables become available for use in PHP

 5. Explain SQL injections ? How we can avoid this

 6. Write a small script to connect a MYSQL server in PHP

 7. Given a class B network with subnet mask of 255.255.248.0 and a packet
 addressed to 130.40.32.16 whatis subnet address

 8. Using single Apache server can we host multiple sites . If yes how can
 we do this if no why it is not possible

 9. what is search engine optimization ? In HTML using which tag we can
 attain this?

 10. Write a function in PHP script to check whether string is a valid email
 id or not?

 _
 Garfield on your mobile. Download now. http://server1.msn.co.in/sp03/gprs/
 How cool can life get?

What you can't find at php.net/manual/en you can find on google. But I have a 
question for you. Correct me if I'm wrong but isn't a subnet mask of 
255.255.248.0 invalid??? I thought it had to be 255's and 0's.

This seems like laziness..
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Making a Search Function?

2003-11-17 Thread Ryan Thompson
To reduce the time it takes to process it all you might want to try using LIKE 
in your queries. This means your script will only have to process say 50 
instead of 10 000 results. (Not saying your DB is this big).

For example:
SELECT page FROM table_name WHERE description LIKE '%$keyword%';

This is all off the top of my head so the syntax might be off a little.
Read some SQL documentation about LIKE for more information.


On Monday 17 November 2003 21:56, Dimitri Marshall wrote:
 Hello...

 I'm trying to make a search function for my site. This is how it needs to
 work:

 First, a user types in a search (ex: niagara falls). All the words then get
 seperated or stay together, depending on the what the user selects in the
 form. I can figure this out, all I have to do is use the explode() right?

 Second, this array needs to search against a description on the database.
 What I was thinking is getting the description ($description) and then
 exploding that into an array and then comparing all arrays against each
 other.

 I'm pretty sure there's a way easier way to do this. Could someone
 enligthin me?

 Greatly appreciate any help in advance,
 Dimitri Marshall

-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Ryan Thompson
On Thursday 13 November 2003 01:34, Nitin wrote:
 Hi all,

 can anybody tell me how to call PHP functions from within javascript, as I
 want my PHP function to be interactive. I need to call the function written
 in the same page, with the values selected by the user

 Thanx in advance

 Nitin

In a short answer. You can't. You can get PHP to create javascript on page 
load. But you couldn't get Javascript to say. executed a PHP db query 
based on a user selection on a form. PHP is Server-side. It's all executed 
before it reaches the user.
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_POST bug?

2003-11-12 Thread Ryan Thompson
On Thursday 13 November 2003 00:59, Jake McHenry wrote:
  -Original Message-
  From: Jake McHenry [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 13, 2003 12:53 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] $_POST bug?
 
 
  I have 5 fields, all 1 character in length, numbers being
  entered. If zero's are entered in the boxes, and the form is
  submitted, the corresponding $_POST variables are empty? Is
  there a way around this, or am I doing something wrong?
 
  I guess I could just do, if (isset(... Blah.. Then if it's
  not set then manually set the variable name to 0...
 
  Has anyone else run across this?
 
  Thanks,
 
  Jake McHenry
  Nittany Travel MIS Coordinator
  http://www.nittanytravel.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

 Just to test, I changed the input field length to 3, and every time I
 tried it, single 0 does not create the $_POST variable. Double 0's
 create it, along with any other numbers, it's only when a single 0 is
 entered. Is this a bug or happening for a reason?



 Thanks,

 Jake McHenry
 Nittany Travel MIS Coordinator
 http://www.nittanytravel.com


PHP uses the 0 as the flag for FALSE. And anything other then 0 is TRUE.
If I understand the workings of PHP FALSE can also be interpreted as NULL. 
So PHP sees the post as saying the fields are NULL.
I could be wrong on this but I think that's where the problem is. Whether the 
developers planned this or it's slipped through that cracks I have no idea.

Did you checkout http://bugs.php.net to see if there's anything listed about 
it?
 
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Fatal error: Call to undefined function: xpath_new_context()

2003-11-04 Thread Ryan Thompson
Problems one of two things. A - you're version of PHP doesn't have support for 
that function yet (v4.1.0). or B - You didn't compile support for DOM
http://ca.php.net/manual/en/ref.domxml.php

On Tuesday 04 November 2003 12:51, Ian Williams wrote:
 I am trying to do a little XPath, but I get this error:

 Fatal error: Call to undefined function: xpath_new_context() in

 Can someone please help me find my problem?

 cheers
 ian

-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] process forking?

2003-10-27 Thread Ryan Thompson
This is a browser thing. So far as I know all browsers pretty much freeze 
while a save dialog box is open. In some case things still happen. They just
aren't noticable until you close the dialog box.

On Monday 27 October 2003 00:33, Stephen Cronan wrote:
 Hi All,
 I've written a digital asset management system and my dilema is, to save a
 file from the sytem, i pass the files through a php script so i can change
 file names and keep the files out of the web tree.

 I use a little popup window so they can select what format they want to
 download the file as, but the problem is when downloading a file  it seems
 to halt the rest of the site from being able to do anything until the
 download is complete.

 so i'm just trying to get the rest of the site to function while the
 download is in process, thank in advance. S.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] silly question about zend

2003-10-27 Thread Ryan Thompson
On Monday 27 October 2003 04:08, Manisha Sathe wrote:
 I wanted some sort of  IDE for PHP, so decided to use Zend (which i believe
 quite popular).

 I installed it on my redhat linux 8.0- both client and server components.
 Instructions was smooth and gave me success msg, but now I do not know how
 to open the IDE...

 so stupid question.. but still want to know .. how to open Zend so that can
 write PHP ?...

 regards
 manisha
It depends on where you told it to install the links. I believe the default if 
your home directory. (The one who installed it.) Look in their directory for
a directory called ZDE* there should be a symbolic link in one of them unless 
you changed it. (Note: The names are ridiculously long)
-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Upgrading GD...

2003-10-27 Thread Ryan Thompson
Just a thought. Try using phpinfo() to find out the compile options. Use that 
and just add the GD compile options after upgrading GD. That's usually how I 
go about adding a new module. I can never remember what I've compiled into
it.


On Monday 27 October 2003 20:44, Leif K-Brooks wrote:
 Curt Zirzow wrote:
 The odds aren't that good, unless the current gd is loaded from a
 shared object instead of linked directly to php.
 
 Check your configure command from phpinfo() if it has the option
 --with-gd then it was linked directly. Otherwise it is loaded from
 an shared object file located in your 'extention_dir'
 
 If it is loaded from extension_dir you can rebuild gd2 module and
 replace the old one, and it will use that one instead.
 
 I don't think you can load both into php.

 Crud, looks like it's linked directly in. What would be the most
 painless and easiest way to recompile PHP with GD2?

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to deal with XML?

2003-10-27 Thread Ryan Thompson
Just a small correction. I could be wrong but I don't believe XML is a subset 
of SGML but created to be used instead of. It was created from the ground up 
to replace SGML(not the easiest language to work with).

On Monday 27 October 2003 23:21, Robert Cummings wrote:
 On Mon, 2003-10-27 at 20:40, Simon Fredriksson wrote:
  I think I've missed something somewhere, but how do I use XML?
  Everywhere, there are big hypes about XML. I could proably google quite
  a bit on this, but could someone give me a hint on how to use it in, say
  datahandling? Or to parse a website (like the php docs).

 PHP docs are SGML as far as I can remember. I think XML is a subset of
 SGML. I would agree that XML in many cases has been hyped, but from a
 practical point of view it does also have a lot of merit. One of the
 examples I have found for it to work extremely well is on my MUD project
 (Multi User Dimension). For example let's say we have a player with the
 following stats:

 strength
 intelligence
 wisdom
 dexterity
 constitution

 We could define an XML document which stores this data in clear,
 concise, and human readable fashion such as the following:

 player
 strength 15 /strength
 intelligence 19 /intelligence
 wisdom 18 /wisdom
 dexterity 14 /dexterity
 constitution 10 /constitution
 /player

 This is a pretty simple format, the fields are self explanatory. Now one
 of the great advantages of XML is its flexibility. Let's say I now want
 to add support for a charisma field... well it's as simple as adding the
 field to the data, and if it doesn't exist assuming a default:

 player
 strength 15 /strength
 intelligence 19 /intelligence
 wisdom 18 /wisdom
 dexterity 14 /dexterity
 charisma 17 /charisma
 constitution 10 /constitution
 /player

 In older data formats such as binary, to add such a field would
 generally require that version information be stored at the beginning of
 the document and then when the data is resaved it would be saved as the
 newer version. This caused problems with multiple versions in existence,
 whereas with XML since the fields don't necessarily need to have any
 kind of order, we don't need to keep track of version, only whether or
 not the field was included. The other alternative (if you had complete
 control over the data) was to convert it all to the new format which was
 generally a tedious job and required a fair amount of effort to ensure
 the validity of the new format. This is quite a trivialization of XML,
 but this is one of the main advantages I see for it. One could easily
 define a multitude of other formats that are just as flexible, but
 currently XML is well supported by the development community and so is
 probably  the better choice. As with all things, your mileage may vary.

 HTH,
 Rob.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Upgrading GD...

2003-10-27 Thread Ryan Thompson
Off the top of my head I can't think of where to get GD but google should be 
able to tell you. As for PHP just go to 
http://www.php.net/manual/en/install.apache2.php assuming your running Apache 
2.0 is no just change apache2 for apache in the url. The php documentation
has install instructions for almost all supported servers. Read through the 
documentation for your distribution on the make command (or find it at 
gnu.org) It explains some stuff about part of configuration.


On Tuesday 28 October 2003 01:26, Leif K-Brooks wrote:
 Ryan Thompson wrote:
 Just a thought. Try using phpinfo() to find out the compile options. Use
  that and just add the GD compile options after upgrading GD. That's
  usually how I go about adding a new module. I can never remember what
  I've compiled into it.

 Thing is, I don't know how to get GD, how to compile PHP, or anything
 else. Is there something explaining how somewhere?

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Parsing specific portions of XML files

2003-10-27 Thread Ryan Thompson
I'm stumped. I think it's just the logic I can't figure out. I have a file 
formatted for Docbook in XML. I'm trying to figure out a way to parse a 
specifice portion of an itemizedlist.

It's for a change log. I want users to be able to view changes made to just
one version and possibly for all. I can't use multiple change logs cause it 
the same file is used to make the text version that goes into the release 
documentation.

Anyone got any ideas that can give me a push in the right direction.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ways to break up XML into Arrays????

2003-10-23 Thread Ryan Thompson
Try looking through http://pear.php.net for something.

On Thursday 23 October 2003 17:02, Scott Fletcher wrote:
 Hi Fellas!

 I don't want to use the PHP's XML feature at this moment because I
 found out that I need to recompile PHP with the XML support which I can't
 do at this moment.  So, instead of recompiling, does anyone know of a good
 sample coding or class out there on the Internet that would work   I'm
 looking for something similiar like this...  Problem is I don't have good
 scripts that can handle the quote or double quote without missing up the
 XML data and PHP Array...

 --snip--
 //Individual
 FirstNameBill/FirstName
 LastNameClinton/LastName
 GenderM/Gender
 FavoratePetDog/FavoratePet
 //Joint
 FirstNameHillary/FirstName
 LastNameClinton/LastName
 GenderF/Gender
 FavoratePetCat/FavoratePet

 //This would be return in array like...
 echo $XML_Tag['FirstName'][0];  //Output would be Bill...
 echo  ; //Whitespace...
 echo $XML_Tag['LastName'][0]; //Output would be Clinton...
 echo 's favorate pet is a ;
 echo $XML_Tag['FavoratePet']; //Output would be Dog...
 echo  and his wife name is ;
 echo $XML_Tag['FirstName'][1];  //Output would be Hillary...
 echo  ; //Whitespace...
 echo $XML_Tag['LastName'][1]; //Output would be Clinton...
 --snip--

 Just something like that...   Thanks!!!

 Scott F.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] DB's on seperate server

2003-10-19 Thread Ryan Thompson
Quick yes or no question. My db's are running on a different server then my 
Webserver. I've temporarily mounted the directories from the db server to the 
webserver to compile db access. Once PHP/Apache are compiled can they be 
safely unmounted or will it give me problems somewhere down the line? 

I guess in short. Once compiled does PHP need anything from the database 
install
directories?
-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Maybe a silly question

2003-10-10 Thread Ryan Thompson
It's for classes. A site called http://www.php.net has some great 
documentation on it.
$object-property (or function whatever the case may be)

On Friday 10 October 2003 01:57, Tom Ray [Lists] wrote:
 I'm wondering if someone can explain something for me. I've never used
 this before but have seen it used in numerous sets of coding.

 What does the - do? I see stuff like

 $test=$test-test_url = Something;
 $test1=$test-test_this = Something Else;

 Is it some sort of array function? I'm just a little confused and have
 been wondering for sometime.

 TIA

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Multiple PHP modules

2003-10-10 Thread Ryan Thompson
I thought that might work but the Apache docs don't list LoadModule as a 
supported directive in VirtualHost. I did try it today however and it seems I 
ended up with a runaway server. It wouldn't respond to any request, it would 
say it couldn't be found and I couldn't stop the server. I had to kill all 
httpd processes. 
I may have done something wrong but I think I'll need another solution.

It's possible to run to web servers simultaneous off the same computer isn't 
it? Each handling different IP address? or at least host names Maybe I'll 
try that tomorrow unless someone stops me and says it's a waste of time. :)


On Thursday 09 October 2003 03:07, Evan Nemerson wrote:
 With a bit of httpd.conf wizardry, I believe so. Just put the the
 LoadModule and AddType stuff inside the VirtualHost containers. PHP5 is
 libphp5.so, PHP4 is libphp4.so

 I haven't tried it, but it should work.

 On Wednesday 08 October 2003 11:33 pm, Ryan Thompson wrote:
  Just a quick question. I don't think it's possible but worth a try
 
  Is it possible to load two different PHP modules in apache having them
  linked to different virtual hosts? I'm hoping I can run one site with PHP
  5 and another with 4.3.x

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP source display

2003-10-10 Thread Ryan Thompson
Try using the function view_source(string filename)
That's off the top of my head. Might be wrong. It's in the documentation

On Friday 10 October 2003 15:41, Lists wrote:
 When I used apache 1.3 I could call a file with an extension of .phps and
 it would display formatted source.

 In apache 2.0 it does not do this

 Here is my config from apache 2.0


 LoadModule php4_module modules/libphp4.so

 #
 # Cause the PHP interpreter handle files with a .php extension.
 #
 Files *.php
 SetOutputFilter PHP
 SetInputFilter PHP
 LimitRequestBody 524288
 /Files

 I have tried doing:

 Files *.phps
 SetOutputFilter PHPS
 SetInputFilter PHPS
 LimitRequestBody 524288
 /Files


 However, that does not work!

 Any ideas?

 Michael

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Quick question: PHP user?

2003-10-10 Thread Ryan Thompson
As an apache module it runs as the apache user.

On Friday 10 October 2003 17:44, Grant Rutherford wrote:
 Hi,

 Just a quick question...  What user does php run as on linux?  Is it the
 Apache user?  Is there some way to tell?  I need to be able to set a
 directory so that only PHP can access it.

 Thanks,
 Grant

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Encryption question

2003-10-10 Thread Ryan Thompson
I know this is an opinion thing but what's the best functions or function set 
for password encryption?

Currently my project uses md5 but I thinks it's more for checksums isn't it?
Also, is mcrypt used for passwords? I looks like it's a two-way encryption.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Encryption question

2003-10-10 Thread Ryan Thompson

Sorry. Just stumbled on crypt()


On Friday 10 October 2003 22:31, Ryan Thompson wrote:
 I know this is an opinion thing but what's the best functions or function
 set for password encryption?

 Currently my project uses md5 but I thinks it's more for checksums isn't
 it? Also, is mcrypt used for passwords? I looks like it's a two-way
 encryption.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Multiple PHP modules

2003-10-09 Thread Ryan Thompson
Just a quick question. I don't think it's possible but worth a try

Is it possible to load two different PHP modules in apache having them linked 
to different virtual hosts? I'm hoping I can run one site with PHP 5 and 
another with 4.3.x
-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Fw: tomcat server

2003-10-09 Thread Ryan Thompson
I think you got the wrong mailing list. This is PHP. Not java.

On Thursday 09 October 2003 03:08, agus wrote:
 - Original Message -
 From: agus
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 09, 2003 1:34 PM
 Subject: tomcat server


 hello everybody,

 can anybody tell me how to setting tomcat server to run java beans?

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] dynamic - static

2003-10-08 Thread Ryan Thompson
Do you mean something like taking a snapshot of the CMS every
24 hours or so??

If I understand you right you might want to look at a different language
like perl or shell scripting. I would think they'd be more useful for that
sort of thing. 


On Wednesday 08 October 2003 03:56, Veniamin Goldin wrote:
 Dear All,

 Does anybody have any solutions, which makes possible to produce static
 pages of all dynamic cms once a day and  can be easily integrated into
 already made site?


 Thank you.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] excuting a shell command in linux as root

2003-10-08 Thread Ryan Thompson
First off a warning repeated many times over I'm sure.
You sure you want to do that? It's very insecure

Now that my butts covered you might want to take a look at sudo



On Wednesday 08 October 2003 03:14, Michael P. Carel wrote:
 Hi,

 Is there any way to execute a shell command line in PHP as root? I want to
 execute it using a web browser, i'm using apache and it runs as nobody.

 Any idea/help/suggestions? Thanks in advance


 mike

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Variable Nightmare

2003-10-08 Thread Ryan Thompson
The server probably has global variables turn off

Try $_GET['value1'], $_GET['value2']

If you using post method then replace $_GET with $_POST


On Thursday 09 October 2003 00:51, richard cook wrote:
 Hi all,
 I have a problem that I cant solve, any help would be welcomed!


 I have a form which is repeated by a for loop, the form has one element an
 input field. The problem im having is the name of this field for example
 ive used the following to name it:

 for loop here

 input name=value?php echo $x;? type=text size=4 maxlength=2
 value=?=$cart_Array[$x][1]? /

 }

 So the input name will increase with each loop like so:

 value1
 value2
 value3
 ...

 This works fine, the source code from the generated page looks as it
 should. So the big question is how do I get to the variable name when the
 form is processed, ive tried everything i know. if I use hard coding it
 works :

 $myNewVar = $value1;

 But the whole point of this is that the values need to be pulled out of
 another for loop:

 for loop blah
 $myNewVar = $valueX;
 }




 I hope im explaining this well.



 Regards

 R

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
A computer scientist is someone who fixes
 things that aren't broken --Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Private Mail System?

2003-09-25 Thread Ryan Thompson
I would think you're asking on the wrong list. Try find a list for software
or servers.
Lee Herron QCS wrote:

Anyone know of a private mail system, like say vbb has built-in, but stand
alone? No, not interested in pop3 or smtp interfacing, simply a web based
private mail system with nothing else.
 

--
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php