|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help_at_lists.php.net
Date: Sun Nov 17 2002 - 00:13:47 CST
php-general Digest 17 Nov 2002 06:13:47 -0000 Issue 1709
Topics (messages 124733 through 124770):
Fractions
124733 by: Stephen
124734 by: Mark Charette
124735 by: Marco Tabini
124736 by: Mark Charette
124748 by: Stephen
Re: can I retrieve jsp varibable with get or post???
124737 by: Jeff Bluemel
Re: sendmail problem
124738 by: Jeff Bluemel
124744 by: Manuel Lemos
124765 by: Jeff Bluemel
Re: GD 1.5
124739 by: Rasmus Lerdorf
Re: session handling
124740 by: conbud
Re: Forms and Sessions not working
124741 by: conbud
problem with base64_encode and windows
124742 by: Jeff Bluemel
Re: output buffering problem
124743 by: Colin Kettenacker
imap_fetchstructure problem
124745 by: jorgel.galfin.com.uy
Display cell if dates are between 2 dates - help
124746 by: Ray Healy \(Data Net Services\)
124752 by: BigDog
Php Form Issue
124747 by: Keith Spiller
124751 by: David Rice
124758 by: John Nichel
Re: Strings and php.ini
124749 by: Khalid El-Kary
124768 by: . Edwin
124770 by: Jason Wong
Register_globals = off-compliant form class?
124750 by: Leif K-Brooks
124753 by: BigDog
124754 by: Manuel Lemos
Java listserve?
124755 by: Nancy Gacki
Mccrypt installation?
124756 by: Davy Obdam
Insert Date problem
124757 by: Chris Jackson
124769 by: Jason Wong
Searching a Table
124759 by: Stephen
124761 by: Marco Tabini
124762 by: Stephen
124763 by: Marco Tabini
Opening a file to manipulate it
124760 by: Troy May
124766 by: . Edwin
storing mysql-connection data in inc-files
124764 by: Jochen Kächelin
Re: Trouble with switch statements
124767 by: Noodle Snacks
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
I'm wanting to make a simple PHP script that converts Celsius to Farenheit, Farenheit to Celsius, Farenheit to Kelvin, and Celsius to Kelvin. I have the formula but it requires fractions. How can I use frations in PHP to multiply or divide? If you can't, how could I substitute doing so? 5/9 (F - 32) is the forumla to get Celsius to Farenheit if you need it.
Thanks,
Stephen Craton
http://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us
attached mail follows:
You gotta be kidding me, no? When did you learn decimals? I think I started
by 3rd or 4th grade ...
-----Original Message-----
From: Stephen [mailto:webmaster
melchior.us]
Sent: Saturday, November 16, 2002 1:36 PM
To: PHP List
Subject: [PHP] Fractions
I'm wanting to make a simple PHP script that converts Celsius to
Farenheit, Farenheit to Celsius, Farenheit to Kelvin, and Celsius to Kelvin.
I have the formula but it requires fractions. How can I use frations in PHP
to multiply or divide? If you can't, how could I substitute doing so? 5/9
(F - 32) is the forumla to get Celsius to Farenheit if you need it.
Thanks,
Stephen Craton
http://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got
from the person you love most." -- http://www.melchior.us
attached mail follows:
Supposing you want to display the numbers as decimal values:
$celsius = ($farenheit - 32) * 5 / 9;
Unless, of course, I did not understand your question properly.
Marco
-- ------------ php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.comOn Sat, 2002-11-16 at 13:35, Stephen wrote: > I'm wanting to make a simple PHP script that converts Celsius to Farenheit, Farenheit to Celsius, Farenheit to Kelvin, and Celsius to Kelvin. I have the formula but it requires fractions. How can I use frations in PHP to multiply or divide? If you can't, how could I substitute doing so? 5/9 (F - 32) is the forumla to get Celsius to Farenheit if you need it. > > Thanks, > Stephen Craton > http://www.melchior.us > > "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us > ---- >
> -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Well, seeing as you're in the 7th or 8th grade (at least according to your Website) - my sincere apologies ...
Just use 5.0/9.0 in your formula.
Mark C.
-----Original Message-----
From: Stephen [mailto:webmaster
melchior.us]
Sent: Saturday, November 16, 2002 1:36 PM
To: PHP List
Subject: [PHP] Fractions
I'm wanting to make a simple PHP script that converts Celsius to Farenheit, Farenheit to Celsius, Farenheit to Kelvin, and Celsius to Kelvin. I have the formula but it requires fractions. How can I use frations in PHP to multiply or divide? If you can't, how could I substitute doing so? 5/9 (F - 32) is the forumla to get Celsius to Farenheit if you need it.
Thanks, Stephen Craton http://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us
attached mail follows:
9/5 and 5/9 would be a repeating deicmal. I find fractions would be easier to multiply then a repeating deicmal. That's why I asked how to use fractions... ----- Original Message ----- From: Mark Charette To: Stephen ; PHP List Sent: Saturday, November 16, 2002 1:44 PM Subject: RE: [PHP] Fractions
Well, seeing as you're in the 7th or 8th grade (at least according to your Website) - my sincere apologies ...
Just use 5.0/9.0 in your formula.
Mark C.
-----Original Message-----
From: Stephen [mailto:webmaster
melchior.us]
Sent: Saturday, November 16, 2002 1:36 PM
To: PHP List
Subject: [PHP] Fractions
I'm wanting to make a simple PHP script that converts Celsius to Farenheit, Farenheit to Celsius, Farenheit to Kelvin, and Celsius to Kelvin. I have the formula but it requires fractions. How can I use frations in PHP to multiply or divide? If you can't, how could I substitute doing so? 5/9 (F - 32) is the forumla to get Celsius to Farenheit if you need it.
Thanks, Stephen Craton http://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us
attached mail follows:
thanks - yes I do understand the code you placed.
OK - can I take the JSP variable with a post or a get? are these just general http variables?
Jeff
"Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
news:3DD54A40.30603
webglobe.sk...
> php => javascript
> 1st way:
> <script>
> var var_name= <?= $var_value ?>
> </script>
> 2nd way:
> <input type="hidden" name="input_name" value="<?= $input_value ?>">
>
> javascript => php
> 1st way:
> location='http://server/script.php?var_name=" + js_var_name;
> 2nd way:
> form_name.input_name.value = js_var_name;
>
> hope you get the point :-)
>
> Jeff Bluemel wrote:
>
> >Can I utilize java script variables with get or post? any information on
> >integrating the 2, and passing info back & forth?
> >
> >thanks,
> >
> >Jeff
> >
> >
> >
> >
> >
>
attached mail follows:
anybody??? still haven't gotten this figure out.
Jeff
"Jeff Bluemel" <jeff
domintcom.com> wrote in message
news:20021114205959.77989.qmail
pb1.pair.com...
> OK - I got the rasmail codes from Zend.com's code library. it is working
> perfectly for my application except for one problem. the email I am using
> to send has a .pdf file attachment.
>
> I can open that PDF file up directly from the site after it is created,
but
> I cannot open the file attachment up. it seems the coding is wrong of
> something like that so that the attachment is getting corrupted.
>
> I have emailed the author for assistance, but haven't receive a response.
> I'm hoping somebody here can assist me.
>
> here is the part of code;
>
> function Attachment($attachedfile) {
> if ($attachedfile) {
> $pf=
fopen($attachedfile,"r") or die($this->ErrorOutput(9));
> $bytes=fread($pf,filesize($attachedfile));
> $file=chunk_split(base64_encode($bytes));
> fclose($pf);
> }
>
>
attached mail follows:
Hello,
On 11/16/2002 04:53 PM, Jeff Bluemel wrote: > anybody??? still haven't gotten this figure out.
You may want to try this class and mail me back if it does not work:
http://www.phpclasses.org/mimemessage
--Regards, Manuel Lemos
> > Jeff > > "Jeff Bluemel" <jeff
domintcom.com> wrote in message > news:20021114205959.77989.qmail
pb1.pair.com... > >>OK - I got the rasmail codes from Zend.com's code library. it is working >>perfectly for my application except for one problem. the email I am using >>to send has a .pdf file attachment. >> >>I can open that PDF file up directly from the site after it is created, > > but > >>I cannot open the file attachment up. it seems the coding is wrong of >>something like that so that the attachment is getting corrupted. >> >>I have emailed the author for assistance, but haven't receive a response. >>I'm hoping somebody here can assist me.
attached mail follows:
Thanks for the reply... it took me a little bit to get this worked out, but it is working perfectly now. I appreciate the assistance.
Jeff
"Manuel Lemos" <mlemos
acm.org> wrote in message
news:20021116200122.39489.qmail
pb1.pair.com...
> Hello,
>
> On 11/16/2002 04:53 PM, Jeff Bluemel wrote:
> > anybody??? still haven't gotten this figure out.
>
> You may want to try this class and mail me back if it does not work:
>
> http://www.phpclasses.org/mimemessage
>
>
> --
>
> Regards,
> Manuel Lemos
>
> >
> > Jeff
> >
> > "Jeff Bluemel" <jeff
domintcom.com> wrote in message
> > news:20021114205959.77989.qmail
pb1.pair.com...
> >
> >>OK - I got the rasmail codes from Zend.com's code library. it is
working
> >>perfectly for my application except for one problem. the email I am
using
> >>to send has a .pdf file attachment.
> >>
> >>I can open that PDF file up directly from the site after it is created,
> >
> > but
> >
> >>I cannot open the file attachment up. it seems the coding is wrong of
> >>something like that so that the attachment is getting corrupted.
> >>
> >>I have emailed the author for assistance, but haven't receive a
response.
> >>I'm hoping somebody here can assist me.
>
attached mail follows:
Only writing is an issue. PHP 4.3's bundled GD2 library supports gif-reads. And the patent actually expires in 2003 so we'll be able to roll in gif-writes next year.
-Rasmus
On Sat, 16 Nov 2002, Danny Shepherd wrote:
> Actually, GD2 can be compiled (after a patch) to read/write GIFs with LZW
> compression (the LZW algorithm is the root of the legal iffyness), but
> (AFAIK) you're only legally allowed to enable it if you live outside the US
> & Canada. AFAIK only FreeBSD's ports system does this atm.
>
>
> ----- Original Message -----
> From: "Mako Shark" <phpman2000
yahoo.com>
> To: <php-general
lists.php.net>
> Sent: Friday, November 15, 2002 7:18 PM
> Subject: [PHP] Re: GD 1.5
>
>
> > <<If the OP was concerned about such issues then
> > he/she should not be using GIF at all!>>
> >
> > This is leading me to believe that I can't use GIFs
> > because of these issues. Is this true? I know now that
> > Unisys (Unisys?) made a fuss about some compression or
> > whatever, but someone told me it was still okay to use
> > old GDs (am I naive? maybe). Is it now considered
> > piracy to use GIFs at all? Does this mean I have to
> > switch over to JPGs, even those images that compress
> > better with GIFs? I just assumed we were still
> > permitted, what with Jasc and everybody still allowing
> > it in their products. Is JPEG (or PNG) the way to go?
> > I hesitate using PNGs since they seem to be the
> > least-supported out of the 'big three'.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hey you may want to try
in page2.php :
session_start(); echo('{$_SESSION['abc']}');
Lee
"Anjali Kaur" <kaur_anjali
yahoo.com> wrote in message
news:20021116023613.17438.qmail
web14308.mail.yahoo.com...
> i want to access some variables generated in one page
> in all the other pages, so i thought of using
> $_SESSION.
>
> what i did is :
>
> in page1.php i do:
>
> $temp = 'someValue';
> session_start();
> $_SESSION['abc'] = $temp;
>
>
> in page2.php :
>
> session_start();
> echo($_SESSION['abc']);
>
>
> but i am not able to get the value of abc.
>
> please help me out. i went thru the documentation
> online but cudnt grasp much as to where i am going
> wrong.
>
> thank you.
> anjali.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com
attached mail follows:
Hi, If your register_globals is off then you will need to use $_GETand $_POST to get the data from the form.
echo $_POST['Name'];
Lee
"Chris Jackson" <spintrance7
hotmail.com> wrote in message
news:20021116071058.27524.qmail
pb1.pair.com...
> Hi all:
> Im new to php and i have an isue.
>
> php4.2.3 windows 2000 advanced server
>
>
> I create a simple form page that posts back to its self and im unable to
> retreive the posted form data to display on the page.
>
> it seems like all my GLOBAL amd SESSION stuff isnt working.
> sample code:
>
>
> <form name="form" method="post" action="thispage.php">
> Your Name<br>
> <input type="text" name="Name" value="<?PHP $Name ?>"><br>
> <input type="submit" name="Submit" value="Submit">
> </form>
>
> Im thinking that it may be a setting in the php.ini file but i dont know..
> Please help.
>
> Thanks.
>
>
attached mail follows:
OK...
I'm using base64_encode to encode a file on the linux side. however, outlook express does not seem to unencode the file properly. I'm wondering how to work around this problem.
Jeff
attached mail follows:
webmaster webmaster
harbornet.com on 11/15/02 3:47 PM wrote:
> I'm trying to enable output buffering to speed up the load time of some > of our php web pages. I've consulted the manual and enabled the > following:
The manual lacks description for this topic. Take a look at this article at Developer Shed, it got me up and running within 10 minutes.
http://www.devshed.com/Server_Side/PHP/OutputBuffering/page1.html
HTH,
ck
attached mail follows:
Hi,
I'm using php 4.2.3 with courier-imap, when I run the function imap_fetchstructure the return for 'type' and 'subtype' variables are always text/plain even when the content type says multipart/mixed, text/html, etc... The same happends with the 'parts' array, empty all the time. I tried diferent php, from 4.1.0 to 4.2.3. I'm running apache 1.3.27.
This is an example of the returning values after an imap_fetchstructure with a multipart/related content type: ---------------------- type = 0 subtype = PLAIN ifsubtype = 1 encoding = 1 parts =
imap_fetchheader: CONTENT-TYPE: MULTIPART/RELATED; BOUNDARY="---- =_NEXTPART_94915C5ABAF209EF376268C8" -----------------------
Any ideas ? Thanks!
******************************* AVISO LEGAL ********************************
Este mensaje es privado y confidencial y solamente para la persona a la que va dirigido. Si usted ha recibido este mensaje por error, no debe revelar, copiar, distribuir o usarlo en ningún sentido. Le rogamos lo comunique al remitente y borre dicho mensaje y cualquier documento adjunto que pudiera contener. No hay renuncia a la confidencialidad ni a ningún privilegio por causa de transmisión errónea o mal funcionamiento.
Cualquier opinión expresada en este mensaje pertenece únicamente al autor remitente y no representa necesariamente la opinión de GALFIN S.A. (Galfín Sociedad de Bolsa) a no ser que expresamente se diga y el remitente esté autorizado para hacerlo. Los correos electrónicos no son seguros, no garantizan la confidencialidad ni la correcta recepción de los mismos dado que pueden ser interceptados, manipulados, destruidos, llegar con demora o incompletos o con virus. GALFIN S.A. (Galfín Sociedad de Bolsa) no se hace responsable de los cambios, alteraciones, errores u omisiones que pudieran hacerse al mensaje una vez enviado. Este mensaje sólo tiene una finalidad de información y no debe interpretarse como una oferta de venta o de compra de valores ni de instrumentos financieros relacionados. (llámese orden de pago, autorización de débito, etc).-
***************************************************************************
attached mail follows:
Dear all
I'm trying to create a search function that can check the current day in a calendar against a mysql database where there is a startdate and enddate and if the date is there then colour code the cell in the calendar.
I have tried to use the following command
$eventQuery = "SELECT title FROM prestigecal WHERE '$sql_currentday' BETWEEN startdate AND enddate;";
The database has an ID - title - startdate - enddate
This seems to work BUT if the date in the database is a single number i.e. 0 to 9 it cannot dispaly it and also if the startdate or endate is a 10, 20 or 30 it also thinks that it is a 1, 2or 3
Just in case it helps the full codede for this section is as follows :
/snip $sql_currentday = "$year-$month-$zz"; $eventQuery = "SELECT title FROM prestigecal WHERE '$sql_currentday' BETWEEN startdate AND enddate;"; $eventExec = mysql_query($eventQuery); while($row = mysql_fetch_array($eventExec)) { if (strlen($row["title"]) > 0) { echo "<td bgcolor=\"red\" valign=\"middle\" align=\"center\"><font size=\"1px\" face=\"Verdana\">$zz</font></td>\n"; $result_found = 1; /snip
Thanks for any advice.
Ray
attached mail follows:
This is how i deal with dates...
$date = date in the database. $today = strtotime( gmdate( "Y-m-d" ) ); $spd = 60 * 60 * 24; // seconds per day $fdate = strtotime( substr( $date, 0, 10 ) ); $future = ( $fdate - $today ) / $spd;
do the comparision with $future and it should work for yeah...
Basically, I convert it all to seconds and do the math...
On Sat, 2002-11-16 at 20:10, Ray Healy (Data Net Services) wrote: > Dear all > > I'm trying to create a search function that can check the current day in a calendar against a mysql database where there is a startdate and enddate and if the date is there then colour code the cell in the calendar. > > I have tried to use the following command > > $eventQuery = "SELECT title FROM prestigecal WHERE '$sql_currentday' BETWEEN startdate AND enddate;"; > > The database has an ID - title - startdate - enddate > > This seems to work BUT if the date in the database is a single number i.e. 0 to 9 it cannot dispaly it and also if the startdate or endate is a 10, 20 or 30 it also thinks that it is a 1, 2or 3 > > Just in case it helps the full codede for this section is as follows : > > /snip > $sql_currentday = "$year-$month-$zz"; > $eventQuery = "SELECT title FROM prestigecal WHERE '$sql_currentday' BETWEEN startdate AND enddate;"; > $eventExec = mysql_query($eventQuery); > while($row = mysql_fetch_array($eventExec)) { > if (strlen($row["title"]) > 0) { > echo "<td bgcolor=\"red\" valign=\"middle\" align=\"center\"><font size=\"1px\" face=\"Verdana\">$zz</font></td>\n"; > $result_found = 1; > /snip > > > Thanks for any advice. > > Ray
-- .: B i g D o g :.
attached mail follows:
Hello,
I've managed to get a series of javascripts to work exactly as I wanted. They check all and uncheck all checkboxes with a single click of a control checkbox.
Unfortunately, the information has to be sent to php. As soon as I add the [] brackets to an input name, the javascript no longer functions. I'll look up a javascript mailing list next, but I figured there must be some other way to get php to recieve the data and convert it to an array.
Does anyone have an idea how I can make the php script gather all the multiple &browser=lynx&browser=mosaic&browser=explorer instead of only the last entry?
Thanks for any help,
Keith
attached mail follows:
Hi Keith:
> Unfortunately, the information has to be sent to php. As soon as I > add the [] brackets to > an input name, the javascript no longer functions. I'll look up a > javascript mailing list next, > but I figured there must be some other way to get php to recieve the > data and convert it > to an array. > If your checkboxes all have the same name i.e. group, then for php to see them, you have to name them group[]. Then you can use something like this to get them out of the array:
if (count($group) > 0){ for($i=0; $i < count($group); $i++) { $sql = "INSERT INTO groupImage VALUES "; $sql .= "(0, '$imageID', '$group[$i]')"; mysql_query($sql) or die(mysql_error()); //echo "linked \"$imageName\" to groupID=".$group[$i]." in gi table<br>"; } } you might have to change the js. If you are accessing form elements in js then you can use something like: forms.elements['group[]'] to access the js checkbox array by name.
> Does anyone have an idea how I can make the php script gather all the > multiple > &browser=lynx&browser=mosaic&browser=explorer > instead of only the last entry?
AFAIK varName[] is the only way to go if you want the checkboxes in an array.
I suppose you could just give a unique name to each checkbox. I believe that PHP will have a value for those checkboxes that are checked. Then you could loop through your set of checkbox vars and see which have a value.
HTH
David
attached mail follows:
Put the brackets for php...
<input type="whatever" name="myname[]" value="somevalue">
Now, to loop through the elements in JavaScript, you're going to have to do something like this....
var test = false; for ( i = 0; i < document.forms[0].elements['myname[]'].length; i++ ) //code for whatever you want to do here //if you want to check if at least one of the boxes are checked if ( document.forms[0].elements['myname[]'][i].checked ) { test = true; } }
then you can just check to see if "test" is true or false...true if at least on box has been checked, false if none of the boxes have been checked.
HTH
Keith Spiller wrote: > Hello, > > I've managed to get a series of javascripts to work exactly as I wanted. > They check all and uncheck all checkboxes with a single click of a control checkbox. > > Unfortunately, the information has to be sent to php. As soon as I add the [] brackets to > an input name, the javascript no longer functions. I'll look up a javascript mailing list next, > but I figured there must be some other way to get php to recieve the data and convert it > to an array. > > Does anyone have an idea how I can make the php script gather all the multiple > &browser=lynx&browser=mosaic&browser=explorer > instead of only the last entry? > > Thanks for any help, > > > Keith >
-- By-Tor.com It's all about the Rush http://www.by-tor.com
attached mail follows:
hi, i was asking if there should be difference in functionality of PH string functions (not mb_) between the two following configurations:
the company: PHP 4.2.1, Apache 1.3.20, linux me: PHP 4.2.3, Apache 1.3.24, windows
my conf the company's conf thread safety Enabled Disabled allow_call_time_pass_reference off On implicit_flush on off log_errors off on magic_qoutes_gpc off on register_globals off on
thanx
khalid
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
attached mail follows:
Hello,
"Khalid El-Kary" <khalid_kary
hotmail.com> wrote:
> hi,
> i was asking if there should be difference in functionality of PH string
> functions (not mb_) between the two following configurations:
>
> the company: PHP 4.2.1, Apache 1.3.20, linux
> me: PHP 4.2.3, Apache 1.3.24, windows
>
> my conf the company's conf
> thread safety Enabled Disabled
> allow_call_time_pass_reference off On
> implicit_flush on off
> log_errors off on
> magic_qoutes_gpc off on
> register_globals off on
Since I haven't seen any of your code, all I can do is guess.
So, I think it would be better if you just (1) Edit your php.ini. Make the setting the same as the company's. (Later, you might want to look at the way they compiled their php as well.) (2) After you finish editing, restart your web server. Then, (3) Try running your php scripts again.
IF you are able to run the scripts without any problem THEN the problem lies somewhere else...
- E
attached mail follows:
On Sunday 17 November 2002 06:27, Khalid El-Kary wrote: > hi, > i was asking if there should be difference in functionality of PH string > functions (not mb_) between the two following configurations: > > the company: PHP 4.2.1, Apache 1.3.20, linux > me: PHP 4.2.3, Apache 1.3.24, windows
> magic_qoutes_gpc off on
This setting can potentially make a difference. BTW, where possible, please use copy and paste. "magic_qoutes_gpc" should be "magic_quotes_gpc". Introducing spurious typos into does not help in diagnosing anybody's problems.
Why don't you say exactly _what_ problems you're having?
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Modern man is the missing link between apes and human beings. */
attached mail follows:
I'm looking for a good class for forms that will work with register_globals off. I was planning to modify Manuel Lemos's class, but it turned out to be too big of a task. Any ideas?
-- 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.
attached mail follows:
try using pear...
On Sat, 2002-11-16 at 22:53, Leif K-Brooks wrote: > I'm looking for a good class for forms that will work with > register_globals off. I was planning to modify Manuel Lemos's class, > but it turned out to be too big of a task. Any ideas? > > -- > 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.
-- .: B i g D o g :.
attached mail follows:
Hello,
On 11/16/2002 08:53 PM, Leif K-Brooks wrote: > I'm looking for a good class for forms that will work with > register_globals off. I was planning to modify Manuel Lemos's class, > but it turned out to be too big of a task. Any ideas? >
If you wait a few more days, I'll upload the new version that deals with that. It is done but I need to update the documentation as well for a new feature regarding checkbox validated that had requests for.
--Regards, Manuel Lemos
attached mail follows:
Hi
Besides the coding I've done in PHP I've been on a Java project for several weeks now. I'm wondering if anyone knows of a good listserve for Java coding related questions like this one.
Thanks
n Gacki
nhgacki
concentric.net
attached mail follows:
Hi people
I have a problem installing some extensions on a windows XP machine (Apache 2.0.40 and PHP 4.2.3/MySql 3.23.52). I now have most of the extensions i need installed, although there are a few ones wich i dont get to work? Any idea`s? ;extension=php_mcrypt.dll doesnt work and stil produces a error message.. Thanks
Best regards,
Davy Obdam
mailto:info
davyobdam.com
attached mail follows:
can someone help out a nubIe here - im trying to insert a Date into a MySql table and im having error messages - can you take a look at http://66.139.147.233/thispage.php submit a guest and comment to see error.
attached mail follows:
On Sunday 17 November 2002 10:49, Chris Jackson wrote: > can someone help out a nubIe here - im trying to insert a Date into a MySql > table and im having error messages - can you take a look at > http://66.139.147.233/thispage.php submit a guest and comment to see > error.
Why don't you copy and paste the error here?
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* "The fundamental principle of science, the definition almost, is this: the sole test of the validity of any idea is experiment." -- Richard P. Feynman */
attached mail follows:
I need to make a search engine for my site. Instead of making a table with all the words of my content of my reviews, I need to make it simple. How could you search a table of articles (let's say game_reviews) by comparing keywords the user types in, to the text of the article? All the tutorials I can find make a table with a list of words of every single keyword...
Thanks, Stephen Craton http://www.melchior.us
"Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us
attached mail follows:
Well, if you're using a database, say MySQL, you can look at FREETEXT indexes and queries. If you want to index your web pages, you should be looking at a search engine that works with your web server. For example, ht:dig (http://www.htdig.org/) works with Apache.
Marco
-- ------------ php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.comOn Sat, 2002-11-16 at 22:40, Stephen wrote: > I need to make a search engine for my site. Instead of making a table with all the words of my content of my reviews, I need to make it simple. How could you search a table of articles (let's say game_reviews) by comparing keywords the user types in, to the text of the article? All the tutorials I can find make a table with a list of words of every single keyword... > > > Thanks, > Stephen Craton > http://www.melchior.us > > "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us > ---- >
> -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I don't have control of my server, it's hosted. All my content is in a MySQL database and is outputed through a php page that selects the information from an id variable passed through the URL...
----- Original Message -----
From: "Marco Tabini" <marcot
tabini.ca>
To: "Stephen" <webmaster
melchior.us>
Cc: "PHP List" <php-general
lists.php.net>
Sent: Saturday, November 16, 2002 10:38 PM
Subject: Re: [PHP] Searching a Table
> Well, if you're using a database, say MySQL, you can look at FREETEXT > indexes and queries. If you want to index your web pages, you should be > looking at a search engine that works with your web server. For example, > ht:dig (http://www.htdig.org/) works with Apache. > > > Marco > > -- > ------------ > php|architect - The magazine for PHP Professionals > The first monthly worldwide magazine dedicated to PHP programmers > Check us out on the web at http://www.phparch.com > > > > On Sat, 2002-11-16 at 22:40, Stephen wrote: > > I need to make a search engine for my site. Instead of making a table with all the words of my content of my reviews, I need to make it simple. How could you search a table of articles (let's say game_reviews) by comparing keywords the user types in, to the text of the article? All the tutorials I can find make a table with a list of words of every single keyword... > > > > > > Thanks, > > Stephen Craton > > http://www.melchior.us > > > > "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us > > ---- > > > > > -- > > 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 > >
attached mail follows:
Ok, then you can use FULLTEXT queries.
Take a look here:
http://www.mysql.com/doc/en/Fulltext_Search.html
Marco
On Sat, 2002-11-16 at 22:49, Stephen wrote:
> I don't have control of my server, it's hosted. All my content is in a MySQL
> database and is outputed through a php page that selects the information
> from an id variable passed through the URL...
>
>
> ----- Original Message -----
> From: "Marco Tabini" <marcot
tabini.ca>
> To: "Stephen" <webmaster
melchior.us>
> Cc: "PHP List" <php-general
lists.php.net>
> Sent: Saturday, November 16, 2002 10:38 PM
> Subject: Re: [PHP] Searching a Table
>
>
> > Well, if you're using a database, say MySQL, you can look at FREETEXT
> > indexes and queries. If you want to index your web pages, you should be
> > looking at a search engine that works with your web server. For example,
> > ht:dig (http://www.htdig.org/) works with Apache.
> >
> >
> > Marco
> >
> > --
> > ------------
> > php|architect - The magazine for PHP Professionals
> > The first monthly worldwide magazine dedicated to PHP programmers
> > Check us out on the web at http://www.phparch.com
> >
> >
> >
> > On Sat, 2002-11-16 at 22:40, Stephen wrote:
> > > I need to make a search engine for my site. Instead of making a table
> with all the words of my content of my reviews, I need to make it simple.
> How could you search a table of articles (let's say game_reviews) by
> comparing keywords the user types in, to the text of the article? All the
> tutorials I can find make a table with a list of words of every single
> keyword...
> > >
> > >
> > > Thanks,
> > > Stephen Craton
> > > http://www.melchior.us
> > >
> > > "Life is a gift from God. Wasting it is like destroying a gift you got
> from the person you love most." -- http://www.melchior.us
> > > ----
> > >
> >
> > > --
> > > 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
> >
> >
>
attached mail follows:
Hello,
Extreme newbie here (halfway through my first book :) ). I need to open a file, read the whole file into a variable, manipulate it, and then echo it to the screen. I'm doing it right from my book and it's not working. Here's what I have now:
<? $header = fopen("header.html","r");
echo $header; ?>
It writes "Resource id #1" at the top of the page. What is that?! :)
I have also tried using file(). That displays "Array" on the screen. What am I doing wrong?
Thanks!
Troy
attached mail follows:
Hello,
"Troy May" <tmay
pcsympathy.com> wrote:
> Hello,
>
> Extreme newbie here (halfway through my first book :) ). I need to open a
> file, read the whole file into a variable, manipulate it, and then echo it
> to the screen. I'm doing it right from my book and it's not working.
> Here's what I have now:
>
> <? $header = fopen("header.html","r");
>
> echo $header; ?>
>
> It writes "Resource id #1" at the top of the page. What is that?! :)
Check the manual:
http://www.php.net/manual/en/function.fopen.php
You're echoing the result of fopen() which is an "int"--you have to make sure that you're using the function properly ;)
> I have also tried using file(). That displays "Array" on the screen. What > am I doing wrong?
I think it's because you're echoing the result of file() which is an array. You cannot just "echo $the_array;" Try print_r($the_array) and you'll see a different result--though I doubt it's the one you want to see :)
Check the manual again:
http://www.php.net/manual/en/function.file.php
Anyway, I think you're looking for something like this:
http://www.php.net/manual/en/function.file-get-contents.php
Esp. the "User Contributed Notes".
HTH,
- E
attached mail follows:
What is the most secure way to store mysql-username / mysql-password data in xxx.inc.php files so that only one hosting-client can read it with phps' file, include, require function?
-- Jochen Kaechelin
attached mail follows:
This appears to be a register globals problem....
replace "switch($select)" with "switch($_GET['select'])".
For information on register globals and why it has been turned off in later releases see this pagee:
http://www.php.net/manual/en/security.registerglobals.php
There is nothing syntactically wrong with the switch statment you are just refering to an non-existant variable... I imaginge this came from an outdated book or tutorial.
-- JJ Harrison lizner2002yahoo.com.au
"Edward Kehoe" <emkehoe
learn.senecac.on.ca> wrote in message news:20021025174451.82626.qmail
pb1.pair.com... > Ok...I just recently installed Apache1 and PHP 4.2.3 on my computer and I've > configured everything. However, I can't seem to get my switch statements to > accept variable values from the address bar. So if I type in: > > http://www.my-site.com/index.php?select=1 > > It displays the text in the default part of the switch statement. I also > seem to get the following error message every time: > > Notice: Undefined variable: select in c:\apache\apache\htdocs\index.php on > line 51 > > Here's the code for my switch statement as well: > > switch($select) > { > case 1: print "About Stuff Goes Here."; > break; > case 2: print "Music Goes Here."; > break; > default:print "Testing..."; > break; > } > > >
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]