Re: [PHP] If you ever had a Vic20

2003-08-14 Thread John Taylor-Johnston
Ok ... so I can do it this way (below), but there must be a more intelligent way? This is like something I did with my Vic20, 19 years ago. (If you ever had a Vic20 ... :) you might sympathise) while ($mydata = mysql_fetch_object($news)) { if ($mydata->StudentId = $StudentId) {$found =1}else{$fo

[PHP] Re: LAMP > I need a good tutorial on how to install and configureGD2

2003-08-14 Thread Kae Verens
Matt Babineau wrote: Anyone have a good place to help with this... Google was seeming a bit light on good help. I tried to get it going but there seemed to be some dependant libraries tha tI could not build myself, they were erroring out..blah blah. Is there any easier way to do this? Thanks, Matt

Re: [PHP] Re: How can I load load Additional extensions ?

2003-08-14 Thread Leif K-Brooks
Dennis Lee wrote: Why it is wrong when I run php as module under apache 2.0.46 ? PHP and Apache 2 are currently unstable together. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP Gen

php-general Digest 15 Aug 2003 06:16:45 -0000 Issue 2237

2003-08-14 Thread php-general-digest-help
php-general Digest 15 Aug 2003 06:16:45 - Issue 2237 Topics (messages 159608 through 159642): Re: project management php system 159608 by: Michael A Smith Re: email confirmation script 159609 by: Anthony Ritter 159626 by: Anthony Ritter 159638 by: olinux New

[PHP] Re: searching date

2003-08-14 Thread Kae Verens
[EMAIL PROTECTED] wrote: Hi , The user have to choose 2 date ($date_begin & $date_last) and i want to know howcan i make to find field in mysql where field included between ($date_begin & $date_last) "SELECT * FROM `news` WHERE `date` included in ($date_begin & $date_last)" $q=mysq

[PHP] Re: How can I load load Additional extensions ?

2003-08-14 Thread Dennis Lee
I am really confused . When I just run php as CGI without changing anything else, It works quite well . Why it is wrong when I run php as module under apache 2.0.46 ? Is it a bug or anything else ? Any help will be appreciated . "Dennis Lee" <[EMAIL PROTECTED]> дÈëÓʼþ news:[EMAIL PROTECTED

Re: [PHP] Allowed mem size exhausted

2003-08-14 Thread Shawn McKenzie
Thanks! Would anyone care to expand on the "tools" or the methods for preparing on disk??? Thanks again! -Shawn "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote David Nicholson ([EMAIL PROTECTED]): > > Hello, > > > > This is a reply to an e-mail that you w

[PHP] How to Select

2003-08-14 Thread John Taylor-Johnston
Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists, ... Anyone good humoured who would help me fill in the blank. Like I should know this, but haven't even thought of coding SQL in a while :) $myconnection = mysql_connect($serve

Re: [PHP] How can I load load Additional extensions ?

2003-08-14 Thread Dennis Lee
I am sure they are in c:\php\extensions . any other idea ? "Leif K-Brooks" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > Dennis Lee wrote: > > >what was wrong ? thanks for any useful words . > > > Are those extensions in c:\php\extensions? > > -- > The above message is encrypted with double

Re: [PHP] Re: why doesn't default values for this function work

2003-08-14 Thread anders thoresson
function secure_string($unsafe_string, $max_length) { if(!is_int($max_length)) error("Variable max_length is not an integer." ); if (strlen($unsafe_string) > $max_length) error("Too many characters."); } I want the $max_length to be optional. With your solution it isn't? I thought I could make it

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-14 Thread Justin French
Well, you haven't told us what database you're using at all, but I'll assume MySQL. In which case you should look at the LIMIT part of your query. http://www.mysql.com/doc/en/SELECT.html All you need to do is pass around a starting point variable on each page, so that you know where the resul

Re: [PHP] snippet

2003-08-14 Thread imran
hi It is a Ternary Operator, Often you can avoid large if/else statements in your code by using the ternary operator. For example: echo "You have $i ". ($i==1 ? "message" : "messages"). " in your box.\n"; Note: "? : " operator has this syntax "expr ? expr : expr;" imran - Original Messa

Re: [PHP] email confirmation script

2003-08-14 Thread olinux
Read the manual notes for mail() and find out how to send html messages. www.php.net/mail or better - just send a text message make your link shorter though so the link won't break. olinux --- Anthony Ritter <[EMAIL PROTECTED]> wrote: > This is what I receive via e-mail after I click > submit

Re: [PHP] setting header() for csv file

2003-08-14 Thread David T-G
Hi again -- ...and then David T-G said... % ... % How do I construct the headers so that the browser says "Oh, this is a It turns out that my header attempt was good and I just had to try again. I don't *think* I had the same blank-line-of-output as mentioned in the manual, but it's possible :-)

Re: [PHP] Help with Mod mathematical function

2003-08-14 Thread Groboski, Joshua
http://us4.php.net/math The operator you want is % Eg: 5%3 = 2 <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > > if you turn on --enable-bcmath, you can use de bcmod function > equivalen to Mod operator from visual basic > > > Un saludo, Danny > > > >

[PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
Anyone know where I can find tutorials or examples on how to use the gunzip, gzip, and other commands using PHP to work with compressed files? I would really appreciate it if someone could send me some links or examples of how to use them. My goal would be to be able to extract .zip, .gz, and oth

Re: [PHP] gettin parameters from url, architecture question

2003-08-14 Thread Merlin
> RewriteRule ^file_html_22.html$ dospamfile.php this looks somehow faster than doing a errordocument redirect. Would it for example be possible to redirect all files starting with /travelogue_ to a specific file? Merlin PS: thanx for the great hint! --