[PHP] A simple question
Hey, I have just upgrade my box and my forms are no longer passing information into the database. I did a simple echo test and sure enough nothing. I was using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I thinking there is something that needs to be turn on in my php.ini that I need to turn to pass information. Any clues, Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A simple question
If I was still on 4.1 I would understand, but I am on 4.3.4 now I will read it but I think it will there is something that turn on in the php.ini. Payne On 11/13/04 9:13 PM, Brad Bonkoski [EMAIL PROTECTED] wrote: Read this.. http://www.php.net/release_4_1_0.php (Especially the part about global variables...) - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 13, 2004 9:02 PM Subject: [PHP] A simple question Hey, I have just upgrade my box and my forms are no longer passing information into the database. I did a simple echo test and sure enough nothing. I was using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I thinking there is something that needs to be turn on in my php.ini that I need to turn to pass information. Any clues, Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A simple question
Ugh, from what I read now I have to re-write all my forms. No fun. Thanks guys, I was hoping it was something simple. I would like to ask one thing, here is a simple code that I was using can someone explain to what need to be change to work with 4.3.4 so that I can work on my other pages ? $db_name = mylinks; $table_name = links; $connection = @mysql_connect(localhost,xxx,xxx) or die (Couldn't connect); $db = @mysql_select_db($db_name, $connection) or die (Couldn't select database.); $sql = INSERT INTO $table_name (abc, keywords, links, name) VALUES ('$abc', '$keyword', '$links', '$name'); // echo what should be going into the table... print A: $abc, KW: $keyword, LINKS: $links, NAME: $name, SQL: $sqlP; $result = @mysql_query($sql, $connection) or die(Couldn't execute query.); ? Sorry to ask, just nothing is inserting into the data, and most of the books I have are from 2000 a little dated. Payne PS. Before someone tells me that it not good to post information here, things have been change to protect my database. On 11/13/04 9:59 PM, Janet Valade [EMAIL PROTECTED] wrote: Actually, read this: http://us2.php.net/manual/en/security.globals.php Janet Chuck PUP Payne wrote: If I was still on 4.1 I would understand, but I am on 4.3.4 now I will read it but I think it will there is something that turn on in the php.ini. Payne On 11/13/04 9:13 PM, Brad Bonkoski [EMAIL PROTECTED] wrote: Read this.. http://www.php.net/release_4_1_0.php (Especially the part about global variables...) - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 13, 2004 9:02 PM Subject: [PHP] A simple question Hey, I have just upgrade my box and my forms are no longer passing information into the database. I did a simple echo test and sure enough nothing. I was using Apache 1.3 with php 4.1 I am now using Apache 2 with php 4.3.4, I thinking there is something that needs to be turn on in my php.ini that I need to turn to pass information. Any clues, Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with RAND()
Hi, I am trying to understand how RAND (), because I've had this problem before with other langs., I am using with this with MySQL statement that is in my php script, but it's only put the first files. I only have three files, do I need more files in my database? Is RAND() or RAND (), please help. When I did basic back in the 8-bit days I had problem with RANDOM then too. Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php and Fortune
Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Php and Fortune
Thanks Everyone. This is so cool!!! :) On 10/22/03 11:15 PM, Mykroft Holmes IV [EMAIL PROTECTED] wrote: Mykroft Holmes IV wrote: Chuck PUP Payne wrote: Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne echo 'pre'; passthru(fortune); echo '/pre'; Should do it. I use this for a nice little Server Status page that iterates through an array of unix commands, works like a charm. Adam Oops, should be: echo 'pre'; passthru('fortune'); echo '/pre'; Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wanting to better understand
Hey, I am trying to better understand something, I learned a couple weeks ago that if I do this... If ($field == value1) { $field = change to new value; Now I have use this to change -00-00 to nbsp;. And the following. If ($days 30) { $days strongfont color='ff' . $days . /font/strong; } Want I want to do was add a second line this below to change the another value to change to change to another color... If ($days 45) { $days strongfont color='ff00ff' . $days . /font/strong; } But, the second value is over riding the first vaule so I can't see the differents. I sorry that this might be confusing but I am trying to ask the way I can. I am not sure what you call this, expression I think. Any way is there a way that I can use this expression to get two or more colors. Thanks Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Wanting to better understand
A, ok. You know am still having problems with elseif, else, Ok, thanks I will give it a try. Chuck On 10/1/02 11:03 PM, Chris Shiflett [EMAIL PROTECTED] wrote: Chuck, I'm not sure what you're trying to do, but I think you might just want to order it the other way around. if ($days 45) { # $days is 46 or more do stuff } elseif ($days 30) { # $days is 31-45 do other stuff; } else { # $days is 30 or less more stuff; } Also, be careful about overwriting $days with that long string and then trying to compare it to a numeric value. You probably want to use a different variable name for the string. Happy hacking. Chris Chuck \PUP\ Payne wrote: If ($days 30) { $days strongfont color='ff' . $days . /font/strong; } Want I want to do was add a second line this below to change the another value to change to change to another color... If ($days 45) { $days strongfont color='ff00ff' . $days . /font/strong; } But, the second value is over riding the first vaule so I can't see the differents. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Include...
Hi, I am trying to start using inc files. But I am this this error Warning: Failed opening '/local/htdocs/movies/style.inc' for inclusion (include_path='.:/usr/share/php') in /local/htdocs/movies/lmenu.php on line 3 I have this in my lmenu.php Include (/local/htdocs/movies/style.inc); So can't someone telling me what I am doing wrong. I thought .inc where easy. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Include...
Hi, I am trying to start using inc files. But I am this this error Warning: Failed opening '/local/htdocs/movies/style.inc' for inclusion (include_path='.:/usr/share/php') in /local/htdocs/movies/lmenu.php on line 3 I have this in my lmenu.php Include (/local/htdocs/movies/style.inc); So can't someone telling me what I am doing wrong. I thought .inc where easy. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Include Part 2
Ok, I am trying to make my design a lot easier. I want to know if I can do this... I want to set up in my php page this... $rows; Under my db_info.inc I want to store this so that I can add delete from it. $row = $title = myrow[title]; $format = myrow[format]; $category = myrow[category]; Am I wrong to try this way? Do I need to set it up as fuction to call on? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Include Part 2
What I was wanting to do was store the myrows under let say, db_info.inc file. So that I can add or delete what myrows I want to call on. I am thinking this what I need to do... Function row ($row) { //These are the rows to call on... $title = $myrow[title]; $format = myrow[format]; $category =$myrow[category]; } This way I can add more myrow to call upon at a later date or delete for that matter. I hope that helps... Chuck On 9/29/02 1:48 AM, Justin French [EMAIL PROTECTED] wrote: Not sure I fully understand, but usually this stuff calls for either a function, or an included file of code... in your case, sounds like a function is required, but I may not fully understand... Regards, Justin on 29/09/02 3:29 PM, Chuck PUP Payne ([EMAIL PROTECTED]) wrote: Ok, I am trying to make my design a lot easier. I want to know if I can do this... I want to set up in my php page this... $rows; Under my db_info.inc I want to store this so that I can add delete from it. $row = $title = myrow[title]; $format = myrow[format]; $category = myrow[category]; Am I wrong to try this way? Do I need to set it up as fuction to call on? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Include Part 2
By the way I have time this but what is happen and maybe this will clear up things. I only calling this first myrow call titles. It's not going on to the other two. Now in my php page I have this... $myrow = mysql_fetch_array($result); $row; Now this doesn't work. But this does. $myrow = mysql_fetch_array($result); $title = $myrow[title]; $format = $myrow[format]; $category =$myrow[category]; So want I wanted to do but I am see you can was to make $row be called from db_info.inc so that if lets say I wanted to add ratings I can add it to the db_info.inc. The reasoning for this is about 50 pages and I am getting tried of change each one I like to be able to change just one file. You know make it easier. Better design. Sorry it 2:30am and Jolt cola is not working and I am LD. So sorry if this is not clear. Chuck Payne On 9/29/02 2:06 AM, Chuck PUP Payne [EMAIL PROTECTED] wrote: What I was wanting to do was store the myrows under let say, db_info.inc file. So that I can add or delete what myrows I want to call on. I am thinking this what I need to do... Function row ($row) { //These are the rows to call on... $title = $myrow[title]; $format = $myrow[format]; $category =$myrow[category]; } This way I can add more myrow to call upon at a later date or delete for that matter. I hope that helps... Chuck On 9/29/02 1:48 AM, Justin French [EMAIL PROTECTED] wrote: Not sure I fully understand, but usually this stuff calls for either a function, or an included file of code... in your case, sounds like a function is required, but I may not fully understand... Regards, Justin on 29/09/02 3:29 PM, Chuck PUP Payne ([EMAIL PROTECTED]) wrote: Ok, I am trying to make my design a lot easier. I want to know if I can do this... I want to set up in my php page this... $rows; Under my db_info.inc I want to store this so that I can add delete from it. $row = $title = myrow[title]; $format = myrow[format]; $category = myrow[category]; Am I wrong to try this way? Do I need to set it up as fuction to call on? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Maybe a stupid question but can it be done?
Ok, Let's try this again, for some reason this didn't post from early today. I have db that has two tables that I am needing to post the same information into both tables, I can't use ID. So I am want to see if there is a sql statement that will let me or how I can do with a php page. I am sorry to ask, I have looked around to see if there any on the net or in my mysql and php books but this seems like a weird task. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Maybe a stupid question but can it be done?
Ok, Let's try this again, for some reason this didn't post from early today. I have db that has two tables that I am needing to post the same information into both tables, I can't use ID. So I am want to see if there is a sql statement that will let me or how I can do with a php page. I am sorry to ask, I have looked around to see if there any on the net or in my mysql and php books but this seems like a weird task. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with mail...
Hi, Well after read php.net and my copy php 4 bible. I am lost with mail. I can get it to work if I do this... Mail ('[EMAIL PROTECTED]', 'Data Added', $fname, $lname .); But I can't get this to work...I know someone going to call me stupid but I am really having people with mail(), Is there a special place to put it? Here example of my codeany way I trying to hammer it out and using google to see where the error of my way is. Chuck Payne --- HTML HEAD TITLEKillers Added/TITLE /HEAD BODY TOPMARGIN=50 ?php if ($fname==) { echo You did not supply a first name. Please hit the 'Back' button on your browser and fill in a name.\n; exit; } if ($lname==) { echo You did not supply a Last Name. Please hit the 'Back' button on your browser and fill in a name.\n; exit; } if ($title==) { echo You did not supply a Movie Title. Please hit the 'Back' button on your browser and fill in a name.\n; exit; } $dbh = mysql_connect(deathtoasp, zombieuser, eatmsbrains) or die (Unable to connect to database); mysql_select_db(slashers, $dbh) or die (An error was reported); $table_name = deathmovies; $statement = INSERT INTO $table_name (fname, lname, title) VALUES (\$fname\, \$lname\, \$title\); $result = mysql_query($statement, $dbh); if ($result) { echo H3Adding the following record/H3; echo hr; echo pstrongActor/Actress:/strongnbsp;nbsp; $fname $lname /p; echo br; echo pstrongMovie:/strongnbsp;nbsp;$title/p; echo a href='addactormovie.html'Add more Actor/Actress and Movie which they stared in/a; echo hr; $address = [EMAIL PROTECTED]; $Subject = The new movie and actor added to phpMovie Library; $body = Adding the following record Actor/Actress: '$fname $lname' Movie: '$title'; mail('$address', '$Subject', '$body .'); } else { echo There was an error saving your entry. Please try back in a little while.; } ? /BODY /HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with mail...
Ok, that work. Why does the ' (quote) not make it work is it because it's an array? Any thanks John that got it work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Design question.
Hi, I have a question. I been working a personal project that I am want to make a like simpler. I have several pages have in which I have place the information to connect to my database, whick is getting old. What I am wanting to do is create file like most do, a config, but I want to know which is better, config.php or config.inc. I know there not much different from what I have read but I am wanting to know which gives more protection. And what recommendation would you give on set it up? I am only asking because I am at some point wanting to release my project to public. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Design question.
Thanks guys. That really helpful. Chuck Payne On 9/21/02 10:16 PM, Chris Shiflett [EMAIL PROTECTED] wrote: This explanation from Justin is worth saving. I also like to call all of my included modules *.inc, and I prefer to store them outside of document root. However, if you want to keep all of your files together, the .htaccess file shown below is the best way to restrict direct access to modules. Some people make the mistake of simply making *.inc files considered PHP by Apache (claiming it is better to execute them than to have their source code displayed), but this gives attackers the opportunity to execute your modules out of context - a very dangerous approach. One extra note worth adding is that you should add this configuration to your httpd.conf if you are the Web server administrator. This will keep you from having to remember the .htaccess file everywhere. Justin's method is best for when you do not have this option. Chris Justin French wrote: I place name all my included files *.inc... I place them all in a folder /inc/ and place a .htaccess file in that directory to restrict the files being served of HTTP: Files ~ \.inc$ Order Allow,Deny Deny from all /Files Another option would be to place them in a folder ABOVE your web root, so that Apache can't serve them -- if you have that option. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to pass null as value?
I know this may have been asked a thousand times but how do you pass null on to a page as a value. Let say in a field where you have a yes and no. Null needs to equal no. Is this more mysql? Can it be done in php? Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Thanks...
Many thanks. That was the trick. :) Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] E-mail a submit
Hi, Is there a way that when someone add a submit or edits a record that I can have my php page e-mail that record? And is hard to do? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Count in PHP
I am wanting to do a count in PHP. I want to be able to count the number of records from a given database and display this count on the page. Can this be done using PHP or is the sql thing? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to print a mysql result
Hi, I am having a problem with menu options being pass on to my database. Is there a way that I can see what is sql statement that is passing on to the database? Say maybe print $sql or something like that? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to do pass on information...
Hi, I would like to know if there is a way that I can pass on an information from a pull down menu into a sql query. Right now I have to right a PHP page for each piece I am wanting to pass on. Example I have a movie database and now if I want to see what is in my Anime Category that starts with A I have to create a page like this: Select * FROM database WHERE category = 'anime' AND title like 'A%' I know I have to do an array? Would it be like this? $category $letter Select * FROM database WHERE category = '$category' and title is like '$letter' But it get to the sql statement is where I am lost. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Lost, need help debuggin....
Hi, I am trying to debugging this script. But, I can see what the issue is, it not listing errors on any of the mysql stuff but this what I see when I view source Here is the code. html head titleBrowse A Movie in My Movie Database/title meta name=generator content=BBEdit 6.1.2 /head body ?php //How many should be displayed on per page $display_number = 25; //Connect to the database $db_connection = mysql_connect ('localhost', 'user', 'gateway') or die ('Could not connect'); $db_select = mysql_select_db ('media') or die (Couldn't not access database); //If we don't know how many pages there are, make that calculation. print before the first if; if (!isset($num_pages)) { // Determine the query. if(isset($letter)) { // Browsing a particular letter or the whole shebang? $query1 = SELECT library.title FROM media.library WHERE library.title LIKE '$letter%' ORDER BY library.title ASC; } else { $query1 = SELECT library.title FROM media.library ORDER BY library.title ASC; } //Query the database $query_result1 = mysql_query ($query1) or die (Could not run query); //Calculate the number of pages required. $num_results = mysql_num_row ($query_result); if ($num_results $display_number) { $num_pages = ceil ($num_results/$display_number); } elseif ($num_results 0) { $num_pages = 1; } else { echo 'There are no movies in this selection'; } $start = 0; // Current at item 0 } if(isset($letter)) { // Browsing a particular letter or the whole shebang? $query = SELECT library.title FROM media.library WHERE library.title LIKE '$letter%' ORDER BY library.title ASC LIMIT $start, $display_number; } else { $query = SELECT library.title FROM media.library ORDER BY library.title ASC LIMIT $start, $display_number; } // Table that shows movies... echo table align='center' cellpadding='2' cellspacing='2' border='1'; echo tr align='center'; echo td align='center'bTitle/b/td; echo /tr; // Print My list $query_result = mysql_query ($query); while ($row = mysql_fetch_array ($query_result)) { print tr align='center'; print td align='center'ia href='testlist.php?row[title]'$row[title]/a/i/td; print /tr; } // Make the links to others pages, if nessessary. if ($num_pages 1) { print tr align='center'; print td align = 'center' colspan = '2'; // Determine what page the script is on. if ($start == 0) { $current_page = 1; } else { $current_page = ($start/$display_number) + 1; } // If it's not the make a back button... If($start !=0) { echo 'a href=browse_movie.php?start=' .($start - $display_number) . 'num_pages=' . $num_pages . 'lettter' . $letter . 'Back/a '; } // Make all the numbered pages. for ($i = 1; $i = $num_pages; $i++) { $next_start = $start + $display_number; if ($i != $current_page) { // Don't link the current page print 'a href=browse_movie?start=' . (($display_number * ($i-1))) . 'num_pages=' . $num_pages . '$letter=' .$letter . '' .$i . '/a '; } else { echo $i . ' '; } } // If it's not the last page, make a next buttton. if($current_page !=$num_pages) { print 'a href=browse_movie?start=' . ($start + $display_number) . 'num_pages=' . $num_pages . 'letter=' . $letter . 'Next/a '; } print /td; print /tr; } ? /table /body /html Thanks a head of time if you can show the error(s) in my code. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Lost, need help debuggin....
Not sure I am on my laptop, an iBook running php/apache. So I am not sure where php.ini is. Chuck On 6/24/02 3:29 PM, 1LT John W. Holmes [EMAIL PROTECTED] wrote: Do you have display_errors ON in your php.ini ?? ---John Holmes... - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Monday, June 24, 2002 3:24 PM Subject: [PHP] Lost, need help debuggin Hi, I am trying to debugging this script. But, I can see what the issue is, it not listing errors on any of the mysql stuff but this what I see when I view source -- -- -- -- Here is the code. -- -- html head titleBrowse A Movie in My Movie Database/title meta name=generator content=BBEdit 6.1.2 /head body ?php //How many should be displayed on per page $display_number = 25; //Connect to the database $db_connection = mysql_connect ('localhost', 'user', 'gateway') or die ('Could not connect'); $db_select = mysql_select_db ('media') or die (Couldn't not access database); //If we don't know how many pages there are, make that calculation. print before the first if; if (!isset($num_pages)) { // Determine the query. if(isset($letter)) { // Browsing a particular letter or the whole shebang? $query1 = SELECT library.title FROM media.library WHERE library.title LIKE '$letter%' ORDER BY library.title ASC; } else { $query1 = SELECT library.title FROM media.library ORDER BY library.title ASC; } //Query the database $query_result1 = @mysql_query ($query1) or die (Could not run query); //Calculate the number of pages required. $num_results = @mysql_num_row ($query_result); if ($num_results $display_number) { $num_pages = ceil ($num_results/$display_number); } elseif ($num_results 0) { $num_pages = 1; } else { echo 'There are no movies in this selection'; } $start = 0; // Current at item 0 } if(isset($letter)) { // Browsing a particular letter or the whole shebang? $query = SELECT library.title FROM media.library WHERE library.title LIKE '$letter%' ORDER BY library.title ASC LIMIT $start, $display_number; } else { $query = SELECT library.title FROM media.library ORDER BY library.title ASC LIMIT $start, $display_number; } // Table that shows movies... echo table align='center' cellpadding='2' cellspacing='2' border='1'; echo tr align='center'; echo td align='center'bTitle/b/td; echo /tr; // Print My list $query_result = @mysql_query ($query); while ($row = @mysql_fetch_array ($query_result)) { print tr align='center'; print td align='center'ia href='testlist.php?row[title]'$row[title]/a/i/td; print /tr; } // Make the links to others pages, if nessessary. if ($num_pages 1) { print tr align='center'; print td align = 'center' colspan = '2'; // Determine what page the script is on. if ($start == 0) { $current_page = 1; } else { $current_page = ($start/$display_number) + 1; } // If it's not the make a back button... If($start !=0) { echo 'a href=browse_movie.php?start=' .($start - $display_number) . 'num_pages=' . $num_pages . 'lettter' . $letter . 'Back/a '; } // Make all the numbered pages. for ($i = 1; $i = $num_pages; $i++) { $next_start = $start + $display_number; if ($i != $current_page) { // Don't link the current page print 'a href=browse_movie?start=' . (($display_number * ($i-1))) . 'num_pages=' . $num_pages . '$letter=' .$letter . '' .$i . '/a '; } else { echo $i . ' '; } } // If it's not the last page, make a next buttton. if($current_page !=$num_pages) { print 'a href=browse_movie?start=' . ($start + $display_number) . 'num_pages=' . $num_pages . 'letter=' . $letter . 'Next/a '; } print /td; print /tr; } ? /table /body /html -- -- Thanks a head of time if you can show the error(s) in my code. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Lost, need help debuggin....
Look, I am glad that we are clear on php.ini, but I post my message in hopes that someone could look at it and say there your problem and go away, I've turn on error part no help. Same things. So somewhere there is a sytax error that is stopping it. PLEASE HELP! Chuck Payne On 6/24/02 3:54 PM, Erik Price [EMAIL PROTECTED] wrote: On Monday, June 24, 2002, at 03:51 PM, Erik Price wrote: sudo find / -name 'php.ini' -print Clarification: substitute the search string with 'php-ini.dist' if you haven't yet configured it. Note that Macs, although they ship with PHP pre-installed, are missing this file and you should probably download it from the PHP source tree, if you're using the pre-installed PHP. (If you've compiled your own, then you have it in the 'lib' directory of wherever you installed PHP, such as /usr/local/lib/php-ini.dist). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with MySQL
Ok. Go to this link... http://www.magidesign.com/movielist.php and select 12 Monkeys You will see that only picked one actor... It should have pick four mysql SELECT concat_ws( , fname, lname) as actor FROM actormovie WHERE title = 12 Monkeys ORDER BY lname; +-+ | actor | +-+ | Brad Pitt | | Christopher Plummer | | Madeleine Stowe | | Bruce Willis| +-+ 4 rows in set (0.01 sec) I know that the problem is some where in this statement... $sql = SELECT concat_ws(' ', fname, lname)as actor FROM actormovie WHERE title = '$title' ORDER by lname; $result = mysql_query($sql); $actor = ; while ($myrow = mysql_fetch_array($result)) { $actor = $myrow[actor]; $actor .= A HREF='' . $actor . /ABR\n; } Only thing is I am brain dead and can't see it... Thanks for the help... Chuck On 6/15/02 12:10 AM, Tyler Longren [EMAIL PROTECTED] wrote: you need to put your $myrow in a while loop: while ($myrow = mysql_fetch_array($result)) { $title = $myrow[title]; $videoid = $myrow[videoid]; $catergory = $myrow[catergory]; $appraisal = $myrow[appraisal]; // blah blah blah everything else } Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: Chuck Payne [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Friday, June 14, 2002 11:03 PM Subject: [PHP] Problem with MySQL Hi, I am working on a movie database I have two database that I am calling from but the problem I am having when I ask it to go and fetch all the movies with the same title, it stops and only shows one. Here is a basic layout... if($videoid) { $result = mysql_query(SELECT * FROM library WHERE videoid=$videoid,$db); $myrow = mysql_fetch_array($result); // The Myrows $title = $myrow[title]; $videoid = $myrow[videoid]; $catergory = $myrow[catergory]; $appraisal = $myrow[appraisal]; // Some where here it's not working. $sql = SELECT concat_ws(' ', fname, lname)as actor FROM actormovie WHERE title = '$title' ORDER by lname; $result = mysql_query($sql); print $sql; $actor = ; while ($myrow = mysql_fetch_array($result)) { $actor = $myrow[actor]; $actor .= A HREF='' . $actor . /ABR\n; } What am I doing wrong? It only show one record and it show more. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Are we getting spammed?
I just got something call ise-news, and the bottom it saying it mail from -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Are getting spammed? Or it this for real? This is from the e-mail. --=_f74fc4c7192d1983b9f144709175f8eb Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Your email client is unable to display this issue of ise-news. Most likely this is because your email client cannot read HTML. To change your ise-news subscription to the text version, go to: http://www.social-ecology.org/ise-news/change.php?id=d963dfb04befe0df8673367 050c9ad8d To unsubscribe, go to: http://www.social-ecology.org/ise-news/unsubscribe.php?id=d963dfb04befe0df86 73367050c9ad8d Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: BBS system
The I like I have try three now is phpnuke it so easy to set up you can have it up and running in 5 mins. YBBSE is another that is good. http://www.phpnuke.org http://www.yabbse.org | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein on 4/27/02 11:53 AM, Yuri Petro at [EMAIL PROTECTED] wrote: PHPBB is REALLY best! :-) http://www.phpbb.com/ -- Kind regards, Yuri. www.AceHoster.com Quality web hosting R [EMAIL PROTECTED] Hey all, Just a small q, does anybody know of any particular good BBS system that is free? (I aint rich :-( ) Been to hotscripts.com can you recomend any? (Actually if i were rich I would not care a damn for PHP-MySql-Apache-Java-ASP-JSP hell, i wouldnt even touch a computer, would be happy being computer illiterate, would have been partying with a lot of babes instead...hehhehe maybe thats why i aint rich...have too wicked a mind? ) Ohh well Cheers, -Ryan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ASP to PHP
I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to change ASP file to PHP with out a lot of re-writes? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Not A PHP question but I need help in a big way...
Hi, I just got finish will a meeting from HELL, I need to ask can some one tell me is there an Apache Mailing List like this. I have to ask if I can do ASP page on Apache, I know I know please don't flame me, I kept trying to get them to switch to PHP, but I been told to shut my mouth and just find out this information. So I am sorry that I am asking but I not sure where to start. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wanting a better understanding of classes in PHP...
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how can I use them? And is a class a bit of code that you are always using? If so, how can I create my own classes. Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain, GA 30087 --- (678) 476-0747 ext. 18 (Phone) (770) 498-1590 (Fax) (404) 451-3579 (Mobile) (800) 631-1371 (Alpha Page) [EMAIL PROTECTED] (Text Pager) [EMAIL PROTECTED] (E-Mail) --- http://www.gdieng.com http://www.gditelecommunication.com http://www.softmeta.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Wanting a better understanding of classes in PHP...
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how can I use them? And is a class a bit of code that you are always using? If so, how can I create my own classes. Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. 2075-E West Park Place Blvd. Stone Mountain, GA 30087 --- (678) 476-0747 ext. 18 (Phone) (770) 498-1590 (Fax) (404) 451-3579 (Mobile) (800) 631-1371 (Alpha Page) [EMAIL PROTECTED] (Text Pager) [EMAIL PROTECTED] (E-Mail) --- http://www.gdieng.com http://www.gditelecommunication.com http://www.softmeta.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help I killed PHP on mysever...
I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help I killed PHP on mysever...
SuSE 7.3(linux) Apache. on 4/9/02 2:43 AM, Martin Towell at [EMAIL PROTECTED] wrote: um - pray which OS and web server are you running? -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:33 PM To: PHP General Subject: [PHP] Help I killed PHP on mysever... I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help I killed PHP on mysever...
You know I can't find mod_php4.c where should that be? on 4/9/02 2:51 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Refer to my earlier post about your AddType entries.. If they are not there, before you add them, check for a file on your system called mod_php4.conf.. If you find it, it will have the required entries in it already.. If this is the case, make sure your modules section in httpd.conf is configured properly to add mod_php.. If your talking about the magidesign.com server then it looks like your module config is fine.. Just check for the AddType lines then.. Later, Bob Chuck Pup Payne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... SuSE 7.3(linux) Apache. on 4/9/02 2:43 AM, Martin Towell at [EMAIL PROTECTED] wrote: um - pray which OS and web server are you running? -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:33 PM To: PHP General Subject: [PHP] Help I killed PHP on mysever... I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help I killed PHP on mysever...
No, I have reinstall. So much I about to throw my box. PHP just wont load now everything I have work now it lost. Chuck on 4/9/02 3:28 AM, Mika Tuupola at [EMAIL PROTECTED] wrote: On Tue, 9 Apr 2002, Chuck PUP Payne wrote: I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. This happens when you recompile and reinstall php as a module and didn't restart your webserver. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help I killed PHP on mysever...
I was install awstats on my work sever. I wanted to add a page so that the manages could see the stats. Some how my httpd.conf got zapped, I think because somehow all my virtual servers had stop working. So I took a back up and edit it. I got them all back on line but PHP has stop load, every time I click on link that is .php file. I whats to down load it. I have check and I do have AddType application/x-httpd-php .php .phtml .php3 this install And AddType application/x-httpd-php-source .phps I am SuSE Linux (7.3) and I am running Apache. I have reboot my box I have looked everywhere I can, but no luck. on 4/9/02 3:33 AM, James Cox at [EMAIL PROTECTED] wrote: Chuck, what exactly is your situation? what has happened, step by step? what OS are you on? Thanks, James -- James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:31 AM To: Mika Tuupola Cc: PHP General Subject: Re: [PHP] Help I killed PHP on mysever... No, I have reinstall. So much I about to throw my box. PHP just wont load now everything I have work now it lost. Chuck on 4/9/02 3:28 AM, Mika Tuupola at [EMAIL PROTECTED] wrote: On Tue, 9 Apr 2002, Chuck PUP Payne wrote: I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. This happens when you recompile and reinstall php as a module and didn't restart your webserver. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Thanks away...
I want to thanks all those that help at 2~4am this morning (EST). I got it fixed, but I had to reinstall Apache and PHP, lucky it easy with SuSE Linux. But I still have no clue to why it wasn't working, but I wanted to thank any everyone that has help me on this sleepless night. It's great to know there is help 24/7. Chuck Payne Magi Design and Support. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Clock
Does anyone know where I can get a script to all a clock done in PHP or will I have to do it with Java script. Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with e-mail...
I have just install a program called Web Calendar. It suppose to be able to send reminders via e-mail but I am not sure if PHP is set up to send e-mail or what is happening. I have turned on debugging and it is showing that there are remembers but it not sending anything. Is there a simple test I can to to test php is talking to sendmail? Thanks, - | Chuck Payne | | Magi Design and Support | | www.magidesign.com| | [EMAIL PROTECTED]| - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with e-mail...
Thanks! I was able to send an e-mail so now I have to figure out why this guy script isn't sending reminders Chuck On 4/3/02 4:30 PM, Rick Emery [EMAIL PROTECTED] wrote: send an email to yourself: ?php mail([EMAIL PROTECTED],test subject,This is my test message,From: [EMAIL PROTECTED]\n) ? -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:26 PM To: PHP General Subject: [PHP] Help with e-mail... I have just install a program called Web Calendar. It suppose to be able to send reminders via e-mail but I am not sure if PHP is set up to send e-mail or what is happening. I have turned on debugging and it is showing that there are remembers but it not sending anything. Is there a simple test I can to to test php is talking to sendmail? Thanks, - | Chuck Payne | | Magi Design and Support | | www.magidesign.com| | [EMAIL PROTECTED]| - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Help with e-mail...
I wanted what Rick Emery sent to me... This little example on how to make php talk to sendmail... ?php mail([EMAIL PROTECTED],test subject,This is my test message,From: [EMAIL PROTECTED]\n) ? He little script help show me that php is working with sendmail. Our e-mail been working now for 4 years...just this send_reminder.php that is a part of Web Calendar isn't sending any maul. So because I write the guy that wrote I thought I make sure that there wasn't anything wrong with my php.ini and that php can talk to sendmail. But the book PHP bible example wasn't clear. So again Rick thanks your little example help me and that's want I wanted. Chuck On 4/3/02 4:45 PM, Javier [EMAIL PROTECTED] wrote: So you tried to send a mail to yourself and worked. What do you want to do then? On Wed, Apr 03, 2002 at 04:40:25PM -0500, Chuck PUP Payne wrote: Mail works, I am wanting to see PHP can talk to mail. On 4/3/02 4:38 PM, javier [EMAIL PROTECTED] wrote: Have you got access to your host machine? You can send messages to your local user a then see if they reach destination. Chuck Pup Payne wrote: I have just install a program called Web Calendar. It suppose to be able to send reminders via e-mail but I am not sure if PHP is set up to send e-mail or what is happening. I have turned on debugging and it is showing that there are remembers but it not sending anything. Is there a simple test I can to to test php is talking to sendmail? Thanks, - | Chuck Payne | | Magi Design and Support | | www.magidesign.com| | [EMAIL PROTECTED]| - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can you use null?
I am wanting to know if I can use null to call up an image? I am writing a page that talks to calls to a database for cars. There a field where calls on photo names, but if someone doesn't have a photo. Mysql puts null, I want to be able to use that null to call an image. | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Where is php.ini on Mac OS X?
Can some one please tell me where php.ini is located on Mac OS X? Thanks, Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Where is php.ini on Mac OS X?
Can some one please tell me where php.ini is located on Mac OS X? Thanks, Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cookies
Can someone point me to a webset that example how to do cookies? I try to do what the mannual said but, when I go to my temp dir, there no cookie file. I know it working because my file would print a phrasing error. Thanks, | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Phpfx, what is it?
Hi, I was sourgeforge.net looking at the PHP stuff, I saw something call phpfx, but it not clear what it is or what it does. Has anyone mess with it? Also I am looking for a php program that was written so that you can do a BBS, I wanted to use Ultimate Bulletin Board, but they no longer support the freeware verision, you have to pay almost $500 for it. The verision I have the date is not Y2K, so the dates come out 19100. So I need to replace the BBS, it was written with perl and I like to have something well you guys know. One last question for now. Is there a site that explain how to do list in php with colors, I want to add color to my lists, when I do thinks now there are so boring, with just white. Thanks a head of time...By the way | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Phpfx, what is it?
Thanks I have four PHP WebPortals or what I use to calling BBS, but I still don't have a clue about phpfx. Oh, well. Nor on a good site that shows how to add color to my php code. I am sorry that I am still usig I grew in the dark ages of 8-bit computers when Atari 800 and Apple IIE where king. Thanks guys for the help, now I have to choose which program is best. on 3/20/02 8:26 PM, Ilia A. at [EMAIL PROTECTED] wrote: You can also try FUDforum (http://fud.prohost.org/forum/) Ilia On March 20, 2002 07:11 pm, Chuck \PUP\ Payne wrote: Hi, I was sourgeforge.net looking at the PHP stuff, I saw something call phpfx, but it not clear what it is or what it does. Has anyone mess with it? Also I am looking for a php program that was written so that you can do a BBS, I wanted to use Ultimate Bulletin Board, but they no longer support the freeware verision, you have to pay almost $500 for it. The verision I have the date is not Y2K, so the dates come out 19100. So I need to replace the BBS, it was written with perl and I like to have something well you guys know. One last question for now. Is there a site that explain how to do list in php with colors, I want to add color to my lists, when I do thinks now there are so boring, with just white. Thanks a head of time...By the way | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare.
Ok, I am back. My client has gone bought Wintel box, running XP. I have downloaded and install Apache, Mysql, and PHP 4. But because 4 is a zip, I have read the install.txt and have set up the httpd.conf but when I got to check if php is working, I can see the inside of the file ? PHPINFO(); ? I have look on a couple site I have everything set. Is there an easy way, my God Linux and Mac is simpler than this. Chuck Payne Magi Design and Support. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare.
Thanks I will try it. -- Chuck On 3/19/02 2:15 PM, Geoff Hankerson [EMAIL PROTECTED] wrote: Here is an easy one click install you can download for free http://www.nusphere.com/ (click download -- you have to register first) It puts Apache, MySQL, php and perl all in the right places for you. - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 1:12 PM Subject: [PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare. Ok, I am back. My client has gone bought Wintel box, running XP. I have downloaded and install Apache, Mysql, and PHP 4. But because 4 is a zip, I have read the install.txt and have set up the httpd.conf but when I got to check if php is working, I can see the inside of the file ? PHPINFO(); ? I have look on a couple site I have everything set. Is there an easy way, my God Linux and Mac is simpler than this. Chuck Payne Magi Design and Support. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare.
Thanks, it worked. But now I have to update PHP from 4.06 to 4.12. But I am point I can start working on their intranet. Chuck Payne on 3/19/02 2:15 PM, Geoff Hankerson at [EMAIL PROTECTED] wrote: Here is an easy one click install you can download for free http://www.nusphere.com/ (click download -- you have to register first) It puts Apache, MySQL, php and perl all in the right places for you. - Original Message - From: Chuck PUP Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 1:12 PM Subject: [PHP] Mac Classic and PHP...Part 2 The Wintel Nightmare. Ok, I am back. My client has gone bought Wintel box, running XP. I have downloaded and install Apache, Mysql, and PHP 4. But because 4 is a zip, I have read the install.txt and have set up the httpd.conf but when I got to check if php is working, I can see the inside of the file ? PHPINFO(); ? I have look on a couple site I have everything set. Is there an easy way, my God Linux and Mac is simpler than this. Chuck Payne Magi Design and Support. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Website STATISTICS
Where can you find that one? On 3/18/02 3:49 PM, Dan Vande More [EMAIL PROTECTED] wrote: I think awstats has everything your asking for. -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Website STATISTICS Hi, Anybody knows any good open source website statistics tool with graph and pie diagrams. I did go to sourceforge.net and saw few but wanted to know if any of you have found really good one. Basically I am looking for tool which apart from basic stuff like referrer, ip, browser name, no of sec/min/hrs, and document name, should also be able to show what KEYWORD used in the search engine to access this website. Looking forward for your response. Regards, karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mac Classic and PHP...
Does anyone know a good web server beside WebStar for the Mac Classic OS, that will allow you to run PHP with it? I have a client that is looking for such an animal. I recommended WebStar because I know it will let you run cg, but I am not sure about PHP. WebStar is the only professional web server that I know of of Mac Classic. I don't think there is such an animal for the classic OS. I have tried to talk them into move to OS 10.1.3, but that like talking to the wall. Also I need to know where I can find free ODBC drivers that will let them contact to MYSQL or Filemaker pro. Thanks, Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Classic and PHP...
Thanks, I am pushing them to go to OS X, but they are PPC 8500, which can only go to Mac OS 8.6, maybe 9. They don't want to buy a new computer, I personal have a G4 and Snowflake iBook and am running 10.1.3 with Apache, PHP, and MySQL. I told the I search and ask, which I have so thanks guys. By the Eric Price, I could see PHP on Atari ST(they have the same chips as the Mac Classic, 68K) and I know in England and Germany are still used by many and are even on the internet, but not an 800. I still to this day write code in Atari Basic on my 800. I miss my Atari ST 1040, but I gave that up for my first mac, Power Book 145B, but I am wandering. ;) Oh, well maybe I can talk them into buying that new iMac or G4 SilverPro. Again guys thanks for the info. Chuck Payne Magi Design and Support On 3/18/02 4:35 PM, Kevin Stone [EMAIL PROTECTED] wrote: Unfortunately PHP was never developed for MacOS 9 so there is no option there. The only option is to switch to MacOSX (which I highly recommend) or migrate to XP (which is a mess but works). -Kevin -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] Mac Classic and PHP... Does anyone know a good web server beside WebStar for the Mac Classic OS, that will allow you to run PHP with it? I have a client that is looking for such an animal. I recommended WebStar because I know it will let you run cg, but I am not sure about PHP. WebStar is the only professional web server that I know of of Mac Classic. I don't think there is such an animal for the classic OS. I have tried to talk them into move to OS 10.1.3, but that like talking to the wall. Also I need to know where I can find free ODBC drivers that will let them contact to MYSQL or Filemaker pro. Thanks, Chuck Payne Magi Design and Support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Classic and PHP...
Linux PPC/SuSe PPC can run on the 8500, it a 603 I think. The problem for them is money, I recommend a PPC 5400(180Mhz, 80Megs) running SuSE 7.0that I own for them, at the price of $150, PPC 5400 that the grandfather of the iMac. The guy paid $6000 for this Mac, and the guy doesn't want to even hear new hardware. So it doesn't matter I am talk to a wall. For those that like use Linux on a PPC, SuSE is much easier on PPC side that LinuxPPC. LinuxPPC is a RedHat clone and I don't like the fact that how it does things but that me, plus I have used SuSE from the dark ages of Linux and have much better luck with it, than Red Hat. I've hear that Yellowdog is good but everytime I go Microcenter to pick up a copy of YD, it's been sold, and since I have been using SuSE at work on Intels from 5.3 until the lastest 7.3, that what I why use on PPC. I am dealing with just cheap people. So again thanks for all the comments and info. MkLinux was the 68K Verision of Linux that ran on Atari ST, Mac 68K, and Amiga or any computer with 68000 cpu. Thanks guys, Chuck Payne Magi Design and Support. On 3/18/02 5:26 PM, Erik Price [EMAIL PROTECTED] wrote: On Monday, March 18, 2002, at 05:16 PM, Chuck PUP Payne wrote: Thanks, I am pushing them to go to OS X, but they are PPC 8500, which can only go to Mac OS 8.6, maybe 9. They don't want to buy a new computer, I personal have a G4 and Snowflake iBook and am running 10.1.3 with Apache, PHP, and MySQL. I told the I search and ask, which I have so thanks guys. Recommend them a cheap Linux box. You could probably set yourself up with a web server for less than a hundred bucks, just need a Pentium 1 with a crummy handmedown monitor and an ethernet card. Mandrake is supposed to be incredibly easy to use and graphically configurable, and if these people really want to get going with PHP and web serving then they're probably willing to learn a little Linux... or they could get someone else (yourself?) to administrate the box for them. Or even put the 68k linux distro (I forget its name) on their 8500. By the Eric Price, I could see PHP on Atari ST(they have the same chips as the Mac Classic, 68K) and I know in England and Germany are still used by many and are even on the internet, but not an 800. I still to this day write code in Atari Basic on my 800. I miss my Atari ST 1040, but I gave that up for my first mac, Power Book 145B, but I am wandering. ;) I must have had about 300 games for my old Atari 800. Gallahad and the Holy Grail, Ulysses and the Golden Fleece, Jungle Hunt, Pitfall, Haunted House, man... I wish I still had them. Then again, it might be like those movies that you remember so fondly as a kid but then you see again fifteen years later and you're like what was I thinking? The memory ends up being better than the reality. My Atari is best left in my attic... :) Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Brain Dead...
I am trying to get a form to work with pull down menu. But I am so brain dead I forgot how to get the input from the pull down menu. Where do I put input to pass on to php? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpMyAdmin
I have a client that has install phpMyAdmin but can't get into he gets this error; Error MySQL said: Access denied for user: 'root@localhost' (Using password: NO) Is there a way to get into if he knows the password? Chuck PUP Payne Sr. System Administrator GDI Engineering, Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: A stupid question...
%'nbsp;/td\n; print/tr\n; printtr\n; print td width='12%'Date of Birth:/td\n; print td width='1%'nbsp;/td\n; print td width='14%'$DOB/td\n; print td width='1%'nbsp;/td\n; print td width='12%'Start Date:/td\n; print td width='1%'nbsp;/td\n; print td width='23%'$Sdate/td\n; print/tr\n; printtr\n; print td width='12%'nbsp;/td\n; print td width='1%'nbsp;/td\n; print td width='14%'nbsp;/td\n; print td width='1%'nbsp;/td\n; print td width='12%'Term Date/td\n; print td width='1%'nbsp;/td\n; print td width='23%'$Tdate/td\n; print /tr\n; print /table\n; // The Inner End print/td\n; print/tr\n; print/table\n; } else { //show Employee List # This what I want to change so that I can do it by letter # $result =mysql_query(SELECT * FROM emply_info ORDER BY Lname, Fname DESC,$db); if ($myrow = mysql_fetch_array($result)) { // display list if there are no records to display do { printf(a href=\%s?EMID=%s\%s %s/abr\n, $PHP_SELF, $myrow[EMID],$myrow[Lname], $myrow[Fname]); } while ($myrow = mysql_fetch_array($result)); } else { // no record to display echo Sorry no records were found!; } } ? /body /html on 3/11/02 4:08 AM, liljim at [EMAIL PROTECTED] wrote: Hi chuck, use left() assuming your column is called name, then something like this will do: $letter = a; $get = @mysql_query(SELECT * FROM table WHERE LEFT(surname, 1) = '$letter' ORDER BY surname ASC); That should get out all of the fields beginning with a or A and list them alphabetically. Hope that's of some help. James Chuck Pup Payne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to sort by a letter in a colomn. Let say I want to sort the colomn last_name. I can do order by but I can do just the A's. http://www.myserver.com/mysort.php?Letter=A Like to create a link on a web A then sort only the last name are A. I hope that's helps. I can order by, but I can't so a sort like the example above. Chuck Payne Magi Design and Support on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote: At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote: Hi, I not a newie but I am not a pro at mysql either. I want to do a query by letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP. So can someone please so me the how. I'm not totally sure what your looking for. If you could elaborate a little I am sure that one of us could help you out. Cary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: A stupid question...
$result =mysql_query(SELECT * FROM emply_info WHERE Lname ORDER BY Lname, Fname DESC LIKE'%$letter',$db); $letter=a That's what I tried. Chuck -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 5:25 PM To: 'Chuck PUP Payne'; liljim Cc: PHP General Subject: RE: [PHP] Re: A stupid question... What do you mean it doesn't like the LIKE Please provide the query statement you used and the response from the application -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:22 PM To: liljim Cc: PHP General Subject: Re: [PHP] Re: A stupid question... Ok, I have tried this but no luck...I have included the page I have been working on. I have it list everything now but last name. # This what I want to change so that I can do it by letter # $result =mysql_query(SELECT * FROM emply_info ORDER BY Lname, Fname DESC,$db); I have tried everything and nothing is working, it doesn't like the LIKE statement. - | Chuck Payne | | Magi Design and Support | | www.magidesign.com| | [EMAIL PROTECTED]| - html head titleEmployee Current E-Mail List/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 style type=text/css !-- a:hover { color: #CC; text-decoration: underline; font-weight: bold} a:active { color: #990099; text-decoration: none; font-style: oblique} a:link { text-decoration: none} a:visited { color: #FF33FF; text-decoration: none} p { font-family: Times New Roman, Times, serif; font-size: 6pt; font-style: normal; line-height: normal} normal { font-family: Times New Roman, Times, serif; font-size: 8pt; font-style: normal; line-height: normal} -- /style /head body bgcolor=#FF text=#00 ?php $db = mysql_connect(0.0.0.0,cepayne,@#$%DZ); mysql_select_db(employes,$db); // display individual record if($EMID) { $result =mysql_query(SELECT * FROM emply_info WHERE EMID=$EMID,$db); $myrow = mysql_fetch_array($result); //The Table print table width='700' border='1' cellpadding='0' cellspacing='0' bordercolor='#33'\n; print tr\n; print td\n; // The Inner Table $Lname = $myrow[Lname]; $Fname = $myrow[Fname]; $MI = $myrow[MI]; $photoid = $myrow[photoid]; $Address = $myrow[Address]; $Address2 = $myrow[Address2]; $City = $myrow[City]; $ST = $myrow[ST]; $Zip = $myrow[Zip]; $Hphone = $myrow[Hphone]; $Cphone = $myrow[cphone]; $Email = $myrow[Email]; $Hemail = $myrow[Hemail]; $UserID = $myrow[UserID]; $BadgeID = $myrow[BadgeID]; $DOB = $myrow[DOB]; $Sdate = $myrow[Sdate]; $Tdate = $myrow[Tdate]; print table width='100%' border='0'\n; print tr\n; print td width='12%'strongName:/strong/td\n; print td width='1%'nbsp;/td\n; print td width='14%'$Lname/td\n; print td width='1%'nbsp;/td\n; print td width='12%'$Fname/td\n; print td width='1%'nbsp;/td\n; print td width='23%'$MI/td\n; print td width='38%' rowspan='10'img src='emplypix/$photoid'/td\n; print /tr\n; print tr\n; print td width='12%'Address/td\n; print td width='1%'nbsp;/td\n; print td colspan='4'$Address/td/td\n; print td width='23%'nbsp;/td\n; print /tr\n; print tr\n; print td width='12%'nbsp;/td\n; print td width='1%'nbsp;/td\n; print td colspan='4'$Address2/td\n; print td width='23%'nbsp;/td\n; print /tr\n; print tr\n; print td width='12%'nbsp;/td\n; print td width='1%'nbsp;/td\n; print td colspan='4'$City,nbsp;$STnbsp;$Zip/td\n; print td width='23%'nbsp;/td\n; print /tr\n; print tr\n; print td width='12%'Home Phone/td\n; print td width='1%'nbsp;/td\n; print td width='14%'$Hphone/td\n; print td width='1%'nbsp;/td\n; print td width='12%'Cell Phone/td\n; print td width='1%'nbsp;/td\n; print td width='23%'$Cphone/td\n; print /tr\n; print tr\n; print td width='12%'E-Mail/td\n; print td width='1%'nbsp;/td\n; print td width='14%'a href=\mailto:$Email\;$Email/a/td\n; print td width='1%'nbsp;/td\n; print td width='12%'Home E-Mail/td\n; print td width='1%'nbsp;/td\n; print td width='23%'a href='mailto:$Hemail'$Hemail/a/td\n; print /tr\n; print tr\n; print
[PHP] A stupid question...
Hi, I not a newie but I am not a pro at mysql either. I want to do a query by letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP. So can someone please so me the how. | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Hartley's Second Law: Never sleep with anyone crazier than yourself. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: A stupid question...
I want to sort my a letter in a set colomn. Let say I want to sort the colomn last_name http://www.myserver.com/mysort.php?Letter=A Like to create a link like A then sort only the last name ore what ever I want to sort by that letter. I hope that's helps. I can order by, but I can't so a sort like the example above. Chuck Payne Magi Design and Support on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote: At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote: Hi, I not a newie but I am not a pro at mysql either. I want to do a query by letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP. So can someone please so me the how. I'm not totally sure what your looking for. If you could elaborate a little I am sure that one of us could help you out. Cary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: A stupid question...
I want to sort by a letter in a colomn. Let say I want to sort the colomn last_name. I can do order by but I can do just the A's. http://www.myserver.com/mysort.php?Letter=A Like to create a link on a web A then sort only the last name are A. I hope that's helps. I can order by, but I can't so a sort like the example above. Chuck Payne Magi Design and Support on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote: At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote: Hi, I not a newie but I am not a pro at mysql either. I want to do a query by letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP. So can someone please so me the how. I'm not totally sure what your looking for. If you could elaborate a little I am sure that one of us could help you out. Cary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Homesite 5.0 and PHP
I am wanting to know is there any add-ons for Macromedia Homesite 5.0. I see it set up for ASP and JSP and a couple others but not PHP. Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Deleting a Record
Thanks I have now five ways to try. | Chuck Payne | | Magi Design and Support | | [EMAIL PROTECTED] | -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:43 AM To: Chuck PUP Payne; [EMAIL PROTECTED] Cc: PHP General Subject: Re: Deleting a Record At 7:46 -0500 3/6/02, Chuck \PUP\ Payne wrote: Hi, I a seting up a php page that will let me delete a record from my mysql database, but I want it be able to match to fields before it will let a user delete that record. I know the basic sql command is DELETE FROM $table WHERE field 1 = $value But I don't know how to write the state for a second field. Can some one tell, but one field seem to give too much choose and would make it to easy to delete the wrong record. Connect the conditions with AND: DELETE FROM tbl_name WHERE col1 = 'value1' AND col2 = 'value2' | Chuck Payne | | Magi Design and Support | | [EMAIL PROTECTED] | BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself.- Harvey Fierstein - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] BBEdit - URL Check
Dreamweaver does this but it cost. I am sure there are some shareware or freeware programs. Check versiontracker.com this is the best site to find MacOSX software. Chuck Payne Magi Design and Support on 2/28/02 10:37 AM, Josiah Wallingford at [EMAIL PROTECTED] wrote: Right now I am on a Mac running OSX. I used to run Windows. When I was running windows I had a program called Xenu, found at http://home.snafu.de/tilman/xenulink.html; This program KICKED BUTT because it will look at any url or any folder and tell you every link that is broken including subdirectories and all of the external links that are broken as well. It would then ask you if you would like to email the list of broken link or display them now. If you wanted to display them now it would generate a nice html file where you can view the broken links in all kinds of displays. By broken link, by folder ext. If there a function like this in bbedit or does anybody know of any program that will do that for the mac? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Uploading Files with PHP
Hi, I am trying to set a small script that would let my clients upload file with a Explorer or Netscape, but the problem is it would let me upload any file that is great than a 1MB. We get an error that the file none could not be read. I have set the upload_tmp_dir=/tempupload is has been chmod to 777, php.ini as been set to 20MB, I know that is a lot but we are engingeering company that work with CADD files. Any clues where to look? The PHP 4 Bible from IDG states that we have to under HTTP uploads, but nothing else. Is there some where on the net that explains better what I have to set up, turn on, or haven't done? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php