php-general Digest 14 Feb 2003 20:31:09 -0000 Issue 1883

Topics (messages 135563 through 135599):

What's the proper way to open a file? File access permissions?
        135563 by: Dunkel
        135594 by: Jason Wong

php4ts.dll
        135564 by: Kristyna Tuckova
        135580 by: Philip Olson

How do I set the timezone on redhat via PHP? Ie. How to convert GMT to symbolic link?
        135565 by: Daevid Vincent

Re: Templates
        135566 by: rush
        135584 by: David Eisenhart

Re: programming question
        135567 by: David T-G

Re: Use GnuPG with PHP?
        135568 by: David T-G

Threads in PHP? URL call from PHp?
        135569 by: Steve Vernon

basic question
        135570 by: Tyler Durdin

class problem
        135571 by: Jurek Mizgiert

Anyway to interface to myob
        135572 by: JJ Harrison

geek fishing stuff
        135573 by: Anthony Ritter
        135592 by: Jason Wong
        135596 by: Anthony Ritter
        135597 by: John Nichel

Re: Delivery Status Notification (Failure)]
        135574 by: John Nichel
        135576 by: Lucas Lain

XML
        135575 by: Jono Bacon

Problems sending mail
        135577 by: Jono Bacon

Keeping site metrics
        135578 by: Daniel Guerrier
        135579 by: olinux

snmp problems
        135581 by: Razvan Cosma

Re: Login system using PHP/MySql
        135582 by: David Eisenhart

HTML Mail problem
        135583 by: Mark McCulligh

How does PHP transforms an integer on a string? like "3" onto "three"
        135585 by: Francisco
        135586 by: Leif K-Brooks

text to image
        135587 by: Alex Shi
        135589 by: Hugh Danaher

Images
        135588 by: Lucas Lain
        135591 by: Jason Wong
        135593 by: Lucas Lain

Re: image creation error
        135590 by: Jason Wong

calculating kilobytes
        135595 by: joe
        135598 by: Jason Wong

need apostrophe solution
        135599 by: drparker

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- Hello all!

How do I ensure that all file access permissions are allowed? What is the proper way to do it?

- I tried to 'fopen' an existing text file but got "Permission denied" error.
- I tried different parameters, same error
- I tried to use 'chmode', same thing

Same thing with different servers so I'm obviously doing something wrong. Everything else works fine but the writing doesn't.

The (writing)code is very basic
(the textfile.txt exists before this):

<?php

$filename = "textfile.txt";
$somecontent = "the text to add\n";
$handle = fopen($filename, 'a+w');
fwrite($handle, $somecontent);
fclose($handle);

?>

So, what should I do to get it work?


Yours,

Paul Dunkel
--
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
On Friday 14 February 2003 16:36, Dunkel wrote:

> How do I ensure that all file access permissions are allowed? What is
> the proper way to do it?
>
> - I tried to 'fopen' an existing text file but got "Permission denied"
> error.
> - I tried different parameters, same error
> - I tried to use 'chmode', same thing
>
> Same thing with different servers so I'm obviously doing something
> wrong. Everything else works fine but the writing doesn't.
>
> The (writing)code is very basic
> (the textfile.txt exists before this):
>
>         <?php
>
>         $filename = "textfile.txt";
>         $somecontent = "the text to add\n";
>         $handle = fopen($filename, 'a+w');
>         fwrite($handle, $somecontent);
>         fclose($handle);
>
>         ?>
>
> So, what should I do to get it work?

Try using the /fullpath/to/the/file. If you're in doubt about the permissions 
try writing to the system temp directory (/tmp for example).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Whatever occurs from love is always beyond good and evil.
                -- Friedrich Nietzsche
*/

--- End Message ---
--- Begin Message ---
______________________________________________________________
> Od: Gabor Hojtsy <[EMAIL PROTECTED]>
> Komu: Kristyna Tuckova <[EMAIL PROTECTED]>
> CC: [EMAIL PROTECTED]
> Datum: Thu, 13 Feb 2003 23:24:18 +0100
> Předmět: Re: php4ts.dll
>
> Please direct such questions to [EMAIL PROTECTED]
> 
> Goba [one [EMAIL PROTECTED]]
> 
> Kristyna Tuckova wrote:
> > Hi.
> > 
> > I use php and apache and now I have a problem. If I try to open 
some 
> > file with php script, it says to me:
> > 
> > File php4ts.dll is conected to not existig export OLEAUT32.DLL:77
> > 
> > I have tryed to install everything once more, but it didn't help. 
> > Could you be so pleased and help me?
> > 
> > thank you very much. 
> > 
> > Kristyna
> > 
> > --------------------
> > PŘÍLOHA O DANÍCH! Interaktivní on-line formuláře pro daňová 
přiznání a tiskopisy ke stažení, adresář finančních úřadů na 
http://finance.centrum.cz/dane2
> > 
> > 
> > 
> > 
> 
> 


--------------------
Poslouchejte Radio Impuls a vyhrajte víkendy pro dva v evropských
metropolích. Více na Radiu Impuls a http://www.netimpuls.cz!



--- End Message ---
--- Begin Message ---
Read this faqt:

  The PHP4TS.DLL file is linked to missing export 
  OLEAUT32.DLL:77 - Please help!!!
  ---------------------------------------------------------------
  http://www.faqts.com/knowledge_base/view.phtml/aid/15670/fid/30

If you happen to be using Win95, don't, because PHP does
not support Win95 as of PHP 4.3.0.

Regards,
Philip

p.s. google.com is your friend.



On Fri, 14 Feb 2003, Kristyna Tuckova wrote:

> 
> ______________________________________________________________
> > Od: Gabor Hojtsy <[EMAIL PROTECTED]>
> > Komu: Kristyna Tuckova <[EMAIL PROTECTED]>
> > CC: [EMAIL PROTECTED]
> > Datum: Thu, 13 Feb 2003 23:24:18 +0100
> > Předmět: Re: php4ts.dll
> >
> > Please direct such questions to [EMAIL PROTECTED]
> > 
> > Goba [one [EMAIL PROTECTED]]
> > 
> > Kristyna Tuckova wrote:
> > > Hi.
> > > 
> > > I use php and apache and now I have a problem. If I try to open 
> some 
> > > file with php script, it says to me:
> > > 
> > > File php4ts.dll is conected to not existig export OLEAUT32.DLL:77
> > > 
> > > I have tryed to install everything once more, but it didn't help. 
> > > Could you be so pleased and help me?
> > > 
> > > thank you very much. 
> > > 
> > > Kristyna
> > > 
> > > --------------------
> > > PŘÍLOHA O DANÍCH! Interaktivní on-line formuláře pro daňová 
> přiznání a tiskopisy ke stažení, adresář finančních úřadů na 
> http://finance.centrum.cz/dane2
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> 
> 
> --------------------
> Poslouchejte Radio Impuls a vyhrajte víkendy pro dva v evropských
> metropolích. Více na Radiu Impuls a http://www.netimpuls.cz!
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Given that I have a GMT offset via the select box below, how the hell do
I turn that into a symbolic link to one of these files? How do I know
which file to link too?!!! UGH. This is such a stupid way to set the
timezone, why didn't RedHat just have a file with the offset in it?
Something like "echo -0800GMT > /etc/timezone" would have been
sufficient doncha think?

PHP's date("O") function = "-0800".

[dae51d=pts/0]12:50am@daevid:{/etc}> ll /etc/localtime 
lrwxrwxrwx    1 root     root           39 Dec 13 11:26 /etc/localtime
-> /usr/share/zoneinfo/America/Los_Angeles

[dae51d=pts/0]12:50am@daevid:{/etc}> ls /usr/share/zoneinfo/
Africa      Australia  Cuba     Etc      GMT0       Iceland      Japan
MST      Poland      right      UCT        zone.tab
America     Brazil     EET      Europe   GMT-0      Indian
Kwajalein  MST7MDT  Portugal    ROC        Universal  Zulu
Antarctica  Canada     Egypt    Factory  GMT+0      Iran         Libya
Navajo   posix       ROK        US
Arctic      CET        Eire     GB       Greenwich  iso3166.tab  MET
NZ       posixrules  Singapore  UTC
Asia        Chile      EST      GB-Eire  Hongkong   Israel       Mexico
NZ-CHAT  PRC         SystemV    WET
Atlantic    CST6CDT    EST5EDT  GMT      HST        Jamaica      Mideast
Pacific  PST8PDT     Turkey     W-SU

And since I couldn't figure out a graceful way to do this
programatically, I just typed them all out.

<TR><TD class=Menu>Time Zone</TD><TD>
<?php $tz = date("O"); echo "tz = ".$tz."<BR>";?>
<select name="timezone">
        <option value='-1200'<?php if ($tz == "-1200") echo " SELECTED";
?>>GMT -12 Hours</option>
        <option value='-1130'<?php if ($tz == "-1130") echo " SELECTED";
?>>GMT -11.5 Hours</option>
        <option value='-1100'<?php if ($tz == "-1100") echo " SELECTED";
?>>GMT -11 Hours</option>
        <option value='-1030'<?php if ($tz == "-1030") echo " SELECTED";
?>>GMT -10.5 Hours</option>
        <option value='-1000'<?php if ($tz == "-1000") echo " SELECTED";
?>>GMT -10 Hours</option>
        <option value='-0930'<?php if ($tz == "-0930") echo " SELECTED";
?>>GMT -9.5 Hours</option>
        <option value='-0900'<?php if ($tz == "-0900") echo " SELECTED";
?>>GMT -9 Hours</option>
        <option value='-0830'<?php if ($tz == "-0830") echo " SELECTED";
?>>GMT -8.5 Hours</option>
        <option value='-0800'<?php if ($tz == "-0800") echo " SELECTED";
?>>GMT -8 Hours</option>
        <option value='-0730'<?php if ($tz == "-0730") echo " SELECTED";
?>>GMT -7.5 Hours</option>
        <option value='-0700'<?php if ($tz == "-0700") echo " SELECTED";
?>>GMT -7 Hours</option>
        <option value='-0630'<?php if ($tz == "-0630") echo " SELECTED";
?>>GMT -6.5 Hours</option>
        <option value='-0600'<?php if ($tz == "-0600") echo " SELECTED";
?>>GMT -6 Hours</option>
        <option value='-0530'<?php if ($tz == "-0530") echo " SELECTED";
?>>GMT -5.5 Hours</option>
        <option value='-0500'<?php if ($tz == "-0500") echo " SELECTED";
?>>GMT -5 Hours</option>
        <option value='-0430'<?php if ($tz == "-0430") echo " SELECTED";
?>>GMT -4.5 Hours</option>
        <option value='-0400'<?php if ($tz == "-0400") echo " SELECTED";
?>>GMT -4 Hours</option>
        <option value='-0330'<?php if ($tz == "-0330") echo " SELECTED";
?>>GMT -3.5 Hours</option>
        <option value='-0300'<?php if ($tz == "-0300") echo " SELECTED";
?>>GMT -3 Hours</option>
        <option value='-0230'<?php if ($tz == "-0230") echo " SELECTED";
?>>GMT -2.5 Hours</option>
        <option value='-0200'<?php if ($tz == "-0200") echo " SELECTED";
?>>GMT -2 Hours</option>
        <option value='-0130'<?php if ($tz == "-0130") echo " SELECTED";
?>>GMT -1.5 Hours</option>
        <option value='-0100'<?php if ($tz == "-0100") echo " SELECTED";
?>>GMT -1 Hours</option>
        <option value='0000'<?php if ($tz == "0000") echo " SELECTED";
?>>GMT 0 Hours</option>
        <option value='0030'<?php if ($tz == "0030") echo " SELECTED";
?>>GMT +0.5 Hours</option>
        <option value='0100'<?php if ($tz == "0100") echo " SELECTED";
?>>GMT +1 Hours</option>
        <option value='0130'<?php if ($tz == "0130") echo " SELECTED";
?>>GMT +1.5 Hours</option>
        <option value='0200'<?php if ($tz == "0200") echo " SELECTED";
?>>GMT +2 Hours</option>
        <option value='0230'<?php if ($tz == "0230") echo " SELECTED";
?>>GMT +2.5 Hours</option>
        <option value='0300'<?php if ($tz == "0300") echo " SELECTED";
?>>GMT +3 Hours</option>
        <option value='0330'<?php if ($tz == "0330") echo " SELECTED";
?>>GMT +3.5 Hours</option>
        <option value='0400'<?php if ($tz == "0400") echo " SELECTED";
?>>GMT +4 Hours</option>
        <option value='0430'<?php if ($tz == "0430") echo " SELECTED";
?>>GMT +4.5 Hours</option>
        <option value='0500'<?php if ($tz == "0500") echo " SELECTED";
?>>GMT +5 Hours</option>
        <option value='0530'<?php if ($tz == "0530") echo " SELECTED";
?>>GMT +5.5 Hours</option>
        <option value='0600'<?php if ($tz == "0600") echo " SELECTED";
?>>GMT +6 Hours</option>
        <option value='0630'<?php if ($tz == "0630") echo " SELECTED";
?>>GMT +6.5 Hours</option>
        <option value='0700'<?php if ($tz == "0700") echo " SELECTED";
?>>GMT +7 Hours</option>
        <option value='0730'<?php if ($tz == "0730") echo " SELECTED";
?>>GMT +7.5 Hours</option>
        <option value='0800'<?php if ($tz == "0800") echo " SELECTED";
?>>GMT +8 Hours</option>
        <option value='0830'<?php if ($tz == "0830") echo " SELECTED";
?>>GMT +8.5 Hours</option>
        <option value='0900'<?php if ($tz == "0900") echo " SELECTED";
?>>GMT +9 Hours</option>
        <option value='0930'<?php if ($tz == "0930") echo " SELECTED";
?>>GMT +9.5 Hours</option>
        <option value='1000'<?php if ($tz == "1000") echo " SELECTED";
?>>GMT +10 Hours</option>
        <option value='1030'<?php if ($tz == "1030") echo " SELECTED";
?>>GMT +10.5 Hours</option>
        <option value='1100'<?php if ($tz == "1100") echo " SELECTED";
?>>GMT +11 Hours</option>
        <option value='1130'<?php if ($tz == "1130") echo " SELECTED";
?>>GMT +11.5 Hours</option>
        <option value='1200'<?php if ($tz == "1200") echo " SELECTED";
?>>GMT +12 Hours</option>
</select>
</TR>

--- End Message ---
--- Begin Message ---
"Darren Young" <[EMAIL PROTECTED]> wrote in message
000e01c2d3b3$a88217e0$[EMAIL PROTECTED]">news:000e01c2d3b3$a88217e0$[EMAIL PROTECTED]...
>
> I'm looking around for some options on using templates with PHP. I've
> used several Perl solutions in the past, but never tried it in PHP.
> Digging on the web yields several options so I'd love some thoughts or
> comments. The real driver is that the basic site design could change
> over time and I'd like to have the basic HTML in the templates, and the
> real logic in the PHP code.

Hi,

take a look at the TemplateTamer (link is in the sig). Aside from beeing
just template engine, it commes with complete environment that eases many
chores while programming with templates. It is very easy to see the
structure of your templates, and to use them. Also TT offers very strong
separation of templates and logic, and does not suffer from code creeping
back into the templates.

rush
--
http://www.templatetamer.com/



--- End Message ---
--- Begin Message ---
yeh, I'd totally agree with this. Smarty is fantastic

 The best one imho in PHP is Smarty.
> I'd rank it up there with Template::Toolkit. Take a look:
>
> http://smarty.php.net/
>



--- End Message ---
--- Begin Message ---
Thomas --

...and then Thomas Moore said...
% 
...
% showMasterCategories($year, $model_id, $syear_model_id, $keyword, $make_id,
% $display_mode, $catid)
% {
%       $category_array2[$i] = getParent($category_id, $year_model_id, $i, $catid);
% }
% 
% 
% function getGrandParent($cat_id, $year_model_id, $x) {
...

Are you actually using getGrandParent, or where is your getParent code?
If the former, why are you passing $catid to getGrandParent if it's not
expecting it?

Let's make sure we're working with the right code before we try to debug ;-)


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg96953/pgp00000.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
Mike --

...and then MIKE YRABEDRA said...
% 
% I want to be able to encrypt a block of text using a passphrase. Then when I
% get the email, I just need to unlock it using that passphrase (no keys...i
% think).

Then it has nothing to do with GnuPG.  Not only did you hijack this
thread, your subject isn't even meaningful!


% 
% Can anyone tell me how to do this in PHP code?

Let's first figure out what you actually want to do :-)  I would say that
the easiest way to encrypt and decrypt is certainly with gpg, though
others might not.  I took a quick surf through the manual and looked at
the mcrypt functions and they will let you enter a crypt phrase and
transform the data; maybe that's what you want.


% 
% TIA


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg96953/pgp00001.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
Hiya,
    Perhaps I don't mean threads!

    Basically I have a PHP script which is in a website, and runs when a
certain input is recieved and it is quite complicated, and may take quite a
time to finish, as it will be sending quite a few emails. The emails do not
have to be sent straight away, and the emails are all customised with date
from the database.

    What I could do I suppose is to call set_time_limit(0) to stop the
script timing out, but I don't want to have the user waiting for the script
to finish before he/she sees the next page.

    What are the options? I was thinking I could:

        1- Run another script using the command line version, system call.
But it is going live on Linux, but tested on Windows. And don't want to have
to alter the code for the live version. Think you have to call PHP
differently on the two platforms.
        2- Do some sort of URL call from the PHP code? Is this possible. I
mean like call a script, and pass arguements in the URL. And just ignore it,
it can take as long as it wants, sort of do it in a seperate thread.
        3- Somehow ask for some specific PHP code to work in a seperate
thread.

    Is this possible? Any other ideas? Which is the best way? What is the
PHP way!

    If I was doing something like this in Java, probably set a class running
in another thread.

    Many thanks,

    Steve



--- End Message ---
--- Begin Message --- What is the most secure way to access a mysql db with a php script? And could someone provide an example? What are the best password practices for the script to connect to the mysql db? Also, how should I set the directory permissions for the html pages with php scripts?





_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

--- End Message ---
--- Begin Message ---
Hello,

I have a problem. Here is code:

<?

class Obj1 {

 var $p1;
 var $p2;

 function Obj1 ($p1, $p2) {
  $this->p1 = $p1;
  $this->p2 = $p2;
 }

 function getP1() {
  return $this->p1;
 }

 function setP1($p1) {
  $this->p1 = $p1;
 }

 function getP2() {
  return $this->p2;
 }

 function setP2($p2) {
  $this->p2 = $p2;
 }

 function toString() {
  return "p1=" . $this->p1 . "; p2=" . $this->p2;
 }

}

class Obj2 {

 var $p1;
 var $p2;

 var $obj1;

 function Obj2 () {
 }

 function init($p1, $p2, $obj1) {
  $this->p1 = $p1;
  $this->p2 = $p2;
  $this->obj1 = $obj1;
 }


 function getP1() {
  return $this->p1;
 }

 function setP1($p1) {
  $this->p1 = $p1;
 }

 function getP2() {
  return $this->p2;
 }

 function setP2($p2) {
  $this->p2 = $p2;
 }

 function getObj1() {
  return $this->obj1;
 }

 function setObj1($obj1) {
  $this->obj1 = $obj1;
 }

 function toString() {
  return "p1=" . $this->p1 . "; p2=" . $this->p2 . "; obj1=" .
$this->obj1->toString();
 }

}

$objs[] = new Obj1("jurek", "mizgiert");
$objs[] = new Obj1("marta", "wegner");
$objs[] = new Obj1("tomasz", "zdybicki");
$objs[] = new Obj1("artur", "milczarek");

$obj2 = new Obj2();
$tmp = Array();
for ($i = 0; $i < count($objs); $i++) {
 $obj2->init($i, $i, $objs[$i]);
 $tmp[] = $obj2;
 print ($i+1) . ". " . $obj2->toString() . " | ";

 $o = $tmp[$i];
 $o2 = $o->getObj1();
 print ($i+1) . ". p1=" . $o->getP1() . "; p2=" . $o->getP2() . "; obj1=p1="
.  $o2->getP1() . "; p2=" . $o2->getP2() . "<br>";
}

print "<hr>";
print count($tmp);
print "<hr>";

for ($i = 0; $i < count($tmp); $i++) {
 $o = $tmp[$i];
 $o2 = $o->getObj1();
 print ($i+1) . ". p1=" . $o->getP1() . "; p2=" . $o->getP2() . "; obj1=p1="
.  $o2->getP1() . "; p2=" . $o2->getP2() . "<br>";
}

?>


Class Obj1 have 2 fields with set-get methods and constructor which inits
fields. Method toString() return string representation of fields...

Second class Obj2 have 3 fields from which  the obj1 will be type Obj1.
Method init inits fields of class. Method toString make the same action like
in Obj1

Look at code near the classes.  Run this give this effect:

1. p1=0; p2=0; obj1=p1=jurek; p2=mizgiert | 1. p1=0; p2=0; obj1=p1=jurek;
p2=mizgiert
2. p1=1; p2=1; obj1=p1=marta; p2=wegner | 2. p1=1; p2=1; obj1=p1=marta;
p2=wegner
3. p1=2; p2=2; obj1=p1=tomasz; p2=zdybicki | 3. p1=2; p2=2; obj1=p1=tomasz;
p2=zdybicki
4. p1=3; p2=3; obj1=p1=artur; p2=milczarek | 4. p1=3; p2=3; obj1=p1=artur;
p2=milczarek

----------------------------------------------------------------------------
----
4
----------------------------------------------------------------------------
----
1. p1=0; p2=0; obj1=p1=jurek; p2=mizgiert
2. p1=1; p2=1; obj1=p1=artur; p2=milczarek
3. p1=2; p2=2; obj1=p1=artur; p2=milczarek
4. p1=3; p2=3; obj1=p1=artur; p2=milczarek


This is wrong result because effect before the <hr> myst be the same after
<hr>.
When I change method toString() in class Obj2 to return ""; it will be ok
(look below). What is going on? Who knows?

1. | 1. p1=0; p2=0; obj1=p1=jurek; p2=mizgiert
2. | 2. p1=1; p2=1; obj1=p1=marta; p2=wegner
3. | 3. p1=2; p2=2; obj1=p1=tomasz; p2=zdybicki
4. | 4. p1=3; p2=3; obj1=p1=artur; p2=milczarek

----------------------------------------------------------------------------
----
4
----------------------------------------------------------------------------
----
1. p1=0; p2=0; obj1=p1=jurek; p2=mizgiert
2. p1=1; p2=1; obj1=p1=marta; p2=wegner
3. p1=2; p2=2; obj1=p1=tomasz; p2=zdybicki
4. p1=3; p2=3; obj1=p1=artur; p2=milczarek


--- End Message ---
--- Begin Message ---
I need a way to interface php with myob, is it possible?


--
---
JJ Harrison
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
My guiding season begins in April.

Anybody out there know where I can purchase a nice mysql dolphin t-shirt?

Thank you.
TR


--- End Message ---
--- Begin Message ---
On Friday 14 February 2003 22:57, Anthony Ritter wrote:
> My guiding season begins in April.
>
> Anybody out there know where I can purchase a nice mysql dolphin t-shirt?

Try the mysql website or the mysql list?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
short leg on process table
*/

--- End Message ---
--- Begin Message ---
Jason Wong wrote in message:

> Try the mysql website or the mysql list?
.............................

Yep. I went to the mysql site and they didn't have any promo material like
t-shirts, visors, etc.

My news server doesn't have any mysql newsgroups.   SQL - yes - but not
mysql.

There was a shop online that had geek stuff...I forget the name.

And that dolphin _is_ a nice looking logo.

If you know it - please post.
Thanks.
TR




--- End Message ---
--- Begin Message ---
Don't know if they have one, but you could try....

http://www.thinkgeek.com/

Anthony Ritter wrote:
Jason Wong wrote in message:


Try the mysql website or the mysql list?
.............................

Yep. I went to the mysql site and they didn't have any promo material like
t-shirts, visors, etc.

My news server doesn't have any mysql newsgroups.   SQL - yes - but not
mysql.

There was a shop online that had geek stuff...I forget the name.

And that dolphin _is_ a nice looking logo.

If you know it - please post.
Thanks.
TR






--- End Message ---
--- Begin Message ---
Could one of the admins of this list take this email address off?
Everytime I send an email to the list, I get one of these.  Thanks.

-------- Original Message --------
Subject: Delivery Status Notification (Failure)
Date: Fri, 14 Feb 2003 08:01:31 +ACs-0100
From: postmaster+AEA-belair.nl
To: jnichel+AEA-by-tor.com

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

       l.vanderwilk+AEA-belair.nl




Reporting-MTA: dns;mbla01.belair.nl
Received-From-MTA: dns;mbla01.belair.nl
Arrival-Date: Fri, 14 Feb 2003 08:01:30 +0100

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.1.1

--- Begin Message ---
Sigh....

if ( $_POST['submit1'] ) {
	echo ( "Hello $_POST['vname']" );
}

http://www.php.net/manual/en/language.variables.scope.php
http://www.php.net/manual/en/language.variables.external.php

Poon, Kelvin (Infomart) wrote:
Hi,

I am new to PHP and had just written a simple php script to get things
started.  I have the following code:


<html>
<body>
<?php
if($submit1) {
echo "hello $vname";
} else {
?>
<form action="thispage.php" method=post>
<table>
<tr><td>Input yourname</td><td><input type=text name=vname></td></tr>
<tr><td colspan=2><input type=submit name=submit1></td></tr>
</table>
</form>
<?php
}
?>
</body>
</html>

So this page is suppose to display a input box and a submit button and once
you enter ur name and press the button, it should show Hello [ur name] and
the input box at the bottom of it and the button below and the process
continue.

I tried running it and inputted some text and pressed the button, and the
Hello [ur name] didn't show up, it just display an input box and the submit
button.

Can someone please help me?

Thanks a lot

Kelvin




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- End Message ---
--- Begin Message ---
me too...

John Nichel wrote:

Could one of the admins of this list take this email address off?
Everytime I send an email to the list, I get one of these.  Thanks.

-------- Original Message --------
Subject: Delivery Status Notification (Failure)
Date: Fri, 14 Feb 2003 08:01:31 +0100
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

      [EMAIL PROTECTED]





------------------------------------------------------------------------

Reporting-MTA: dns;mbla01.belair.nl
Received-From-MTA: dns;mbla01.belair.nl
Arrival-Date: Fri, 14 Feb 2003 08:01:30 ?

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.1.1


------------------------------------------------------------------------

Subject:

Re: [PHP] Simple PHP script
From:

John Nichel <[EMAIL PROTECTED]>
Date:

Thu, 13 Feb 2003 15:13:25 -0600
To:

"Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>


Sigh....

if ( $_POST['submit1'] ) {
echo ( "Hello $_POST['vname']" );
}

http://www.php.net/manual/en/language.variables.scope.php
http://www.php.net/manual/en/language.variables.external.php

Poon, Kelvin (Infomart) wrote:

Hi,

I am new to PHP and had just written a simple php script to get things
started. I have the following code:


<html>
<body>
<?php
if($submit1) {
echo "hello $vname";
} else {
?>
<form action="thispage.php" method=post>
<table>
<tr><td>Input yourname</td><td><input type=text name=vname></td></tr>
<tr><td colspan=2><input type=submit name=submit1></td></tr>
</table>
</form>
<?php
}
?>
</body>
</html>

So this page is suppose to display a input box and a submit button and once
you enter ur name and press the button, it should show Hello [ur name] and
the input box at the bottom of it and the button below and the process
continue.

I tried running it and inputted some text and pressed the button, and the
Hello [ur name] didn't show up, it just display an input box and the submit
button.

Can someone please help me?

Thanks a lot

Kelvin




--
Lucas Lain
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Hi all,

I am just learning about XML and I was just wondering
how mcuh you guys use it. Also what kind of things do
you use it for?

  Jono



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Hi all,

Anyone having trouble mailing this list. I can send
mail within Yahoo mail but not from Evolution it
seems.

I wondered if the list is being tempremental or
whether it is a local problem for me.

  Jono



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Can someone direct me to a tutorial or provide insight
on how to track site vistors usage.
This would include

Number of visits boken down by page
Average time spent per visitor
Total page views and Unique visitors.

Thanks

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--- End Message ---
--- Begin Message ---
http://www.devshed.com/Server_Side/PHP/Logging/page1.html

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=php+logging

olinux


--- Daniel Guerrier <[EMAIL PROTECTED]> wrote:
> Can someone direct me to a tutorial or provide
> insight
> on how to track site vistors usage.
> This would include
> 
> Number of visits boken down by page
> Average time spent per visitor
> Total page views and Unique visitors.
> 
> Thanks
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Hello,
Suse 8.0, ucdsnmp-4.2.3-145, tried both php-4.1.2 and 4.3.0, compiled
from source, snmp support enabled.
bash# snmpget 1.2.3.4 "communitystring" .1.3.6.1.2.1.2.2.1.1.2
interfaces.ifTable.ifEntry.ifIndex.2 = 2

But if I try the following lines:
$a=snmpwalkoid("1.2.3.4", "communitystring", ".1.3.6.1.2.1.2.2.1.1.2");
print_r ($a)

I get only
Array
(
)

Does anyone else experience the same problem? Or is there some way to
find out if the problem is caused by:
- - suse
- - ucd
- - php
- - me being ignorant
?

Thank you all.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+TQ4AlDG6Z61nQGIRAnkFAKCjkTEGx+rMXV3vUc7NySgZm0l7/gCgsmgG
LiTy00n62rux9RfdjA4sKgU=
=Wa5J
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
you could try the phplib libraries (which as well as authentication
implement other things such as database abstraction and templates) There is
some overhead involved in getting up to speed with phplib but there is a lot
of help out there (in the form of articles, email list etc..) I found phplib
very, very valuable to get me started on my first php application
(principally using it for the authentication) but have since preferred to
write my own authentication code. Going it alone with the authentication
does, as you allude to below, involve getting a good handle on sessions. To
this and other related ends I would thoroughly recommend the 2 books 'Web
Database Applications with PHP & MySQL' and 'Programming PHP' (both O'Reilly
titles). Of course a lot of info is out here on the web, but these books are
particularly well written, comprehensive and very handy sitting there on the
desk while you work. Sorry - not the quick fix solution you request but one
that'll help in the longer term.

David



"Yc Nyon" <[EMAIL PROTECTED]> wrote in message
000001c2d434$f8be3c80$5340ba66@gis">news:000001c2d434$f8be3c80$5340ba66@gis...
> Hi,
>
> I have looked at many examples session-based of login/password system to
> protect webpages but can't get it to work. Seems simple but... I have php
> and mysql installed in my windows server.
>
> If any kind soul can point me to a working (easy) setup of this task, i
> would be most grateful.
>
> Nyon
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003
>


--- End Message ---
--- Begin Message ---
If I send a HTML email using either mail() or pear mail to an email account
of someone who is on my email server it does not get delivered right.  But
if I send a HTML email to an external email address it is fine. It also
works fine with plain text email, only if you send a HTML format email.

I have even setup pear mail not to use the mail function but link right to
qmail's bin folder.
I can also send HTML between users in HTML using Outlook fine, only if PHP
sends do I have problem.

I am using PHP 4.3.0 and qmail as my email server.

Has anyone any idea of were to start looking for why this is happening.
Again this only happen if it is a HTML format email and it is to an internal
user, thus my email server routes it without leaving the server.

Thanks,
Mark.





--- End Message ---
--- Begin Message ---
Does PHP transforms an integer on a string?
Like: "78" onto "seventy eight"
How does it do it?



--- End Message ---
--- Begin Message ---
It transforms 78 into "78".

Francisco wrote:

Does PHP transforms an integer on a string?
Like: "78" onto "seventy eight"
How does it do it?





--
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.



--- End Message ---
--- Begin Message ---
Hello,

I am thinking to create php script to dynamically convert a text string to
image. My questions are:

1. with a given text string, say "hello, world", is it possible to
dynamically
convert it to an image? and what php built-in functions can be utilized?
2. if I want to use true-type verdana font, can I just upload the windows
font file to the web server (linux) and use php to load the font?

Thanks in advance!

Alex Shi



--
==================================================
Cell Phone Batteries at 30-50%+ off retail prices!
http://www.pocellular.com
==================================================
TrafficBuilder Network:
http://www.bestadv.net/index.cfm?ref=7029
==================================================

--- End Message ---
--- Begin Message ---
Alex,
Easy to do what you want.  Check out the "image" functions in the php
manual.  There are some font limitations, specifically dealing with
alternate characters, but you'll find out what works and what doesn't soon
enough.
Hugh

----- Original Message -----
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 10:16 AM
Subject: [PHP] text to image


> Hello,
>
> I am thinking to create php script to dynamically convert a text string to
> image. My questions are:
>
> 1. with a given text string, say "hello, world", is it possible to
> dynamically
> convert it to an image? and what php built-in functions can be utilized?
> 2. if I want to use true-type verdana font, can I just upload the windows
> font file to the web server (linux) and use php to load the font?
>
> Thanks in advance!
>
> Alex Shi
>
>
>
> --
> ==================================================
> Cell Phone Batteries at 30-50%+ off retail prices!
> http://www.pocellular.com
> ==================================================
> TrafficBuilder Network:
> http://www.bestadv.net/index.cfm?ref=7029
> ==================================================
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message --- I am thinking in making some statistics graphics in php ... is there any library that i can use?
thanks

L.L.

--
Lucas Lain
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
On Saturday 15 February 2003 02:35, Lucas Lain wrote:
> I am thinking in making some statistics graphics in php ... is there any
> library that i can use?
> thanks

jpgraph

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Most people deserve each other.
                -- Shirley
*/

--- End Message ---
--- Begin Message ---
jpgraph professional license???
other FREE idea???

Jason Wong wrote:

On Saturday 15 February 2003 02:35, Lucas Lain wrote:

I am thinking in making some statistics graphics in php ... is there any
library that i can use?
thanks

jpgraph

--
Lucas Lain
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
On Friday 14 February 2003 16:15, Michael P. Carel wrote:
> i've already installed gd but still recieving
> Fatal error: Call to undefined function:
>  imagecreatefromjpeg() .

You need to configure --with-jpeg-dir. 

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Be *excellent* to each other."
-- Bill, or Ted, in Bill and Ted's Excellent Adventure
*/

--- End Message ---
--- Begin Message ---
hi
first of all i think this is a great community here :)

now to the point...
i need a script. it should work on safe mode php so it should be as simple
as possible.
it should calculate all the file sizes in the directory that it is in and in
the subdirectories also (only 1 level subdirectories). it should echo the
total size of the uploaded files.
then it should take the filesize and substract it from 25 megabytes. that is
the limit on this server. then it should echo the result (the maximum number
of kilobytes that can still fit on this account).
unfortunately i have insuffitient knowlege to do it miself.
i just want to thank anyone who can help me.
if you want to send it to my email then its [EMAIL PROTECTED] . or you can
just write it here.

thank you :)


--- End Message ---
--- Begin Message ---
On Saturday 15 February 2003 03:17, joe wrote:

> now to the point...
> i need a script. it should work on safe mode php so it should be as simple
> as possible.
> it should calculate all the file sizes in the directory that it is in and
> in the subdirectories also (only 1 level subdirectories). it should echo
> the total size of the uploaded files.
> then it should take the filesize and substract it from 25 megabytes. that
> is the limit on this server. then it should echo the result (the maximum
> number of kilobytes that can still fit on this account).
> unfortunately i have insuffitient knowlege to do it miself.
> i just want to thank anyone who can help me.

Most of the functions that you need to accomplish this can be found in 
chapters 'Directory functions' & 'Filesystem functions'.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
We gave you an atomic bomb, what do you want, mermaids?
                -- I. I. Rabi to the Atomic Energy Commission
*/

--- End Message ---
--- Begin Message ---
i need to escape all my apostrophes in values submitted to a mySQL
database.  i know how to do the string replace, but is there a way i can
loop thru all the post variables and replace the apostrophes?  if so, do
i need to refer to my variables like "$_POST[$variable]" instead of
simply "$variable" (like i have currently) for it to work?

any help would be greatly appreciated...

-Doug

--- End Message ---

Reply via email to