[PHP] Changing form look without reloading

2002-01-17 Thread Torkil Johnsen
Hello... I am wondering: Would it be possible to: 1) Select an option in a selectbox 2) Have a list of checkboxes pop up underneath the selectbox, based on what you selected 3) Without reloading the page... Show/hide layers I can figure out myself... I dont want to have X hidden layers with X

[PHP] Connecting from PHP to MySQL on another Server

2002-01-17 Thread Boaz Yahav
Hi 1. What is the difference between working with PHP and MySQL on a local server and working with PHP and MySQL when MySQL is on a remote server? 2. What is the protocol used to connect to MySQL on a local server and what is the protocol used to connect to a remote MySQL server? 3. Is there a

Re: [PHP] Changing form look without reloading

2002-01-17 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 09:26 * Torkil Johnsen said Hello... I am wondering: Would it be possible to: 1) Select an option in a selectbox 2) Have a list of checkboxes pop up underneath the selectbox, based on what you selected 3) Without

[PHP] RE: [PHP-DB] Connecting from PHP to MySQL on another Server

2002-01-17 Thread Beau Lebens
// 1. What is the difference between working with PHP and MySQL // on a local // server and working with PHP and MySQL when MySQL is on a // remote server? none - just specify different hostname in connection call (perhaps IP more reliable) // 2. What is the protocol used to connect to MySQL

RE: [PHP] Re: benchmarking php scripts

2002-01-17 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=examples/ezhttpbench.php Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:13 AM

Re: [PHP] Lazy evaluation? -=- The solution

2002-01-17 Thread TD - Sales International Holland B.V.
On Wednesday 16 January 2002 17:25, you wrote: I'm sorry, I think I was confusing languages. PHP does do lazy evaluation. If the left side is false the right side won't be evaluated. I've attached some code, it ain't really neat tidy but it's effective and will show you how it works. Just

RE: [PHP] Setting up an XML platform/website

2002-01-17 Thread Boaz Yahav
I'd be happy to post your article on WeberDev.com :) Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 12:13 PM To: PHP General Mailing List

RE: [PHP] Looking for article writers.

2002-01-17 Thread Boaz Yahav
When you find this guy, send him to me too :) Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Vlasyuk Valera [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 9:59 PM To: [EMAIL PROTECTED] Subject:

[PHP] Scripts keep on refreshing PHP4

2002-01-17 Thread Michel van Westen
Hi all, i got a serious problem: I got php3 running for quit a while and it was running fine with all my scripts. About a week ago i decided my time had come and i had to update to php4, now all my scripts keep on refreshing without having loaded the whole script, it just refreshes over and over

[PHP] Link-Identifyer MySQL Problem

2002-01-17 Thread Berthold
Hello! I have a problem with the connection-identifyer, comming from mysql_connect(). Everything worked well until I add a second MySQL-Server. To do that I have to add the link-identifyer. OK. This must be a bug in PHP: Warning: Supplied argument is not a valid MySQL-Link resource... because

Re: [PHP] Link-Identifyer MySQL Problem

2002-01-17 Thread Berthold
Hello again! Yes, there is a setting! But the value is '-1' for 'unlimited' It seems that mysql_connect returns always 'false' or '1'. Strange... Berthold wrote: Hello! I have a problem with the connection-identifyer, comming from mysql_connect(). Everything worked well until I add

RE: [PHP] apache authentication

2002-01-17 Thread Jon Haworth
SECURITY WARNING: This code uses a hard-coded user-name and password, which begs the question of where they would come from in the real world. You could collect them via a form, but then they will be sent to the PHP script as arguments and so the password will be visible in the URL box

Re: [PHP] PHP as a cron job

2002-01-17 Thread Tiago Luchini
Unable to open /home/admin/webmin-0.85/ in Unknown on line 0 this is possibly a path or env issue. have you tried using absolute filenames? Yes. Same thing happens with absolute or relative paths. what's the line in your code where this error occurs? it doesn't run any line

Re: [PHP] PHP as a cron job

2002-01-17 Thread Tiago Luchini
This is exactly what the documentation says. I have tried this (and also others) configuration. In any scenario the error message is the same. I am not clear on what you are trying do. However, let me tell you how we are running PHP scripts as cron jobs. We have setup cron to execute a

[PHP] string to array??

2002-01-17 Thread Sandeep Murphy
hi, can i convert a string to an array?? if so how shud the syntax read?? Thnx, sands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Whare is a Dynamic Image tutorial to be found

2002-01-17 Thread JawjB
I am looking for a guide or tutorial (preferably not OO) to help me do the following. A client views a map of a country and clicks on his location. Location stored on database. A visitor enters makes a selection (e.g. Hotels) then views a map of the country modified to reflect those

Re: [PHP] string to array??

2002-01-17 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 11:46 * Sandeep Murphy said hi, can i convert a string to an array?? if so how shud the syntax read?? Thnx, sands Check out explode() www.php.net/manual/en/function.explode.php - -- Nick Wilson Tel:+45

Re: [PHP] User-friendly URI's

2002-01-17 Thread Jonathan David Edwin Wright
Atcually, I#m doing it in Win2k/WinXP. To get the settings in the .htaccess file working, you need to make sure you've given permission for that directory to override a group of settings. I belive ForceType belongs to the group FileType (someone correct me if I'm wrong! :) Somewhere in

Re: [PHP] string to array??

2002-01-17 Thread Scott Houseman
Hi There. You should use this function: split -- split string into array by regular expression array split (string pattern, string string [, int limit]) So, to split a string ( e.g. a sentence ) so that each word in the string is an element of the array do something like this ?php

[PHP] Create Image on the fly

2002-01-17 Thread Jan Grafström
Hi! How do I change this if I will use the Image direct in my html-code? Do I need to save it first. ?php $im = @ImageCreate (240, 80) or die (Cannot Initialize new GD image stream); $background_color = ImageColorAllocate ($im, 255, 255, 230); $text_color = ImageColorAllocate ($im, 0, 0, 0);

Re: [PHP] Create Image on the fly

2002-01-17 Thread val petruchek
in index.html you write img src=aaa.php in aaa.php you write ?php $im = @ImageCreate (240, 80) or die (Cannot Initialize new GD image stream); $background_color = ImageColorAllocate ($im, 255, 255, 230); $text_color = ImageColorAllocate ($im, 0, 0, 0); ImageString ($im, 3, 10, 20,

Re: [PHP] string to array??

2002-01-17 Thread Steve Edberg
Actually, you can treat a string as an array without any further processing: $Globbot = 'dribcot'; echo $Globbot[0]; # echoes 'd' echo $Globbot[6]; # echoes 't' Check out 'String access by character' about halfway down the page at

Re: [PHP] string to array??

2002-01-17 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 12:57 * Steve Edberg said Actually, you can treat a string as an array without any further processing: $Globbot = 'dribcot'; echo $Globbot[0]; # echoes 'd' echo $Globbot[6]; # echoes 't'

Re: [PHP] Create Image on the fly

2002-01-17 Thread Jan Grafström
Thanks Val! Now I understand. Jan Val Petruchek [EMAIL PROTECTED] skrev i meddelandet 000801c19f4a$49862950$[EMAIL PROTECTED]">news:000801c19f4a$49862950$[EMAIL PROTECTED]... in index.html you write img src=aaa.php in aaa.php you write ?php $im = @ImageCreate (240, 80) or die

[PHP] Re: Where is a Dynamic Image tutorial to be found

2002-01-17 Thread JawjB
If anyone else is looking for a similar tutorial then the closest I have found so far for my requirements is at http://www.findtutorials.com/ Search for 'Generating Graphics' In a message dated 17/01/02 10:48:17 GMT Standard Time, JawjB writes: Subj:Whare is a Dynamic Image tutorial to

[PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Simos Varelakis
Hi to everyone I want to do the following and i dont know if its possible with php code a) run a mysql query b) display a simpe message c) delay few seconds d)auto redirect to a page can I do this with php i know how to do a) and b) and I can't do c) and d) note that if i try d) with function

Re: [PHP] string to array??

2002-01-17 Thread Neil Freeman
You just have to remember that a string is simply a character array :) Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 12:57 * Steve Edberg said Actually, you can treat a string as an array without any further processing: $Globbot =

Re: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Jon Farmer
c) and d) are clientside functions if you have already outputted data to the browser so use Javascript to do them -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From:

[PHP] thnx..

2002-01-17 Thread Sandeep Murphy
Hi guys!! Thnx a bunch, it worked out... I used the split function... Meanwhile, hv another question !! I hv a var $id declared within a function x of a class called A I need to access this var $id in another php file... I do the following: ?php require (example1.php); $news = new A();

Re: [PHP] thnx..

2002-01-17 Thread Scott Houseman
Create the class like such: ?php Class A { var $id; function x ( $whatever ) { // assign $id's value. $newval = $whatever++; $this-id = $newval; } // // Return the value of $id. // function getId ( ) { return $this-id; } }

Re: [PHP] Connecting from PHP to MySQL on another Server

2002-01-17 Thread Jon Farmer
1. What is the difference between working with PHP and MySQL on a local server and working with PHP and MySQL when MySQL is on a remote server None in terms of functionality. 2. What is the protocol used to connect to MySQL on a local server and what is the protocol used to connect to a

Re: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread DL Neil
Alternatively, remember that HTML has this built in (and PHP outputs a HTML page): move c) before a) implement it using a meta tag in the HTML page HEAD section d) will then happen after the defined time period Regards, =dn - Original Message - From: Jon Farmer [EMAIL PROTECTED] To:

RE: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Niklas Lampén
I recommend you to use javascript for this one. That way you can make sure that client sees the message exactly for time you've decided (like 3 seconds). So: a) Just do It b) Just do It c) JavaScript for this one, launched _after_ page has loaded completely (use Body onLoad=script() -tag for

RE: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Intruder
a) run a mysql query b) display a simpe message c) delay few seconds d)auto redirect to a page meta http-equiv=refresh content=5; URL=new_page.php body some message goes here !!! /body -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Niklas Lampén
No good, since meta starts counting when page is first opened, so clients with slow connection might not never see the message. I'd rather use body onLoad=setTimeout(\location.href='http://domain.com/page.html', 5000\); which will execute right after the page is completely loaded and move to the

RE: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Intruder
No good, since meta starts counting when page is first opened, so clients with slow connection might not never see the message. I'd rather use what do you mean slow connection ??? 10 bytes/second ??? I don't think that someone has such speed and to load your code slow-connected person will

RE: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Niklas Lampén
Well, there could be a problem with connection due to the ISP. Maybe this is not relevant with this case, but good to know for future use. I.e. if you have a picture on a page which will take more than 5 seconds to download (maybe due to a problem with connection), meta will redirect you after 5

[PHP] Execution

2002-01-17 Thread Breno Cardoso Perucchi
Somebody knows as doing an execution of a program in real time, in the moment what this being executed in the system? []s Breno Cardoso Perucchi [EMAIL PROTECTED] Consultor - Omega Tecnologia http://www.omegatec.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Help! PHP 4.03pl1, fopen and cobalt RaQ4

2002-01-17 Thread Stefan Rusterholz
Hi all I got a RaQ4 in front of me which I should get running. Now my script (running fine on a IIS with PHP 4.06) outputs a quite strange error (it uses my error-handler that's why it's formatted like this): Time: Thu 17.01.02 - 15:26:15 Level: Warning (2) File:

[PHP] Execution

2002-01-17 Thread Breno Cardoso Perucchi
Somebody knows as doing an execution of a program in real time, in the moment what this being executed in the system? []s Breno Cardoso Perucchi [EMAIL PROTECTED] Consultor - Omega Tecnologia http://www.omegatec.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Changing form look without reloading

2002-01-17 Thread Dennis Moore
You have to use Javascript to make this so... You may want to go to hotscripts.com for examples... /dkm - Original Message - From: Torkil Johnsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 3:24 AM Subject: [PHP] Changing form look without reloading

Re: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread DL Neil
Niklas, No good, since meta starts counting when page is first opened, so Don't think this is applicable - When is the page opened: after the script reaches the meta, or after the script concludes and the web server sends the page to the browser? If the latter, then the speed of the

Re: [PHP] Re: php 4.1 and DOMXML question.

2002-01-17 Thread Peter Clarke
Aaron [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well that works. But its a little bizzare. I have to do that to get the content of a node even when that node has no children... e.g. root stuff morestuffSOME TEXT GOES HERE/morestuff

Re: [PHP] Php.ini file missing

2002-01-17 Thread Michael Sciascia
mike cullerton14-01-2002 21:49 on 1/14/02 12:06 PM, Michael Sciascia at [EMAIL PROTECTED] wrote: The last and *most important* thing left to do is to start sendmail, but I always get errors like: A) Failed to start sendmail : 451 4.0.0 /etc/mail/sendmail.cf: line 81: fileclass: cannot

[PHP] variable variables

2002-01-17 Thread Mike Krisher
I can not wrap my head around variable variables today, not awake yet or something. For instance I trying something like this: while ($i$loopcounter) { $temp = size; $valueofsize = $$temp$i; $i++; } this doesn't work obviously, $valueofsize ends up with a literal value

Re: [PHP] PHP Security - view source code

2002-01-17 Thread Erik Price
On Wednesday, January 16, 2002, at 07:22 PM, Christopher William Wesley wrote: If you are the server's admin, or know the person well, you can tighten the file permissions down more with a little administrative work ... adding a new group of which your user and the web server are a member,

Re: [PHP] PHP Security - view source code

2002-01-17 Thread Erik Price
On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote: No, it is safer to block access to .inc files with an httpd.conf rule. Allowing people to execute files that were meant to be included out of context could end up being much more dangerous than simply having people see the

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-17 Thread Steve Cayford
You could wrap your function calls, maybe. Like function my_Draw_Image() { if(function_exists('Draw_Image')) { return Draw_Image(func_get_args()); } else { // do whatever... } } Haven't tested this at all, but it seems plausible. Might be

RE: [PHP] variable variables

2002-01-17 Thread scott [gts]
there's one example of var-of-vars along with arrays below my rant rant var-of-var is almost always an evil thing. there are some rare instances where they're necessary, but i assure you that your script would be MUCH cleaner and easier to modify in the future if you used a simple array.

Re: [PHP] PHP Security - view source code

2002-01-17 Thread Rasmus Lerdorf
On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote: No, it is safer to block access to .inc files with an httpd.conf rule. Allowing people to execute files that were meant to be included out of context could end up being much more dangerous than simply having people see

Re: [PHP] variable variables

2002-01-17 Thread Steve Cayford
On Thursday, January 17, 2002, at 10:11 AM, Mike Krisher wrote: I can not wrap my head around variable variables today, not awake yet or something. For instance I trying something like this: while ($i$loopcounter) { $temp = size; $valueofsize = $$temp$i; try $valueofsize =

Re: [PHP] Php.ini file missing

2002-01-17 Thread mike cullerton
on 1/17/02 8:54 AM, Michael Sciascia at [EMAIL PROTECTED] wrote: Looking in the sendmail configuration with Webmin I see that the message sent by the php script is queued and that it isn't possible to send it because the host www@localhost isn't correct. In some web sites I found that I

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Thu, 17 Jan 2002 07:06:50 +0200, you wrote: What do you mean by 'hidden'? If you're talking about a hidden form input, how can it not be post? Bogdan Just saying I've tried it. Figured it wouldn't work but wasn't sure how 'refresh' might relate to 'post'. Post passing works fine with

Re: [PHP] PHP Security - view source code

2002-01-17 Thread mike cullerton
on 1/17/02 9:21 AM, Erik Price at [EMAIL PROTECTED] wrote: On my Linux box, which is shared with several users (I am admin), I would like to do something like this -- if I created the group php, and added myself to that group, I could use files associated with the group php. My web server

Re: [PHP] Changing form look without reloading

2002-01-17 Thread Erik Price
On Thursday, January 17, 2002, at 03:33 AM, Nick Wilson wrote: Hello... I am wondering: Would it be possible to: 1) Select an option in a selectbox 2) Have a list of checkboxes pop up underneath the selectbox, based on what you selected 3) Without reloading the page... Show/hide

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Jason Wong
On Friday 18 January 2002 00:41, Floyd Baker wrote: On Thu, 17 Jan 2002 07:06:50 +0200, you wrote: What do you mean by 'hidden'? If you're talking about a hidden form input, how can it not be post? Bogdan Just saying I've tried it. Figured it wouldn't work but wasn't sure how 'refresh'

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
$TF_string = Starscream, Megatron, Jetfire, Optimus Prime; $TF_array = explode(, , $TF_string); print_r($TF_array); (note the space after the comma in the first argument to explode(), this necessary to avoid the space being include in each element of the array) Hope that helps, Erik On

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
I didn't know that either. Does this apply only when accessing strings by character? Or are all conventional uses of brackets deprecated for the purposes of arrays? It doesn't say on that page (http://www.php.net/manual/en/language.types.string.php , a bit more than halfway down). Erik

Re: [PHP] variable variables

2002-01-17 Thread [EMAIL PROTECTED]
$valueofsize = ${size . $i}; or $var = size . $i; $valueofsize = $$var; bvr. On Thu, 17 Jan 2002 11:11:43 -0500, Mike Krisher wrote: I can not wrap my head around variable variables today, not awake yet or something. For instance I trying something like this: while ($i$loopcounter) {

[PHP] HTTP_POST_VARS and passing by reference

2002-01-17 Thread Bryan McCloskey
Hello, I'm attempting to make a function to which I can pass my form variables, to wit: clean_input($HTTP_POST_VARS); which will run through the array and clean up the variables. However, the passing by reference is giving me the screaming fits. No matter what I do, I can't seem to get the

Re: [PHP] PHP Security - view source code

2002-01-17 Thread [EMAIL PROTECTED]
Best solution still seems to be to keep those includes out of your document root. bvr. On Thu, 17 Jan 2002 08:41:37 -0800 (PST), Rasmus Lerdorf wrote: On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote: No, it is safer to block access to .inc files with an httpd.conf rule.

Re: [PHP] variable variables

2002-01-17 Thread Alister
On Thu, 17 Jan 2002 11:11:43 -0500, you wrote: I can not wrap my head around variable variables today, not awake yet or something. For instance I trying something like this: while ($i$loopcounter) { $temp = size; $valueofsize = $$temp$i; $i++; } What about $i = 0; // set

[PHP] AUTO_INCREMENT problems

2002-01-17 Thread Phil Schwarzmann
I have an exsisting table without any rows. I tried to add a new column to it and make it an auto increment column. But when I do I get this... ALTER TABLE patients CHANGE id id MEDIUMINT (9) DEFAULT not null AUTO_INCREMENT MySQL said: You have an error in your SQL syntax near '' at line 1

Re: [PHP] AUTO_INCREMENT problems

2002-01-17 Thread Dennis Moore
Try... ALTER TABLE patients CHANGE id id MEDIUMINT not null primary key AUTO_INCREMENT /dkm - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 12:35 PM Subject: [PHP] AUTO_INCREMENT problems I have an exsisting table

RE: [PHP] WAP

2002-01-17 Thread Nathan Cassano
There are some excellent article at phpbuilder.com about PHP and WAP. Go to http://www.phpbuilder.com/columns/ and scroll down to the WAP columns. -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 9:27 AM To: [EMAIL PROTECTED]; [EMAIL

[PHP] PHP MySQL problems, updating database..

2002-01-17 Thread Hawk
Having a problem with this, I have a working login that supports multiple users, and I'm trying to make it possible for the users to change their own settings etc, but I get killed when trying to send the data to the MySQL database. To connect I use mysql_connect($host,$user,$pswd) and

[PHP] Fatal error: Call to a member function on a non-object in example1.php on line 66

2002-01-17 Thread Sandeep Murphy
Hi, I keep getting this error Fatal error: Call to a member function on a non-object in /www/html/smurthy/example1.php on line 66 and simply unable to figure out why this is occuring.. 64 $root = $dom-root(); 65 $All_nodes = $root-children(); 66 $childNodes=$All_nodes [1]-children();

Re: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Jason G.
First of all, make sure the $root-children() returns an array of objects. Second of all, remove the space between $All_nodes and [1]. Your code should look like: $childNodes=$All_nodes[1]-children(); If that does not work, you may have to create a temp var to use... $tmp = $All_nodes[1];

Re: [PHP] PHP MySQL problems, updating database..

2002-01-17 Thread Erik Price
The reason you aren't seeing any errors is because you used or die() -- to the best of my knowledge, this replaces any standard errors that PHP would normally generate. It appears that you have omitted the second argument to mysql_query(). A common mistake that I've made many times myself.

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Fri, 18 Jan 2002 01:03:19 +0800, you wrote: On Friday 18 January 2002 00:41, Floyd Baker wrote: On Thu, 17 Jan 2002 07:06:50 +0200, you wrote: What do you mean by 'hidden'? If you're talking about a hidden form input, how can it not be post? Bogdan Just saying I've tried it. Figured

RE: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Sandeep Murphy
Hi, Thnx a lot for your suggestion.. Well the moment I removed the space the error disappeared but the page doesnt show any output ... tried trapping errors but none appears.. any further ideas pl!!! Thnx again, sands -Original Message- From: Jason G. [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] PHP MySQL problems, updating database..

2002-01-17 Thread Dennis Moore
Try using mysql_error() to display the mysql error message before issuing your die(). this will give more information to troubleshoot. You may not have the right privileges set up in your database where you can update or insert into the database or table. /dkm - Original Message -

RE: [PHP] Fatal error: Call to a member function on a non-object (again)

2002-01-17 Thread Sandeep Murphy
hi again, One other strange thing that I didnt mention before.. if I insert(type) the xml data directly within the parser or refer to an external xml file, it runs fine but if I try to dynamically send the xml data to the parser , I repeatedly kept getting the fatal error .. thnx, sands

RE: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could save the password to a database, associated with an ID number, then pass the ID number. DATABASE: - id| password 12345 | blah$$ URL: form.php?id=12345 - Scott Hurring - Internet Programmer

Re: [PHP] PHP MySQL problems, updating database..

2002-01-17 Thread Miles Thompson
Hawk, If you have a working login, can we safely assume that there is information in the database for each user? If so, then we won't bother discussing insert statements, but concentrate on updates. We'll also assume that $user has update privileges on the database. The normal form of an

[PHP] matching user to tables

2002-01-17 Thread Gary
Hello All, I written a script(sessions) that authenticates a user and passes that information on to a menu. Then menu displays according to the users permission level. The thing works with several table joins ETC. What I need to do in the next step is to assign the menu and certain tables

[PHP] printing an XML node

2002-01-17 Thread Thomas Gagne
dumpmem works great for entire documents, but what is the strategy for printing the contents of a single node? It is impossible to use dumpmem on a node since the code looks for a 'doc' property that doesn't exist in nodes. -- .tom -- PHP General Mailing List (http://www.php.net/) To

[PHP] Business objects functionality in PHP

2002-01-17 Thread Chris Boget
Has anyone written (or know of something) that works similar to business objects that is written in PHP? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Jason Wong
On Friday 18 January 2002 02:36, Floyd Baker wrote: The thing is, I *was* using GET in the refresh line and I guess I wasn't saying that. Moreover I want to pass passwords in the same transfer but obviously letting them show up in the url is not cool... If I understand you correctly you're

[PHP] encrypting passwords etc..

2002-01-17 Thread Hawk
Ok I got it working now, with the update and database connect etc.. thanks guys :) this is not a problem(yet), more a thought.. is it really necesary to encrypt passwords, I mean, what does it prevent, me from seeing them using mysql.exe ? :p I tried and it worked fine to almost all points..

[PHP] More image questions...

2002-01-17 Thread Gonzalez, Zara E
If I have a user input a file in an html form for uploading, is there any way that I can pull the name of the file that was uploaded out some how? For example, I have this code for my form: form ENCTYPE=multipart/form-data action=empfunc.phtml method=post Upload a file:

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread Anas Mughal
We had a client who wanted us to encrypt their passwords. Our argument was that maybe their database is not well protected. Only the dba and the application should have access to the database. No-one else should be able to view their data anyways. We didn't see any need to encrypt the passwords.

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Fri, 18 Jan 2002 03:39:21 +0800, you wrote: On Friday 18 January 2002 02:36, Floyd Baker wrote: The thing is, I *was* using GET in the refresh line and I guess I wasn't saying that. Moreover I want to pass passwords in the same transfer but obviously letting them show up in the url is

[PHP] WAP

2002-01-17 Thread LaserJetter
I was fiddling around with the Nokia WAP toolkit the other day and I've created a pretty little WAP site - just listing dates and it has a WBMP image as a welcome screen. Whilst looking for someone to host the site, I noticed a review for f2s which said allows PHP to be combined with WML That

[PHP] Re: Image Fields and PHP...

2002-01-17 Thread Lerp
Hi again, I guess one really good reason for not storing images directly in a db table is performance. When you store a blob in a table it affects the whole database's performance. It slows it down, that's why the most common method is to store the images in a dir on the webserver and store only

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread py
security is measured by the weakest link in the chain so I would say that the database needs to be well protected and the password encrypted. py At 12:14 PM 1/17/2002 -0800, you wrote: We had a client who wanted us to encrypt their passwords. Our argument was that maybe their database is not

RE: [PHP] More image questions...

2002-01-17 Thread Gonzalez, Zara E
A little more looking and I found my solution :) Apparently php automatically makes some variables if you have track_vars turned on. http://php3.de/manual/en/html/features.file-upload.html If anyone is interested. Zara -Original Message- From: Gonzalez, Zara E Sent: Thursday,

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Thu, 17 Jan 2002 13:47:06 -0500, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could save the password to a database, associated with an ID number, then pass the ID number. DATABASE: - id| password 12345 | blah$$ URL: form.php?id=12345 I've done

Re: [PHP] Business objects functionality in PHP

2002-01-17 Thread Miles Thompson
Chris, I don't, but let's this. Geoff Caplan brought up the topic of patterns in PHP for certain frequently used patterns several months ago. So where do I go to look at business objects, or patterns. Miles At 01:39 PM 1/17/2002 -0600, Chris Boget wrote: Has anyone written (or know of

Re: [PHP] string to array??

2002-01-17 Thread Steve Edberg
Sorry if I was less than totally clear; I was referring to this part of the page: Characters within strings may be accessed by specifying the zero-based offset of the desired character after the string in curly braces. Note: For backwards compatibility, you

[PHP] PHP and mySQL

2002-01-17 Thread Morten Nielsen
Hi, I try to use mySQL through PHP, but I can't get it to work. Both PHP and mySQL is installed on my computer (win2k). The PHP manual says I should run php.exe --with-mysql. But I can't figure out what that means. I am using a graphical development environment for PHP, where I have told where

[PHP] encrypting passwords, how to decrypt?

2002-01-17 Thread Hawk
Ok, even if I don't need encryption I thought I might go ahead and try to learn it, and as I said in the previous post I managed to get it working everywhere but on the login script first I have a form that sends username and password to login.php, in that file I have something like this ? $the

Re: [PHP] PHP and mySQL

2002-01-17 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 21:57 * Morten Nielsen said - --with-mysql. But I can't figure out what that means. That looks like a Unix(ish) command? Hi, I try to use mySQL through PHP, but I can't get it to work. Both PHP and mySQL is installed

[PHP] Re: encrypting passwords, how to decrypt?

2002-01-17 Thread Philip Hallstrom
If you are going to us encrypted passwords, then it goes something more like this: - user fills out form picking a login and a password. - php encrypts the password using say md5 and puts the encrypted form into the database. - user tries to login typing in their login and password. - php

RE: [PHP] More image questions...

2002-01-17 Thread Chris Wright
Zara: If I have a user input a file in an html form for uploading, is there any way that I can pull the name of the file that was uploaded out some how? If your file field is called the_file $the_file_name $the_file_type $the_file_size are all created and contain good stuff to play with...

[PHP] help installing php

2002-01-17 Thread Juni Adi
Hello, I'm new to PHP (actually I'm just about to begin) and have problem with installing. I'm looking for version of PHP that will be suit to RH 6.2 and MySQL 3.23.47? (my RH package didn't include any php rpms). I've tried some version 4 rpms but always have error on dependency stuffs. So,

[PHP] Who wants to answer the questions and be paid for that?

2002-01-17 Thread Vlasyuk Valera
Hi, I own http://www.cgi-network.net portal. And have area about programmming. Now i'm looking for people who can help me to answer on PHP questions at php-general mailing list i'll pay for that 0,06$ for each answer. Valery Vlasyuk -- PHP General Mailing List (http://www.php.net/) To

[PHP] general encryption question

2002-01-17 Thread Conor McTernan
sorry for posting this here, I should probably look at the documentation, but i was just wondering what funcionality the PHP mcrypt extension provides. I think I read on this list that it does DES, does it do any RSA, or other crypto algorithms, the reason I ask is because I need to implement

Re: [PHP] Who wants to answer the questions and be paid for that?

2002-01-17 Thread Chris Allen
heh, How much for a follow-up question? - Original Message - From: Vlasyuk Valera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 3:20 PM Subject: [PHP] Who wants to answer the questions and be paid for that? Hi, I own http://www.cgi-network.net portal.

[PHP] Re: PHP and mySQL

2002-01-17 Thread Gary
that is nix command. On window you need to start MySQL one of two ways. http://www.mysql.com/doc/W/i/Windows.html HTH Gary Morten Nielsen wrote: Hi, I try to use mySQL through PHP, but I can't get it to work. Both PHP and mySQL is installed on my computer (win2k). The PHP manual says I

  1   2   >