php-general Digest 18 Dec 2005 14:29:38 -0000 Issue 3857

2005-12-18 Thread php-general-digest-help
php-general Digest 18 Dec 2005 14:29:38 - Issue 3857 Topics (messages 227583 through 227599): Re: Function Overloading 227583 by: tg-php.gryffyndevelopment.com 227596 by: Labunski Re: Problem on Instalation ~ several module unable to downl oad 227584 by: Bagus

[PHP] Need help with modifying values

2005-12-18 Thread Anasta
The first script works ' modify_values.php' showing the values and a modify link next to each but the next script it parses to 'modify_values2.php' is obviously not working. I have tried to modify it from another script and cant get it to pass the correct variables-- it always shows the first

Re: [PHP] Need help with modifying values

2005-12-18 Thread Matt Stone
There's a big difference between the first and second scripts your using. The second one isn't using a while loop so will only return the first row in the recordset. See below. HTH Cheers Matt - Original Message - From: Anasta [EMAIL PROTECTED] To: php-general@lists.php.net Sent:

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Aside from the 20 suggestions you've already got, let me add this one: elseif( ($page != one) or ($page != two) or ($page != NULL) ) { Echo htmlheadtitleUndefined!/title/headbodypage isn't defined correctly!/body/html; } is useless code. Why? $page = null; never happens (you made sure of

Re: [PHP] Need help with modifying values

2005-12-18 Thread programmerdelhi
Hi, I am looking for a full time online Job. Please have a look at my CV at the below link. any one looking for freelancer or permanent employee 8 hours a day, 5 days a week. Salary 1000 USD per month www.bsdinfotech.com/loveneesh1.htm Regards, - Original Message - From: Matt Stone

Re: [PHP] Random Images with no duplicates?

2005-12-18 Thread Silvio Porcellana [tradeOver]
Jared Williams wrote: Hi, Just unset the ones you've picked ?php #random images example #this is your file $file = images.txt; #open the file $openFile = file($file); #generate a random number srand((double)microtime()*100); #get one of the entries in the file for ($i = 0;

Re: [PHP] Random Images with no duplicates?

2005-12-18 Thread Silvio Porcellana [tradeOver]
Silvio Porcellana [tradeOver] wrote: code $file = images.txt; $openFile = file($file); $num_images = 10; # don't need this is PHP 4.2.0 srand((float) microtime() * 1000); $random_keys = array_rand($openFile, $num_images); foreach

Re: [PHP] Function Overloading

2005-12-18 Thread Labunski
Thank you very much. This is exactly what I wanted to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] insert to DB

2005-12-18 Thread Anasta
It just wont insert new data into DB--any ideas as i have gone over and over. ? mysql_connect(localhost,anasta,silteren); mysql_select_db(mytipperv1); if(!isset($cmd)) { $result = mysql_query(select * from leaderboard order by ID); while($r=mysql_fetch_array($result)) {

Re: [PHP] insert to DB

2005-12-18 Thread Brian V Bonini
On Sun, 2005-12-18 at 07:41, Anasta wrote: It just wont insert new data into DB--any ideas as i have gone over and over. Your not doing any inserts, two selects and one update... insert in t1 values('foo','bar','1 1 2 3 5 8 13'); -- s/:-[(/]/:-)/g BrianGnuPG - KeyID: 0x04A4F0DC

[PHP] Re: PHP and Apache 2.2.0

2005-12-18 Thread Kevin McBride
Manuel Lemos wrote: I built PHP 5.1 with Apache 2.2 following these instructions and it works: http://ww.php.net/manual/en/install.unix.apache2.php Seems to work now... maybe Apache meant that the 2.0 vs. 2.2 module info was valid only for precompiled binaries... -- PHP General Mailing List

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
Hi Johnson, what is not working in this code? what is the problem? It will always execute the first part of if condition, i.e. It will print htmlheadtitlePage One/title/headbodyIt works!!bra href=http://lom.game-host.org/uploads/erik/index.php?page=two;Nice.../a /body/html What you are

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Well. Here's an example of the page -- http://lom.game-host.org/uploads/erik/ It is just loading the second page, no matter what. I haven't added the isset thing yet, but I'll try it. BTW: I'm only 14, so I have yet to use an older version, and upgrade to a newer PHP. ;-) Thanks, Erik Johnson

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
I was wondering.. how exactly does the isset function work? I saw that Robert Cummings wrote: $page = isset( $_GET['page'] ) ? $_GET['page'] : null; What exactly does that mean?

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Łukasz Hejnak
Zareef Ahmed napisał(a): Hi, Hi what is not working in this code? That's how I see it ? $defaultpage = http://lom.game-host.org/uploads/erik/;; // yes the isset is ok here If(!isset($page)) { $page = one; } if($page == one) { // as far as I know echo is all low case written but maybe

Re: [PHP] insert to DB

2005-12-18 Thread Zareef Ahmed
Hi, I think you should read a beginner tutorial about SQL. there are just four things Insert, Delete, Update and select, that need to be known for working with database in normal conditions, after that you can move to create, drop, alter or much more like joins etc.

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
- Original Message - From: Erik Johnson [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, December 18, 2005 10:41 AM Subject: Re: [PHP] Someone please help me with this PHP script. I was wondering.. how exactly does the isset function work? I saw that Robert Cummings

RE: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Oli Howson
The ? And : are a shortcut for ifelse, that could also be written If (isset($_GET['page']) { $page = $_GET['page']; } else { $page = null; } The shortcut is a lot quicker to write (if you understand it) but not as readable. isset just returns true if a variable has been set, false if not :)

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Thank you very much. My dad is in college, but I have been teaching myself HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with Adobe Illustrator, and Photoshop. I actually started programming before my dad was in school, and I got him started I guess! Anyway; I've learnt

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
I still can't seem to get it to work. If you want to see my phpinfo(), then go to http://lom.game-host.org/uploads/erik/info.php . I'll keep trying, and hope for the best! It may be my php.ini file, but I have no clue.

[PHP] Re: insert to DB

2005-12-18 Thread David Hall
? if ($_POST[$submit]) { $Name = $_POST[Name]; $Rating = $_POST[Rating]; $sql = UPDATE leaderboard SET Name='$Name', Rating='$Rating' WHERE ID=$id; //replace news with your table name above $result = mysql_query($sql); echo Thank you! Information updated.;

[PHP] Re: Need help with modifying values

2005-12-18 Thread David Hall
modify_values2.php ++ ?php include(connect.php); $sql = Select * from leaderboard ; $result = mysql_query($sql); You'll want to do something like: $id = mysql_real_escape_string($_GET['id']); $sql = Select *

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
- Original Message - From: M. Sokolewicz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: PHP LIST php-general@lists.php.net Sent: Sunday, December 18, 2005 4:34 AM Subject: Re: [PHP] Someone please help me with this PHP script. Aside from the 20 suggestions you've already got, let me add

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Okay.. I was just wondering; What's the difference between = and ==? Would it matter if I changed them? It seems as though if I put = instead of the =='s, it comes up ONLY page two no matter what $page equals, and if it's ='s instead of =='s, then it comes up with only page one no matter what

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
Hi Johnson, I am glad to know about you. In my view, PHP is one of easiest language of world. Only one problem for beginners is the numbers of functions in it , PHP has more than 4500 functions, ( infact, it is the strength of PHP), so they face problems when every other person tell them

Fwd: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
I understand that some people aren't nice to newer people that try their hardest to figure out a problem. Older, more experienced people see this and they think that it's an easy fix, and that they just aren't trying, but in essence.. they are trying just as hard as someone much more

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Łukasz Hejnak
Erik Johnson napisał(a): Okay.. I was just wondering; What's the difference between = and ==? Would it matter if I changed them? It seems as though if I put = instead of the =='s, it comes up ONLY page two no matter what $page equals, and if it's ='s instead of =='s, then it comes up with only

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Woohoo! I got it to work. Thanks everyone! This is exactly what I needed: making multiple-page files in one file. It saves me the hassle of trying to know what file is what, and where. Instead.. one big file! On 12/18/05, Łukasz Hejnak [EMAIL PROTECTED] wrote: Erik Johnson napisał(a):

[PHP] Looking for a photo gallery

2005-12-18 Thread Brian Dunning
Has anyone seen a photo gallery that will do the following: - Allow several people to upload images to various subdirectories via FTP, and then a cron script or something periodically scans the directories and creates any needed thumbnails and creates new pages for all new images; - Is

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Actually, I disagree with the explenation here. The reasoning behind it is correct, but the explenation contains a number of incorrect statements. The = (a single '=') is the so-called assignment operator. This operator assigns the right-hand value to the left-hand variable. So, when you

[PHP] Load from db into select-list

2005-12-18 Thread Gustav Wiberg
Hi there! Is it possible to load a select-list with databasinfo without reloading a page??? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Load from db into select-list

2005-12-18 Thread Curt Zirzow
On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote: Hi there! Is it possible to load a select-list with databasinfo without reloading a page??? With AJAX, yeah. Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To

[PHP] spaces in directory names

2005-12-18 Thread matt VanDeWalle
hello, I have encountered this on several cds and well when i went to a friend's ftp site in windows, using linux and php(i think its a linux mainly question) but i have run accross files and directory names like this: they appear like this in linux, path\ of\ the\ windows\ file.txt i am

[PHP] asked too soon, nevermind

2005-12-18 Thread matt VanDeWalle
I just figured out my own answer to the previous post so i guess just ignore the question :p i'll learn to try things first one of these days lol matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Load from db into select-list

2005-12-18 Thread Gustav Wiberg
- Original Message - From: Gustav Wiberg [EMAIL PROTECTED] To: Curt Zirzow [EMAIL PROTECTED] Sent: Sunday, December 18, 2005 8:46 PM Subject: Re: [PHP] Load from db into select-list Ajax? What is that? /G - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To:

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-18 Thread Paul Jinks
Richard Davey wrote: ? $connect = mysql_connect(, , ) or die(could not connect); $db = mysql_select_db() or die(could not select db); if (isset($HTTP_GET_VARS['projTitle'])) { $SQLQuery = SELECT * FROM project WHERE projTitle =

Re: Fw: [PHP] Load from db into select-list

2005-12-18 Thread David Hall
Gustav Wiberg wrote: Ajax? What is that? http://en.wikipedia.org/wiki/AJAX php is a server side language, so you must refresh the page to have php do it directly, so using AJAX, you can talk to the server from the page. D. Hall -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Load from db into select-list

2005-12-18 Thread joshua may
Curt Zirzow wrote: On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote: Hi there! Is it possible to load a select-list with databasinfo without reloading a page??? With AJAX, yeah. Curt. call it 'remote scripting', dammit! it rarely seems to get used as 'ajax' strictly..

[PHP] Re: Function Overloading

2005-12-18 Thread joshua may
Labunski wrote: PHP does not support function overloading. So, is there any other way of getting a number of parameters(variables) passed to a function? aka. function fruits($apple, $banana, $kiwi, $grape){ #should (somehow) output 4 } OK. if it was an array, than I could use

Re: Fw: [PHP] Load from db into select-list

2005-12-18 Thread Brian V Bonini
On Sun, 2005-12-18 at 15:22, Gustav Wiberg wrote: Ajax? What is that? Asynchronous JavaScript and XML, or Ajax, is a web development technique for creating interactive web applications using a combination of: - XHTML (or HTML) and CSS for marking up and styling information - The Document

Re: [PHP] Load from db into select-list

2005-12-18 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 08:24:15AM +1100, joshua may wrote: Curt Zirzow wrote: On Sun, Dec 18, 2005 at 08:28:22PM +0100, Gustav Wiberg wrote: Hi there! Is it possible to load a select-list with databasinfo without reloading a page??? With AJAX, yeah. Curt. call it 'remote

Re: [PHP] Callbacks in XML Parser

2005-12-18 Thread Norbert Wenzel
comex wrote: xml_set_element_handler($this-xmlParser, $this-startTag, $this-endTag); xml_set_element_handler($this-xmlParser, array($this, 'startTag'), array($this, 'endTag')); i copied this from a posting about two weeks ago by Jochem Maas: in this case there is an alterntive:

[PHP] duplicate filenames but different .extention

2005-12-18 Thread matt VanDeWalle
hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it is a jpg file, but if its a .gif, just continue. I have several

Re: [PHP] duplicate filenames but different .extention

2005-12-18 Thread Curt Zirzow
On Sun, Dec 18, 2005 at 05:12:33PM -0600, matt VanDeWalle wrote: hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it

Re: [PHP] Function Overloading

2005-12-18 Thread David Tulloh
PHP doesn't natively support function redefining. Functions with variable length arguments are a different ballgame in PHP. Have a look at func_num_args[1] and the other functions in the Function handling section of the manual. 1: http://php.net/func_num_args Labunski wrote: PHP does not

Re: [PHP] duplicate filenames but different .extention

2005-12-18 Thread Philip Hallstrom
hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it is a jpg file, but if its a .gif, just continue. I have several

Re: [PHP] Callbacks in XML Parser

2005-12-18 Thread Amol Hatwar
xml_set_element_handler ( $parser, array( $this, 'xml_start_element' ), array( $this, 'xml_stop_element' ) ); Thanks for helping me out :). Warm regards, ah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP programmers from hyderabad

2005-12-18 Thread Vikram Kumar
hi! We are looking for PHP programmers from hyderabd. If you are an experienced PHP programmer, and have experience of developing calendar or dairy , message board application, please send your CV to [EMAIL PROTECTED] All PHP programmers are welcome to apply!. Best regards, Vikram.

Re: [PHP] PHP programmers from hyderabad

2005-12-18 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 02:58:00AM +0100, Vikram Kumar wrote: hi! We are looking for PHP programmers from hyderabd. If you are an experienced PHP programmer, and have experience of developing calendar or dairy , message board application, please send your CV to [EMAIL PROTECTED] All

Re: [PHP] PHP programmers from hyderabad

2005-12-18 Thread Michael Hulse
On Dec 18, 2005, at 6:19 PM, Curt Zirzow wrote: On Mon, Dec 19, 2005 at 02:58:00AM +0100, Vikram Kumar wrote: We are looking for PHP programmers from hyderabd. You can stop sending these messages to the list. I am with Curt on this one. I get enough spam as it is already. WhTF is Hyderabd

Re: [PHP] PHP 4.4.1 array_set_current bug?

2005-12-18 Thread Curt Zirzow
On Fri, Dec 16, 2005 at 09:09:08AM -0500, Eric Butera wrote: Hello all, I have an image gallery script I created and I seem to be having some difficulties with it. I am using this script on many different platforms and different PHP versions. I have tried it on 4.4.0 (linux) and

Re: [PHP] Load from db into select-list

2005-12-18 Thread Zareef Ahmed
Hi, Using AJAX or JSRS you can do this. See http://www.ashleyit.com/rs/main.htm Zareef Ahmed - Original Message - From: Gustav Wiberg [EMAIL PROTECTED] To: PHP General php-general@lists.php.net Sent: Sunday, December 18, 2005 2:28 PM Subject: [PHP] Load from db into

SV: [PHP] PHP programmers from hyderabad

2005-12-18 Thread Mattias Segerdahl
Hyderabd, India? Would you stop flaming the list with these requests? Looking at your website, not a single experienced programmer would even consider applying to the job mentioned. Not only does the website look like it's made by someone with the know-how of a thirteen year old kid but the

[PHP] accessing RAW response

2005-12-18 Thread Surya Mishra
Hi, I am posting a request to a server from a PHP and getting a result. When I trap the response, it comes with all the contents. Is there a method to strip off the extra information and just capture the result? For example I get HTTP/1.1 200 OK Date: Mon, 19 Dec 2005 07:25:38 GMT Server: