|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Mon Oct 01 2001 - 13:59:01 CDT
php-general Digest 1 Oct 2001 18:59:01 -0000 Issue 909
Topics (messages 69419 through 69473):
Re: php graphics generation
69419 by: Maxim Maletsky \(PHPBeginner.com\)
Re: scrolling news [sort of OT]
69420 by: _lallous
Re: ereg
69421 by: _lallous
session var being lost between pages
69422 by: Jean-Christian Imbeault
69456 by: Chris Lee
newbie question
69423 by: Caleb Carvalho
69455 by: Chris Lee
Re: word filter
69424 by: _lallous
69425 by: Maxim Maletsky \(PHPBeginner.com\)
69426 by: Maxim Maletsky \(PHPBeginner.com\)
69437 by: Richard Heyes
69446 by: _lallous
Re: Making variable global / accessing variable
69427 by: Jason G.
Warning: Sybase message: Incorrect syntax near 't'.
69428 by: Caleb Carvalho
69460 by: Mark Roedel
69463 by: Papp Gyozo
Re: socket_get_status()
69429 by: Mukul Sabharwal
Sybase Result Paging
69430 by: Veniamin Goldin
69464 by: Papp Gyozo
php and java problem
69431 by: Nikola Veber
69432 by: George Pitcher
69440 by: Alexander Deruwe
Re: newbie: extracting lines from a text file w/ php
69433 by: user.domain.invalid
php_admin_flag safe_mode off
69434 by: Richard Kurth
PHP Chat
69435 by: Jordan Elver
Assistance Wanted Time:11:58:28 AM
69436 by: php-general.lists.php.net
69438 by: Duncan Hill
still learning php
69439 by: Caleb Carvalho
69441 by: Dimitris Kossikidis
69448 by: Caleb Carvalho
69450 by: Dimitris Kossikidis
69451 by: Miles Thompson
69453 by: Caleb Carvalho
69454 by: Dimitris Kossikidis
Array Elements & While Loops
69442 by: Tom Churm
69444 by: _lallous
69447 by: Tom Churm
69461 by: Steve Cayford
Re: Copying file to a network drive (in WinNT4)
69443 by: joakim.andersson.cybercom.se
PersonalDB.net ȸ¿øÀ¸·Î ÃÊ´ë¹ÞÀ¸¼Ì½À´Ï´Ù.
69445 by: °ü¸®ÀÚ
help please Sybase Result Paging.
69449 by: Veniamin Goldin
CD-R sur la PROVENCE
69452 by: HUGUES
Re: Recursion
69457 by: Sheridan Saint-Michel
69458 by: Andres Montiel
SOAP Tool Kit for PHP
69459 by: Dahnke, Eric
69467 by: Chris Bailey
69468 by: Dahnke, Eric
69469 by: Chris Bailey
69471 by: Rasmus Lerdorf
Re: instant session expiration problem
69462 by: hassan el forkani
Re: loosing session variables: work still in progress
69465 by: Papp Gyozo
Thank you all
69466 by: Caleb Carvalho
Apache, FreeBSD & PHP
69470 by: Kees Hoekzema
fopen
69472 by: Kmarada
fopen !!!
69473 by: Kmarada
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:
netcraFT.com, sorry
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: Maxim Maletsky (PHPBeginner.com)
[mailto:php-general
phpbeginner.com]
Sent: lunedì 1 ottobre 2001 8.54
To: 'Chip'; php-general
lists.php.net
Subject: RE: [PHP] php graphics generation
Check out netcratf.com
Their graphs are auto generated by (I think) PHP.
Also you can use them a lot for many other kind of charts and stats
graphs.
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: Chip [mailto:chip
wiegand.org]
Sent: lunedì 1 ottobre 2001 6.43
To: php-general
lists.php.net
Subject: [PHP] php graphics generation
I have been using php for simple things so far, and am just starting to
look
into the image generation functions of php. I am wondering just what
people
use these for in real-life applications, some real references. I know
what
the books say can be done, I am interested in what is being done with
it. Just out of curiosity,
-- Chip W.-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
check http://javascritpt.internet.com
they got plenty.
"Tyler Longren" <tyler
captainjack.com> wrote in message
news:001b01c14a14$37313e60$0101a8c0
Longren...
> Hello all,
>
> Does anyone know of any javascript that will display "scrolling news"?
I'd
> like to manipulate this js code with php so it can display whatever's in
the
> database.
>
> Thanks everyone,
> Tyler
>
attached mail follows:
(5\.[5-9])|([6-9]\.[0-9])
this regular expression will only match numbers above or equal 5.5
"Matthew Delmarter" <matt
adplusonline.com> wrote in message
news:NDBBKBIHLCDMDICHLDKGEEEACHAA.matt
adplusonline.com...
> How do I use ereg to check for MSIE 5.5 and above.
>
> eg: eregi("(MSIE.[56])",$HTTP_USER_AGENT)
>
> This only gets version 5 and 6 ... but I want 5.5 and above. Any
> ideas?
>
> Regards,
>
> Matthew Delmarter
>
attached mail follows:
Ok, newbie I am but ... I seem to be losing my session vars when I load up a different php page.
My set-up:
1- main page starts session and logs user in
if (isset($PHPSESSID)) session_start($PHPSESSID); else session_start();
$PHPSESSID = session_id(); $SID = "PHPSESSID=$PHPSESSID";
if(!isset($userid)) { login_form(); exit; } else { session_register("userid", "userpassword"); }
Once the user is logged in I have no problem accessin the vars $userid and $userpassword.
On the page I even have an <A HREF> link to second php page and the vars are accessible there also.
However this other page has a form. When the user submits the form, a third php page is loaded. On this third page the vars no longer have any values.
Why is this? How can I access the vars from this third page?
Thanks!
Jc
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
echo $PHPSESSID on every page, is it the same on every page ?
I usually recommend that you create the register variables too.
else { $userid = ''; $userpassword = ''; session_register('userid'); session_register('userpassword'); }
if $PHPSESSID is set then session_start() will find it and use it, if your trying to override HTTP_COOKIE_VARS['PHPSESSID'] with HTTP_GET_VARS['PHPSESSID'] I would also check if it is not thedefault allready, change the code to relect that then
if (isset($HTTP_GET_VARS['PHPSESSID']) AND $PHPSESSID != $HTTP_GET_VARS['PHPSESSID'])
all small things, nothing big looks wrong. try it and see.
--Chris Lee lee
mediawaveonline.com
"Jean-Christian Imbeault" <jean_christian
hotmail.com> wrote in message news:F111jy3DzB8zICirYfZ0000c3ae
hotmail.com... > Ok, newbie I am but ... I seem to be losing my session vars when I load up a > different php page. > > My set-up: > > 1- main page starts session and logs user in > > if (isset($PHPSESSID)) > session_start($PHPSESSID); > else > session_start(); > > $PHPSESSID = session_id(); > $SID = "PHPSESSID=$PHPSESSID"; > > if(!isset($userid)) { > login_form(); > exit; > } > else { > session_register("userid", "userpassword"); > } > > Once the user is logged in I have no problem accessin the vars $userid and > $userpassword. > > On the page I even have an <A HREF> link to second php page and the vars are > accessible there also. > > However this other page has a form. When the user submits the form, a third > php page is loaded. On this third page the vars no longer have any values. > > Why is this? How can I access the vars from this third page? > > Thanks! > > Jc > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp >
attached mail follows:
Morning all,
Am not very experience on html form, all I want is to allow the field type text in sybase to receive data from html form, but is not working can some one pls point me why?
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
a little more information please, code snippits would help alot.
asking a question as vague as yours is like asking "I cant drive, why not?" :)
--Chris Lee lee
mediawaveonline.com
"Caleb Carvalho" <havanero
hotmail.com> wrote in message news:F128NQBst9pKlrF0C0p00007166
hotmail.com... > Morning all, > > Am not very experience on html form, all I want is to allow the field type > text in sybase to receive data from html form, but is not working can some > one pls point me why? > > > > Caleb Carvalho > Application Engineer > LoadRunner/APM > -------------------------------------------------------------------------- --------------- > Enterprise Testing and Performance Management Solutions > -------------------------------------------------------------------------- --------------- > Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp >
attached mail follows:
$naughty_words = array( 'poop', 'bum', 'religion' ); if (eregi(join('|', $naughty_words), $text)) echo "found bad words!"; else echo "text is clean!";
"Richard Heyes" <richard.heyes
heyes-computing.net> wrote in message
news:NEBBIDEMHHJJCANAAAKFAENCJFAA.richard.heyes
heyes-computing.net...
>
> > Looking for a function which checks the user input for unwanted (mostly
> > rude) words. Those words should be defined first in array or so of
> > course... should be case insensitive as well.
>
> $text = 'This text contains a naughty word: Bum';
> $naughty_words = array(
> 'poop',
> 'bum',
> 'religion'
> );
>
> function naughty_words($text, $naughty_words){
> $text = strtolower($text);
> foreach($naughty_words as $value){
> if(strpos($text, strtolower($value)) !== FALSE)
> return TRUE;
> }
>
> return FALSE;
> }
>
> echo naughty_words($text, $naughty_words) ? 'Found naughty words' : 'Text
is
> clean';
>
> --
> Richard Heyes
> "I know not with what weapons World War III will be fought, but World War
IV
> will be fought with sticks and stones." - Albert Einstein
>
>
attached mail follows:
There's a better way to do this:
<? $naughty_words = array( 'poop', 'bum', 'religion' );
echo in_array($text, $naughty_words) ? "found bad words!" : "text is clean!"; ?>
Since PHP though...
P.S: are you considering 'region' a naughty word, _lallous? Careful there...
Maxim Maletsky www.PHPBeginner.com
-----Original Message-----
From: _lallous [mailto:elias_bachaalany
yahoo.com]
Sent: lunedì 1 ottobre 2001 11.15
To: php-general
lists.php.net
Subject: Re: [PHP] word filter
$naughty_words = array( 'poop', 'bum', 'religion' ); if (eregi(join('|', $naughty_words), $text)) echo "found bad words!"; else echo "text is clean!";
"Richard Heyes" <richard.heyes
heyes-computing.net> wrote in message
news:NEBBIDEMHHJJCANAAAKFAENCJFAA.richard.heyes
heyes-computing.net...
>
> > Looking for a function which checks the user input for unwanted
> > (mostly
> > rude) words. Those words should be defined first in array or so of
> > course... should be case insensitive as well.
>
> $text = 'This text contains a naughty word: Bum'; $naughty_words =
> array( 'poop',
> 'bum',
> 'religion'
> );
>
> function naughty_words($text, $naughty_words){
> $text = strtolower($text);
> foreach($naughty_words as $value){
> if(strpos($text, strtolower($value)) !== FALSE)
> return TRUE;
> }
>
> return FALSE;
> }
>
> echo naughty_words($text, $naughty_words) ? 'Found naughty words' :
> 'Text
is
> clean';
>
> --
> Richard Heyes
> "I know not with what weapons World War III will be fought, but World
> War
IV
> will be fought with sticks and stones." - Albert Einstein
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Sorry, I meant since PHP 4 only, as it is when function in_array() was introduced
Maxim Maletsky www.PHPBeginner.com
-----Original Message-----
From: Maxim Maletsky (PHPBeginner.com)
[mailto:php-general
phpbeginner.com]
Sent: lunedì 1 ottobre 2001 10.33
To: '_lallous'; php-general
lists.php.net
Cc: 'Kristjan Kanarik'; 'Richard Heyes'
Subject: RE: [PHP] word filter
There's a better way to do this:
<? $naughty_words = array( 'poop', 'bum', 'religion' );
echo in_array($text, $naughty_words) ? "found bad words!" : "text is clean!"; ?>
Since PHP though...
P.S: are you considering 'region' a naughty word, _lallous? Careful there...
Maxim Maletsky www.PHPBeginner.com
-----Original Message-----
From: _lallous [mailto:elias_bachaalany
yahoo.com]
Sent: lunedì 1 ottobre 2001 11.15
To: php-general
lists.php.net
Subject: Re: [PHP] word filter
$naughty_words = array( 'poop', 'bum', 'religion' ); if (eregi(join('|', $naughty_words), $text)) echo "found bad words!"; else echo "text is clean!";
"Richard Heyes" <richard.heyes
heyes-computing.net> wrote in message
news:NEBBIDEMHHJJCANAAAKFAENCJFAA.richard.heyes
heyes-computing.net...
>
> > Looking for a function which checks the user input for unwanted
> > (mostly
> > rude) words. Those words should be defined first in array or so of
> > course... should be case insensitive as well.
>
> $text = 'This text contains a naughty word: Bum'; $naughty_words =
> array( 'poop',
> 'bum',
> 'religion'
> );
>
> function naughty_words($text, $naughty_words){
> $text = strtolower($text);
> foreach($naughty_words as $value){
> if(strpos($text, strtolower($value)) !== FALSE)
> return TRUE;
> }
>
> return FALSE;
> }
>
> echo naughty_words($text, $naughty_words) ? 'Found naughty words' :
> 'Text
is
> clean';
>
> --
> Richard Heyes
> "I know not with what weapons World War III will be fought, but World
> War
IV
> will be fought with sticks and stones." - Albert Einstein
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> There's a better way to do this: > > <? > $naughty_words = array( > 'poop', > 'bum', > 'religion' > ); > > echo in_array($text, $naughty_words) ? "found bad words!" : "text is > clean!"; > ?>
This won't work, since you're trying to find the whole of $text in the array $naughty_words.
-- Richard Heyes "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
attached mail follows:
and btw Maxim...I didn't write the $naught_words array in the first place...
"Maxim Maletsky )" <php-general
phpbeginner.com> wrote in message
news:014a01c14a54$05530640$4829abd4
tatiana...
Sorry, I meant since PHP 4 only, as it is when function in_array() was introduced
Maxim Maletsky www.PHPBeginner.com
-----Original Message-----
From: Maxim Maletsky (PHPBeginner.com)
[mailto:php-general
phpbeginner.com]
Sent: lunedì 1 ottobre 2001 10.33
To: '_lallous'; php-general
lists.php.net
Cc: 'Kristjan Kanarik'; 'Richard Heyes'
Subject: RE: [PHP] word filter
There's a better way to do this:
<? $naughty_words = array( 'poop', 'bum', 'religion' );
echo in_array($text, $naughty_words) ? "found bad words!" : "text is clean!"; ?>
Since PHP though...
P.S: are you considering 'region' a naughty word, _lallous? Careful there...
Maxim Maletsky www.PHPBeginner.com
-----Original Message-----
From: _lallous [mailto:elias_bachaalany
yahoo.com]
Sent: lunedì 1 ottobre 2001 11.15
To: php-general
lists.php.net
Subject: Re: [PHP] word filter
$naughty_words = array( 'poop', 'bum', 'religion' ); if (eregi(join('|', $naughty_words), $text)) echo "found bad words!"; else echo "text is clean!";
"Richard Heyes" <richard.heyes
heyes-computing.net> wrote in message
news:NEBBIDEMHHJJCANAAAKFAENCJFAA.richard.heyes
heyes-computing.net...
>
> > Looking for a function which checks the user input for unwanted
> > (mostly
> > rude) words. Those words should be defined first in array or so of
> > course... should be case insensitive as well.
>
> $text = 'This text contains a naughty word: Bum'; $naughty_words =
> array( 'poop',
> 'bum',
> 'religion'
> );
>
> function naughty_words($text, $naughty_words){
> $text = strtolower($text);
> foreach($naughty_words as $value){
> if(strpos($text, strtolower($value)) !== FALSE)
> return TRUE;
> }
>
> return FALSE;
> }
>
> echo naughty_words($text, $naughty_words) ? 'Found naughty words' :
> 'Text
is
> clean';
>
> --
> Richard Heyes
> "I know not with what weapons World War III will be fought, but World
> War
IV
> will be fought with sticks and stones." - Albert Einstein
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
You can see the below code in action at: http://www.ionzoft.com/code/testing/globals.php
<? function CreateGlobals($td) { $td = "foo";
$td_error = $td . "_error"; $td_ok = $td . "_ok";
global $$td_error; global $$td_ok;
$$td_error = 'Error Message'; $$td_ok = 'Ok Message'; } //////////////////////////////////////////////////////////////////// //Just testing
echo 'Before Call to CreateGlobals()<br>'; echo '$foo_error = ', $foo_error, '<br>'; echo '$foo_ok = ', $foo_ok, '<br>';
echo '<br>'; CreateGlobals("foo"); echo '<br>';
echo 'After Call to CreateGlobals()<br>'; echo '$foo_error = ', $foo_error, '<br>'; echo '$foo_ok = ', $foo_ok, '<br>';
?>
There is probably a better way to do this. Check the docs on Variable Variables and the {} syntax.
At 10:01 PM 9/30/2001 -0700, Justin Garrett wrote:
>But how would you use this to create new global variables with $td as the
>prefix?
>
>$td = "foo";
>
>then we want new global variables
>
>$foo_error and $foo_ok created.
>
>--
>Justin Garrett
>
>"Jason G." <blair
nb.net> wrote in message
>news:5.1.0.14.0.20010930230446.03659f90
pop3.nb.net...
> >
> > function MyFunction($td)
> > {
> > global $$td;
> > echo $$td; // echos 3
> > $$td = 5;
> > }
> >
> > $billybob = 3;
> > MyFunction("billybob");
> > file://Now $billybob = 5
> >
> > -Jason Garber
> > IonZoft.com
> >
> > At 10:25 PM 9/30/2001 -0400, you wrote:
> >
> > >I have used:
> > >
> > >global $$td;
> > >
> > >in the past with success...
> > >
> > >-Jason Garber
> > >IonZoft.com
> > >
> > >
> > >At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote:
> > >>Maybe something similar to this?
> > >>
> > >>function test($td){
> > >>
> > >> $global = "global \$$td"."_error, \$$td"."_ok;";
> > >> eval($global);
> > >>
> > >> $set = "\$$td"."_error = \"ERROR\"; \$$td"."_ok = \"OK\";";
> > >> eval($set);
> > >>}
> > >>
> > >>test("foo");
> > >>echo "$foo_error $foo_ok";
> > >>
> > >>--
> > >>Justin Garrett
> > >>
> > >>"Martin" <martin
radiok2r.de> wrote in message
> > >>news:3BB755BB.408D290E
radiok2r.de...
> > >> > Hello!
> > >> >
> > >> > How can I make a variable, which name I give to a function, global in
> > >> > this function?
> > >> >
> > >> > I want to make something like:
> > >> >
> > >> > function MyFunc($sVarName)
> > >> > { GLOBAL [$sVarName]_error, $sVarName_ok;
> > >> > ....
> > >> > }
> > >> >
> > >> > So if $sVarName = "sHello", I want to access $sHello_error and
> > >> > $sHello_ok in this function.
> > >> >
> > >> > Any idea how I can make this variable gloabl and whats the easyst way
>to
> > >> > access this var then?
> > >> >
> > >> > Martin
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >>--
> > >>PHP General Mailing List (http://www.php.net/)
> > >>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >>For additional commands, e-mail: php-general-help
lists.php.net
> > >>To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >For additional commands, e-mail: php-general-help
lists.php.net
> > >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> >
> > At 10:25 PM 9/30/2001 -0400, Jason G. wrote:
> >
> > >I have used:
> > >
> > >global $$td;
> > >
> > >in the past with success...
> > >
> > >-Jason Garber
> > >IonZoft.com
> > >
> > >
> > >At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote:
> > >>Maybe something similar to this?
> > >>
> > >>function test($td){
> > >>
> > >> $global = "global \$$td"."_error, \$$td"."_ok;";
> > >> eval($global);
> > >>
> > >> $set = "\$$td"."_error = \"ERROR\"; \$$td"."_ok = \"OK\";";
> > >> eval($set);
> > >>}
> > >>
> > >>test("foo");
> > >>echo "$foo_error $foo_ok";
> > >>
> > >>--
> > >>Justin Garrett
> > >>
> > >>"Martin" <martin
radiok2r.de> wrote in message
> > >>news:3BB755BB.408D290E
radiok2r.de...
> > >> > Hello!
> > >> >
> > >> > How can I make a variable, which name I give to a function, global in
> > >> > this function?
> > >> >
> > >> > I want to make something like:
> > >> >
> > >> > function MyFunc($sVarName)
> > >> > { GLOBAL [$sVarName]_error, $sVarName_ok;
> > >> > ....
> > >> > }
> > >> >
> > >> > So if $sVarName = "sHello", I want to access $sHello_error and
> > >> > $sHello_ok in this function.
> > >> >
> > >> > Any idea how I can make this variable gloabl and whats the easyst way
>to
> > >> > access this var then?
> > >> >
> > >> > Martin
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >>--
> > >>PHP General Mailing List (http://www.php.net/)
> > >>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >>For additional commands, e-mail: php-general-help
lists.php.net
> > >>To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >For additional commands, e-mail: php-general-help
lists.php.net
> > >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > >
> >
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi am trying to add data from html form, and it seems like the line 14 in my script,
$sybase_query="INSERT into problem VALUES('$product','$pro_title','$description','$solution')"; $sybase_result=sybase_query($sybase_query);
Warning: Sybase message: Incorrect syntax near 't'. (severity 15) in /var/www/html/process.php on line 14
Warning: Sybase message: Unclosed quote before the character string ')'. (severity 15) in /var/www/html/process.php on line 14
when trying to insert the following data
Product :Test Director
Problem Title : Doesn\'t work
Description: I dont knw why
Solution : dondd
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
> -----Original Message-----
> From: Caleb Carvalho [mailto:havanero
hotmail.com]
> Sent: Monday, October 01, 2001 4:04 AM
> To: php-general
lists.php.net
> Subject: [PHP] Warning: Sybase message: Incorrect syntax near 't'.
>
>
> Hi am trying to add data from html form, and it seems like
> the line 14 in my script,
>
> $sybase_query="INSERT into problem
> VALUES('$product','$pro_title','$description','$solution')";
> $sybase_result=sybase_query($sybase_query);
>
> Warning: Sybase message: Incorrect syntax near 't'. (severity 15) in
> /var/www/html/process.php on line 14
>
> Problem Title : Doesn\'t work
If I'm remembering right, Sybase would prefer to see this as Problem Title : Doesn''t work
(That is, a single-quote within a string that you're passing off to Sybase should be escaped by another single-quote, not by a slash.)
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell
attached mail follows:
Hi,
I suggest to you: var_dump($sybase_query);
It may help you to make wellformed query-string.
----- Original Message -----
From: Caleb Carvalho <havanero
hotmail.com>
To: <php-general
lists.php.net>
Sent: Monday, October 01, 2001 11:04 AM
Subject: [PHP] Warning: Sybase message: Incorrect syntax near 't'.
> Hi am trying to add data from html form, and it seems like the line 14 in
> my script,
>
> $sybase_query="INSERT into problem
> VALUES('$product','$pro_title','$description','$solution')";
> $sybase_result=sybase_query($sybase_query);
>
>
> Warning: Sybase message: Incorrect syntax near 't'. (severity 15) in
> /var/www/html/process.php on line 14
>
> Warning: Sybase message: Unclosed quote before the character string ')'.
> (severity 15) in /var/www/html/process.php on line 14
>
> when trying to insert the following data
>
>
> Product :Test Director
>
> Problem Title : Doesn\'t work
>
> Description: I dont knw why
>
> Solution : dondd
>
>
>
>
>
> Caleb Carvalho
> Application Engineer
> LoadRunner/APM
> --------------------------------------------------------------------------
---------------
> Enterprise Testing and Performance Management Solutions
> --------------------------------------------------------------------------
---------------
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi,
Well I'm not totally sure, why socket_get_status would not give you the correct value, other than a bug, as the manual does indicate the socket functions are experimental.
There are altenative ways to get the number of bytes in the buffer, like using ioctl with FIONREAD, ofcourse that is a C function, and I can't really locate a PHP counterpart for it, other than what may be a counterpart (socket_get_status). However yet another solution is using the recv() counterpart, socket_recv() with the MSG_PEEK flag.
Now you'd probably open up a local copy of the php manpages, hunting for socket_recv()! Well it's not there, it's an undocumented function (yet), and to my knowlegde exists in PHP 4.0.7, atleast in the CVS.
function prototype: mixed socket_recv(resource socket, int len, int flags)
and example usage: $data = socket_recv($sockfd, $nbytes, MSG_PEEK); $len = sizeof($data);
Now you would have to loop through the the complete buffer, and let me remind you, that MSG_PEEK means peeking into the buffer, it does not "actually" remove the data from the recv() queue but only gives you a copy, if you call the function without MSG_PEEK you will get the same data, and then the data will be discarded.
This is one way of finding out the no. of bytes in the buffer, ofcourse socket_get_status() is surely much better.
Incase I interpreted you incorrectly and you wanted to know the no. of bytes the recieve buffer can hold then here's the function, and this is also 4.0.7+ :
function prototype: mixed socket_getopt(resource socket, int level, int optname)
example usage:
$info = socket_getopt($sockfd, SOL_SOCKET, SO_RCVBUF);
and it remains pretty much the same for the send buffer :
$info = socket_getopt($sockfd, SOL_SOCKET, SO_SNDBUF);
Hope that helps.
P.S - phpguru.org, nice domain name.
===== ********************************* Know more about me: http://www.geocities.com/mimodit *********************************
__________________________________________________ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
attached mail follows:
Hi all ! Does anybody has a solution of paging result for Sybase + PHP ?
Like <<Prev 1 2 3 4 5 Next>>
Thanks.
attached mail follows:
Hi,
PEAR DB supports Sybase: http://vulcanonet.com/soft/?pack=pear_tut and there is a DB PAGER in PEAR: http://vulcanonet.com/soft/?pack=pager
BTW, you can search on http://phpclasses.upperdesign.com or http://php.resourceindex.com
----- Original Message -----
From: Veniamin Goldin <veniamin.goldin
labbis.lt>
To: <php-general
lists.php.net>
Sent: Monday, October 01, 2001 11:12 AM
Subject: [PHP] Sybase Result Paging
> Hi all !
> Does anybody has a solution of paging result for Sybase + PHP ?
>
> Like <<Prev 1 2 3 4 5 Next>>
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi !
I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how).
Thanx Nikola
attached mail follows:
Nikola,
I'm not a javascript user and new to php too.
Is it possible to form your javascript result into a 'hidden' form value. That could then be read by the next php page.
HTH
George
----- Original Message -----
From: "Nikola Veber" <veber
ptt.yu>
To: "php forum" <php-general
lists.php.net>
Sent: Sunday, September 30, 2001 10:36 PM
Subject: [PHP] php and java problem
> Hi !
>
> I was able to determine the user's screen resolution, but I'd like to let
php know
> that(the next page loaded should be in
> the right resolution, I'd like to pass a value to php, but I don't know
how).
>
> Thanx
> Nikola
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
_________________________________________________________
Do You Yahoo!?
Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sunday 30 September 2001 21:36, Nikola Veber wrote: > Hi ! > > I was able to determine the user's screen resolution, but I'd like to let > php know that(the next page loaded should be in > the right resolution, I'd like to pass a value to php, but I don't know > how).
pagethatdeterminesresolution.php determines the resolution, and has a link such as this one:
<a href="correctpage.php?Xres=640&Yres=480">Link</a> (The numbers are pure fiction ofcourse, you need to get them.)
This means that in correctpage.php you will have two variables, $Xres and $Yres that will represent the resolution.
Alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE7uG1AySJLuRUx8aQRAkf0AJwMutj7TZ3HCqFGEEyv0Gn8souqdACdFToE 20D9LSWxEYKAwOYvHD8psMU= =Ghac -----END PGP SIGNATURE-----
attached mail follows:
Hi. You should go on the forum php.db.
Sc wrote:
> Hi; > > I am new to php and i need to extract specific lines of data from a plain > text file and insert it into a sql db.... Can anyone give me some details > on howto do this? or an example to read the specific line that i need? > > Thanks. > > > -sc >
attached mail follows:
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below <VirtualHost> ----other stuff---- php_admin_flag safe_mode off </VirtualHost>
According to the manual you can turn any variable that is in the php.ini file on or off in the https.conf file by adding
-- Best regards, Richard mailto:rkurthpacifier.com
attached mail follows:
Hi, Can anyone recommend a good, configurable php chat? I've tried phpMyChat which seems pretty good.
Any ideas?
Cheers,
Jord
-- Jordan Elver Web Developer The InternetOne UK Ltd
attached mail follows:
FROM: MARIAM ABACHA
Dear friend, Following the sudden death of my husband, Late General Sanni Abacha, the former head of state of the federal Republic of Nigeria in June 1998, I have been thrown into a state of utter confusion, frustration and hopelessness by the present civilian administration. Security agents in Nigeria have subjected me to physical and psychological tortures. One of my sons is still under detention as well as arraigned before a Federal High Court of Nigeria for an offence he did not commit. As a widow, that is so traumatized, I have lost hope and confidence in anybody within the country. You must have heard over the media and the Internet on the recovery of various huge sums of money deposited by my late husband in different security firms abroad. Some willingly gave up their secrets and disclosed our money confidently lodged with them and many out-rightly declined lodgment. In fact the total sum discovered by the Government so far is to the tune of $700 million dollars. And the government has not relented in its efforts to completely bring my children and I back to square one. This is why I deemed it necessary to act fast by contacting anybody abroad for assistance. Furthermore, due to the security network placed on my daily activities I cannot afford to visit any embassy for a possible solution, hence I have decided to contact you and I do hope you will be the person God is going to use torescue my family and I. I have deposited the sum of $35 million dollars in a security firm abroad as whose name is with held for now for security reasons until we fully commence communication. I shall be grateful if you could receive this fund on my behalf for safekeeping. Adequate arrangement has been made for receiving the fund. It is totally risk free. This arrangement is known to you, my brother (who is contacting you and I only. This means that my brother will deal directly with you as surveillance is on me. My brother’ name is JIMOH ABU. You are entitled to 15% of the total sum. I hope to invest a proportion of the balance in your country. Please forward your private Telephone and Fax numbers so that we can fully commence communication immediately. I will quite appreciate, if you accept my proposal in good faith. I look forward to receiving your urgent reply to my plea. Yours truly, Hajia Mariam Abacha
attached mail follows:
On Mon, 1 Oct 2001 php-general
lists.php.net wrote:
> FROM: MARIAM ABACHA > > Dear friend,
*snicker* They aren't content with good old postal mail (my parents' company used to get these ALL the time!) - they've gone electronic! Wonder if I can create a killfile for that kind of mail. Wonder how many people use nigeria and money in the same email...
--Sapere aude My mind not only wanders, it sometimes leaves completely.
attached mail follows:
I posted a msg earlier on regarding error when adding text with quotes ' .. I have just found out thar I need to use addslash() function,
my q's is
where do i put this function?
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
$field_value = "I 'm bla bla"; $field_value = addslashes($field_value);
$sql = "Insert into TABLE values('$field_value');
----- Original Message -----
From: "Caleb Carvalho" <havanero
hotmail.com>
To: <php-general
lists.php.net>
Sent: Monday, October 01, 2001 2:05 PM
Subject: [PHP] still learning php
> I posted a msg earlier on regarding error when adding text with quotes '
> ..
> I have just found out thar I need to use addslash() function,
>
> my q's is
>
> where do i put this function?
>
>
>
> Caleb Carvalho
> Application Engineer
> LoadRunner/APM
> --------------------------------------------------------------------------
---------------
> Enterprise Testing and Performance Management Solutions
> --------------------------------------------------------------------------
---------------
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi Dimitris,
thanks, but what if I have 5 fields to add into ie name,surname,comments?
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
>From: "Dimitris Kossikidis" <dikos
vip.gr>
>To: "Caleb Carvalho" <havanero
hotmail.com>
>CC: <php-general
lists.php.net>
>Subject: Re: [PHP] still learning php
>Date: Mon, 1 Oct 2001 14:29:14 +0300
>
>$field_value = "I 'm bla bla";
>$field_value = addslashes($field_value);
>
>$sql = "Insert into TABLE values('$field_value');
>
>
>----- Original Message -----
>From: "Caleb Carvalho" <havanero
hotmail.com>
>To: <php-general
lists.php.net>
>Sent: Monday, October 01, 2001 2:05 PM
>Subject: [PHP] still learning php
>
>
> > I posted a msg earlier on regarding error when adding text with quotes '
> > ..
> > I have just found out thar I need to use addslash() function,
> >
> > my q's is
> >
> > where do i put this function?
> >
> >
> >
> > Caleb Carvalho
> > Application Engineer
> > LoadRunner/APM
> >
>--------------------------------------------------------------------------
>---------------
> > Enterprise Testing and Performance Management Solutions
> >
>--------------------------------------------------------------------------
>---------------
> > Mercury Interactive
> > 410 Frimley Business Park
> > Frimley, Surrey. GU16 7ST
> > United Kingdom
> > Telephone : +44 (0)1276 808300
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
Use addslashes() to escape single quotes or double quotes. It 's in the manual....
// giving some values $firstname ="Bob"; $lastname = "O' Reily"; // This could cause an error if not use addslashes $address = "Somewhere"; $age= 19;
// adding slashes to quotes $firstname = addslashes($firstname); $lastname = addslashes($lastname); $address = addslashes($address);
$sql = " insert into TABLE values ( '$firstname', '$lastname', '$address', $age) ";
----- Original Message -----
From: "Caleb Carvalho" <havanero
hotmail.com>
To: <dikos
vip.gr>
Cc: <php-general
lists.php.net>
Sent: Monday, October 01, 2001 3:36 PM
Subject: Re: [PHP] still learning php
> Hi Dimitris,
>
> thanks, but what if I have 5 fields to add into ie name,surname,comments?
>
>
>
> Caleb Carvalho
> Application Engineer
> LoadRunner/APM
> --------------------------------------------------------------------------
---------------
> Enterprise Testing and Performance Management Solutions
> --------------------------------------------------------------------------
---------------
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
>
> >From: "Dimitris Kossikidis" <dikos
vip.gr>
> >To: "Caleb Carvalho" <havanero
hotmail.com>
> >CC: <php-general
lists.php.net>
> >Subject: Re: [PHP] still learning php
> >Date: Mon, 1 Oct 2001 14:29:14 +0300
> >
> >$field_value = "I 'm bla bla";
> >$field_value = addslashes($field_value);
> >
> >$sql = "Insert into TABLE values('$field_value');
> >
> >
> >----- Original Message -----
> >From: "Caleb Carvalho" <havanero
hotmail.com>
> >To: <php-general
lists.php.net>
> >Sent: Monday, October 01, 2001 2:05 PM
> >Subject: [PHP] still learning php
> >
> >
> > > I posted a msg earlier on regarding error when adding text with quotes
'
> > > ..
> > > I have just found out thar I need to use addslash() function,
> > >
> > > my q's is
> > >
> > > where do i put this function?
> > >
> > >
> > >
> > > Caleb Carvalho
> > > Application Engineer
> > > LoadRunner/APM
> > >
>
>--------------------------------------------------------------------------
> >---------------
> > > Enterprise Testing and Performance Management Solutions
> > >
>
>--------------------------------------------------------------------------
> >---------------
> > > Mercury Interactive
> > > 410 Frimley Business Park
> > > Frimley, Surrey. GU16 7ST
> > > United Kingdom
> > > Telephone : +44 (0)1276 808300
> > >
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> > >
> > >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
You just add more fields: $sql = "Insert into TABLE values('$name', $surname, $comments); that's assuming that the order of the data exactly matches the order of the fields in the table.
Take the time to work through a couple of MySQL tutorials(assuming that's what you're using), and have a look at the tutorials Julie Meloni has on her http://www.thickbook.com site.
Miles
At 12:36 PM 10/1/01 +0000, Caleb Carvalho wrote:
>Hi Dimitris,
>
>thanks, but what if I have 5 fields to add into ie name,surname,comments?
>
>
>
>Caleb Carvalho
>Application Engineer
>LoadRunner/APM
>-----------------------------------------------------------------------------------------
>Enterprise Testing and Performance Management Solutions
>-----------------------------------------------------------------------------------------
>Mercury Interactive
>410 Frimley Business Park
>Frimley, Surrey. GU16 7ST
>United Kingdom
>Telephone : +44 (0)1276 808300
>
>
>
>>From: "Dimitris Kossikidis" <dikos
vip.gr>
>>To: "Caleb Carvalho" <havanero
hotmail.com>
>>CC: <php-general
lists.php.net>
>>Subject: Re: [PHP] still learning php
>>Date: Mon, 1 Oct 2001 14:29:14 +0300
>>
>>$field_value = "I 'm bla bla";
>>$field_value = addslashes($field_value);
>>
>>$sql = "Insert into TABLE values('$field_value');
>>
>>
>>----- Original Message -----
>>From: "Caleb Carvalho" <havanero
hotmail.com>
>>To: <php-general
lists.php.net>
>>Sent: Monday, October 01, 2001 2:05 PM
>>Subject: [PHP] still learning php
>>
>>
>> > I posted a msg earlier on regarding error when adding text with quotes '
>> > ..
>> > I have just found out thar I need to use addslash() function,
>> >
>> > my q's is
>> >
>> > where do i put this function?
>> >
>> >
>> >
>> > Caleb Carvalho
>> > Application Engineer
>> > LoadRunner/APM
>> > --------------------------------------------------------------------------
>>---------------
>> > Enterprise Testing and Performance Management Solutions
>> > --------------------------------------------------------------------------
>>---------------
>> > Mercury Interactive
>> > 410 Frimley Business Park
>> > Frimley, Surrey. GU16 7ST
>> > United Kingdom
>> > Telephone : +44 (0)1276 808300
>> >
>> >
>> > _________________________________________________________________
>> > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> > For additional commands, e-mail: php-general-help
lists.php.net
>> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>> >
>> >
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>>For additional commands, e-mail: php-general-help
lists.php.net
>>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
thank you soooo much that was much much better indeed :),
i am assuming that i need to use the same for sql_quey sql_display is that correct?
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
>From: "Dimitris Kossikidis" <dikos
vip.gr>
>To: "Caleb Carvalho" <havanero
hotmail.com>
>CC: <php-general
lists.php.net>
>Subject: Re: [PHP] still learning php
>Date: Mon, 1 Oct 2001 15:52:23 +0300
>
>Use addslashes() to escape single quotes or double quotes. It 's in the
>manual....
>
>// giving some values
>$firstname ="Bob";
>$lastname = "O' Reily"; // This could cause an error if not use addslashes
>$address = "Somewhere";
>$age= 19;
>
>// adding slashes to quotes
>$firstname = addslashes($firstname);
>$lastname = addslashes($lastname);
>$address = addslashes($address);
>
>$sql = " insert into TABLE values ( '$firstname', '$lastname', '$address',
>$age) ";
>
>----- Original Message -----
>From: "Caleb Carvalho" <havanero
hotmail.com>
>To: <dikos
vip.gr>
>Cc: <php-general
lists.php.net>
>Sent: Monday, October 01, 2001 3:36 PM
>Subject: Re: [PHP] still learning php
>
>
> > Hi Dimitris,
> >
> > thanks, but what if I have 5 fields to add into ie
>name,surname,comments?
> >
> >
> >
> > Caleb Carvalho
> > Application Engineer
> > LoadRunner/APM
> >
>--------------------------------------------------------------------------
>---------------
> > Enterprise Testing and Performance Management Solutions
> >
>--------------------------------------------------------------------------
>---------------
> > Mercury Interactive
> > 410 Frimley Business Park
> > Frimley, Surrey. GU16 7ST
> > United Kingdom
> > Telephone : +44 (0)1276 808300
> >
> >
> >
> > >From: "Dimitris Kossikidis" <dikos
vip.gr>
> > >To: "Caleb Carvalho" <havanero
hotmail.com>
> > >CC: <php-general
lists.php.net>
> > >Subject: Re: [PHP] still learning php
> > >Date: Mon, 1 Oct 2001 14:29:14 +0300
> > >
> > >$field_value = "I 'm bla bla";
> > >$field_value = addslashes($field_value);
> > >
> > >$sql = "Insert into TABLE values('$field_value');
> > >
> > >
> > >----- Original Message -----
> > >From: "Caleb Carvalho" <havanero
hotmail.com>
> > >To: <php-general
lists.php.net>
> > >Sent: Monday, October 01, 2001 2:05 PM
> > >Subject: [PHP] still learning php
> > >
> > >
> > > > I posted a msg earlier on regarding error when adding text with
>quotes
>'
> > > > ..
> > > > I have just found out thar I need to use addslash() function,
> > > >
> > > > my q's is
> > > >
> > > > where do i put this function?
> > > >
> > > >
> > > >
> > > > Caleb Carvalho
> > > > Application Engineer
> > > > LoadRunner/APM
> > > >
> >
> >--------------------------------------------------------------------------
> > >---------------
> > > > Enterprise Testing and Performance Management Solutions
> > > >
> >
> >--------------------------------------------------------------------------
> > >---------------
> > > > Mercury Interactive
> > > > 410 Frimley Business Park
> > > > Frimley, Surrey. GU16 7ST
> > > > United Kingdom
> > > > Telephone : +44 (0)1276 808300
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at
> > >http://explorer.msn.com/intl.asp
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > To contact the list administrators, e-mail:
>php-list-admin
lists.php.net
> > > >
> > > >
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >For additional commands, e-mail: php-general-help
lists.php.net
> > >To contact the list administrators, e-mail:
>php-list-admin
lists.php.net
> > >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
$sql = " select firstname, lastname, address etc from TABLE";
execute sql statement;
while fetching records { $firstname = stripslashes( $firstname); $lastname = stripslashes ( $lastname); // "O\' Reily" now becomes "O' Reily" } that's all
----- Original Message -----
From: "Caleb Carvalho" <havanero
hotmail.com>
To: <dikos
vip.gr>
Cc: <php-general
lists.php.net>
Sent: Monday, October 01, 2001 4:32 PM
Subject: Re: [PHP] still learning php
> thank you soooo much that was much much better indeed :),
>
> i am assuming that i need to use the same for sql_quey sql_display
> is that correct?
>
>
> Caleb Carvalho
> Application Engineer
> LoadRunner/APM
> --------------------------------------------------------------------------
---------------
> Enterprise Testing and Performance Management Solutions
> --------------------------------------------------------------------------
---------------
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
>
> >From: "Dimitris Kossikidis" <dikos
vip.gr>
> >To: "Caleb Carvalho" <havanero
hotmail.com>
> >CC: <php-general
lists.php.net>
> >Subject: Re: [PHP] still learning php
> >Date: Mon, 1 Oct 2001 15:52:23 +0300
> >
> >Use addslashes() to escape single quotes or double quotes. It 's in the
> >manual....
> >
> >// giving some values
> >$firstname ="Bob";
> >$lastname = "O' Reily"; // This could cause an error if not use
addslashes
> >$address = "Somewhere";
> >$age= 19;
> >
> >// adding slashes to quotes
> >$firstname = addslashes($firstname);
> >$lastname = addslashes($lastname);
> >$address = addslashes($address);
> >
> >$sql = " insert into TABLE values ( '$firstname', '$lastname',
'$address',
> >$age) ";
> >
> >----- Original Message -----
> >From: "Caleb Carvalho" <havanero
hotmail.com>
> >To: <dikos
vip.gr>
> >Cc: <php-general
lists.php.net>
> >Sent: Monday, October 01, 2001 3:36 PM
> >Subject: Re: [PHP] still learning php
> >
> >
> > > Hi Dimitris,
> > >
> > > thanks, but what if I have 5 fields to add into ie
> >name,surname,comments?
> > >
> > >
> > >
> > > Caleb Carvalho
> > > Application Engineer
> > > LoadRunner/APM
> > >
>
>--------------------------------------------------------------------------
> >---------------
> > > Enterprise Testing and Performance Management Solutions
> > >
>
>--------------------------------------------------------------------------
> >---------------
> > > Mercury Interactive
> > > 410 Frimley Business Park
> > > Frimley, Surrey. GU16 7ST
> > > United Kingdom
> > > Telephone : +44 (0)1276 808300
> > >
> > >
> > >
> > > >From: "Dimitris Kossikidis" <dikos
vip.gr>
> > > >To: "Caleb Carvalho" <havanero
hotmail.com>
> > > >CC: <php-general
lists.php.net>
> > > >Subject: Re: [PHP] still learning php
> > > >Date: Mon, 1 Oct 2001 14:29:14 +0300
> > > >
> > > >$field_value = "I 'm bla bla";
> > > >$field_value = addslashes($field_value);
> > > >
> > > >$sql = "Insert into TABLE values('$field_value');
> > > >
> > > >
> > > >----- Original Message -----
> > > >From: "Caleb Carvalho" <havanero
hotmail.com>
> > > >To: <php-general
lists.php.net>
> > > >Sent: Monday, October 01, 2001 2:05 PM
> > > >Subject: [PHP] still learning php
> > > >
> > > >
> > > > > I posted a msg earlier on regarding error when adding text with
> >quotes
> >'
> > > > > ..
> > > > > I have just found out thar I need to use addslash() function,
> > > > >
> > > > > my q's is
> > > > >
> > > > > where do i put this function?
> > > > >
> > > > >
> > > > >
> > > > > Caleb Carvalho
> > > > > Application Engineer
> > > > > LoadRunner/APM
> > > > >
> > >
> >
>--------------------------------------------------------------------------
> > > >---------------
> > > > > Enterprise Testing and Performance Management Solutions
> > > > >
> > >
> >
>--------------------------------------------------------------------------
> > > >---------------
> > > > > Mercury Interactive
> > > > > 410 Frimley Business Park
> > > > > Frimley, Surrey. GU16 7ST
> > > > > United Kingdom
> > > > > Telephone : +44 (0)1276 808300
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > > Get your FREE download of MSN Explorer at
> > > >http://explorer.msn.com/intl.asp
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > > > For additional commands, e-mail: php-general-help
lists.php.net
> > > > > To contact the list administrators, e-mail:
> >php-list-admin
lists.php.net
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >PHP General Mailing List (http://www.php.net/)
> > > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > >For additional commands, e-mail: php-general-help
lists.php.net
> > > >To contact the list administrators, e-mail:
> >php-list-admin
lists.php.net
> > > >
> > >
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> > >
> > >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> >For additional commands, e-mail: php-general-help
lists.php.net
> >To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
attached mail follows:
hi,
my problem is this: i'm using a while loop to check elements in an Array for valid email syntax. if $User[0] is a valid email address but $User[1] is not, the code for $User[0] is still executed before the die statement. i need my loop to finish checking ALL array elements for validity, and to then die BEFORE any further code is executed. here's what i have now (it doesn't work):
//loop to check for bad email addresses:
$j = 0;
$flag = 0;
while ($j < count($User)){
if
(($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*
[a-z0-9-]+(\.[a-z0-9-]+)*$",
$User[$j]))
{
$flag = 1;
$errorNo = $j + 1;
}
//die if flag is 1
if ($flag = 1) {
die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
address!</b><br><br><br><a
href='javascript:window.history.back();'>Please return and correct
this.</a></p>");
}
else {
continue...
}
any suggestions would be great!
thanks much,
tom
attached mail follows:
> if ($flag = 1) { > die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
should be:
if ($flag == 1) // notice the double-equal signs
"Tom Churm" <thomas.churm
pixelpark.com> wrote in message
news:3BB85BC2.F2177483
pixelpark.com...
> hi,
>
> my problem is this: i'm using a while loop to check elements in an
> Array for valid email syntax. if $User[0] is a valid email address but
> $User[1] is not, the code for $User[0] is still executed before the die
> statement. i need my loop to finish checking ALL array elements for
> validity, and to then die BEFORE any further code is executed. here's
> what i have now (it doesn't work):
>
> //loop to check for bad email addresses:
> $j = 0;
> $flag = 0;
> while ($j < count($User)){
> if
>
(($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*
[a-z0-9-]+(\.[a-z0-9-
]+)*$",
> $User[$j]))
> {
> $flag = 1;
> $errorNo = $j + 1;
> }
> //die if flag is 1
> if ($flag = 1) {
> die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
> address!</b><br><br><br><a
> href='javascript:window.history.back();'>Please return and correct
> this.</a></p>");
> }
> else {
> continue...
> }
>
> any suggestions would be great!
>
> thanks much,
>
> tom
attached mail follows:
hi, _lallous:
i've tried it with "==" and it still doesn't work: code for the valid variables is executed before my die() function is called.
thanks, though,
tom
_lallous wrote:
>
> > if ($flag = 1) {
> > die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
>
> should be:
>
> if ($flag == 1) // notice the double-equal signs
>
> "Tom Churm" <thomas.churm
pixelpark.com> wrote in message
> news:3BB85BC2.F2177483
pixelpark.com...
> > hi,
> >
> > my problem is this: i'm using a while loop to check elements in an
> > Array for valid email syntax. if $User[0] is a valid email address but
> > $User[1] is not, the code for $User[0] is still executed before the die
> > statement. i need my loop to finish checking ALL array elements for
> > validity, and to then die BEFORE any further code is executed. here's
> > what i have now (it doesn't work):
> >
> > //loop to check for bad email addresses:
> > $j = 0;
> > $flag = 0;
> > while ($j < count($User)){
> > if
> >
> (($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*
[a-z0-9-]+(\.[a-z0-9-
> ]+)*$",
> > $User[$j]))
> > {
> > $flag = 1;
> > $errorNo = $j + 1;
> > }
> > //die if flag is 1
> > if ($flag = 1) {
> > die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
> > address!</b><br><br><br><a
> > href='javascript:window.history.back();'>Please return and correct
> > this.</a></p>");
> > }
> > else {
> > continue...
> > }
> >
> > any suggestions would be great!
> >
> > thanks much,
> >
> > tom
attached mail follows:
Where is the closing brace for your while loop?
-Steve
On Monday, October 1, 2001, at 07:04 AM, Tom Churm wrote:
> hi,
>
> my problem is this: i'm using a while loop to check elements in an
> Array for valid email syntax. if $User[0] is a valid email address but
> $User[1] is not, the code for $User[0] is still executed before the die
> statement. i need my loop to finish checking ALL array elements for
> validity, and to then die BEFORE any further code is executed. here's
> what i have now (it doesn't work):
>
> //loop to check for bad email addresses:
> $j = 0;
> $flag = 0;
> while ($j < count($User)){
> if
> (($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*
[a-
> z0-9-]+(\.[a-z0-9-]+)*$",
> $User[$j]))
> {
> $flag = 1;
> $errorNo = $j + 1;
> }
> //die if flag is 1
> if ($flag = 1) {
> die ("<p align='center'><b>Email #$errorNo is not a valid e-mail
> address!</b><br><br><br><a
> href='javascript:window.history.back();'>Please return and correct
> this.</a></p>");
> }
> else {
> continue...
> }
>
> any suggestions would be great!
>
> thanks much,
>
> tom
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Yes, but when you run it from command line it is run with your account that has H:\ mapped. The scheduler is run as the account 'System' and that doesn't know anything about H:\.
/Joakim
> -----Original Message-----
> From: Warren Vail [mailto:warren
availabletech.com]
> Sent: Saturday, September 29, 2001 7:27 AM
> To: joakim.andersson
cybercom.se
> Subject: RE: [PHP] Copying file to a network drive (in WinNT4)
>
>
> I'll give this a try and let you know. PHP seems to be able
> to get to my H
> drive when I execute via the command line;
>
> >c:/apache/php/php.exe backup.php
>
> but seems to not be able to find the H drive when run as a
> timed process;
>
> >at 7:00pm each(M,T,W,T,F) "c:/apache/php/php.exe backup.php"
> (not sure
> about the exact syntax here)
>
> perhaps the UNC path will do it.
>
> Thanks,
>
> Warren Vail
>
> -----Original Message-----
> From: joakim.andersson
cybercom.se
> [mailto:joakim.andersson
cybercom.se]
> Sent: Friday, September 28, 2001 1:14 AM
> To: warren
availabletech.com
> Subject: SV: [PHP] Copying file to a network drive (in WinNT4)
>
> My best bet is that PHP doesn't know that h:\ exists. I have
> seen similar
> things before,
> though not in PHP. Have you tried using the UNC path instead
> (\\COMPUTER\SHARE)?
>
> >I also tried to execute a direct copy command via command prompt:
> >$cmd = "cmd /c copy $src $dest";
> >passthru($cmd);
>
> Try mounting the network drive in PHP then copy the file:
>
> $cmd = "cmd /c net use h: \\COMPUTER\SHARE"; //Mount drive
> passthru($cmd);
>
> //Copy the file here
>
> $cmd = "cmd /c net use h: /delete"; //Unmount the drive
> passthru($cmd);
>
>
> /Joakim
>
> > -----Ursprungligt meddelande-----
> > Från: Warren Vail [mailto:warren
availabletech.com]
> > Skickat: fredag den 28 september 2001 03:37
> > Till: joe.kaiping
home.com; php-general
lists.php.net
> > Kopia: ville.mattila
pilotmedia.fi
> > Ämne: RE: [PHP] Copying file to a network drive (in WinNT4)
> >
> >
> > Let me know what you find, if anything. Seems I may be
> encountering a
> > similar problem executing mysqldump from a php script as a
> > scheduled command
> > on nt4. I can execute the command writing to a local drive
> > and a remote
> > drive when I execute from the DOS command line, but when
> running as a
> > scheduled (the AT command), the copy to the local drive
> works, but the
> > remote mounted drive fails. Does this sound similar?
> >
> > Good Luck,
> >
> > Warren Vail
> >
> > -----Original Message-----
> > From: Joe Kaiping [mailto:joe.kaiping
home.com]
> > Sent: Thursday, September 27, 2001 12:30 PM
> > To: php-general
lists.php.net
> > Cc: ville.mattila
pilotmedia.fi
> > Subject: RE: [PHP] Copying file to a network drive (in WinNT4)
> >
> >
> >
> > > -----Original Message-----
> > > From: Ville Mattila [mailto:ville.mattila
pilotmedia.fi]
> > > Sent: Thursday, September 27, 2001 11:10 AM
> > > To: joe.kaiping
home.com; php-general
lists.php.net
> > > Subject: Re: [PHP] Copying file to a network drive (in WinNT4)
> > >
> > > > Also, make sure that you have permission to create/modify
> > > the $dest file.
> > >
> > > Should be, because I can copy the file via "normal way" in
> > Windows....
> > >
> > >
> >
> > Hi again,
> >
> > Not sure what you're up against. I searched
> > http://www.php.net to confirm
> > h:\file is the correct Windows file system syntax to use.
> > Seems to be.
> > Also there is no mention of copy() not working on windows,
> > (except for when
> > using a sharename instead of a mapped drive name. (But you're
> > using a mapped
> > drive name, h))
> >
> > The apache daemon on unix runs under the permissions of a
> > certain system
> > user, usually "nobody". Not sure how NT does it, but if it
> > also runs under
> > a specific user, maybe that user doesn't have permission to
> > write to the
> > file?
> >
> > However, the version of PHP I'm running gives a "Permissions"
> > error message
> > when it doesn't have permission to write to the file. You
> > got the following
> > error instead, but I'm not sure about the behavior of PHP on
> > windows, maybe
> > a different error message is output when you don't have permission.
> >
> > Warning: Unable to create 'h:\redhouse.jpg': Invalid argument in
> > c:\apache\htdocs\copypic.php on line 14
> >
> > Anyway, I was unable to reproduce the "Invalid argument"
> > error on Unix. I
> > would doubt that there in a bug with copy() for Windows
> > without it already
> > appearing on the PHP site. So I'd guess that it is caused
> because PHP
> > doesn't like the format of the contents of either $src or
> > $dest. I'd suggest
> > going over those again with a magnifying glass. It sounds
> > like you already
> > have, though, so I'm out of thoughts for right now.
> >
> > Sorry for not being able to help any more. Best of luck!
> >
> > -Joe
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin
lists.php.net
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin
lists.php.net
> >
>
attached mail follows:
PersonalDB´Â »õ·Î¿î °³ÀÎ Áö½Ä ¹× Á¤º¸°ü¸® ½Ã½ºÅÛÀÔ´Ï´Ù.
PersonalDB¿Í ÇÔ²² »õ·Î¿î Á¤º¸È ¼¼°è·Î ³ª¾Æ°¡Áö ¾ÊÀ¸½Ã°Ú½À´Ï±î?
To. php-general ´Ô²²
PersonalDB.net ȸ¿øÀ¸·Î ÃÊ´ë¹ÞÀ¸¼Ì½À´Ï´Ù.
From. À¥°ü¸®ÀÚ ( mailmaster )
_____
¾È³çÇϼ¼¿ä. ¸¸³ª ºË°Ô µÇ¾î ¹Ý°©½À´Ï´Ù.
º» »çÀÌÆ®´Â È¿À²ÀûÀ¸·Î ÀÚ½ÅÀÇ Áö½Ä°ú Á¤º¸, ÀÚ·áµéÀ» °ü¸®Çϸç ÀÌ·¯ÇÑ ÀڷḦ Ä£±¸µé°ú °øÀ¯Çϰųª ȨÆäÀÌÁö¿¡ °Ô½Ã,
¶Ç´Â Áö½Äâ°í¿¡¼ ÆÇ¸ÅÇÒ ¼ö ÀÖ´Â »õ·Î¿î ½Ã½ºÅÛÀÔ´Ï´Ù.
±ÍÇϲ²¼ ¿©·¯ Àڷᳪ Áö½ÄÀ» °®°í °è½Ã´Ù¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ƯÁ¤ºÐ¾ßÀÇ Àü¹®°¡³ª ¸Å´Ï¾Æ½Ã¶ó¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ¿©·¯ Á¤º¸¸¦ ã°í °è½Å´Ù¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ¿©·¯ ÀÚ·áµé¸¦ Ä£±¸³ª µ¿·áµé°ú °øÀ¯ÇÏ°í ½ÍÀ¸½Ã¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ±ÍÇÏ¿Í ±ÍÇÏÀÇ Ä£¿ìµé¸¸ÀÇ ¿Â¶óÀÎ ¸ðÀÓÀ» °®°í ½ÍÀ¸½Ã´Ù¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ±ÍÇÏÀÇ Áö½ÄÀ¸·Î ¸Å¿ù ÀÏÁ¤ÇÑ ¼öÀÔÀ» ¾ò°í ½ÍÀ¸½Ã¸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ȨÆäÀÌÁö¸¦ °®°í °è½Ã°Å³ª ȨÆäÀÌÁö¸¦ ¸¸µå½Ç ¿¹Á¤À̸é ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
±ÍÇϲ²¼ ȸ»ç¿Í Áý, PC¹æµî ¿©·¯ Àå¼Ò¿¡¼ ÄÄÇ»Å͸¦ »ç¿ëÇϽŴٸé ÀúÈñ¿Í ÇÔ²² ÇϽñ⸦ ¹Ù¶ø´Ï´Ù.
À§ÀÇ Áö½Ä°ü¸® À̿ܿ¡µµ ¸¹Àº ¼ºñ½º°¡ Á¦°øµÇ¸ç ¼ºñ½º´Â °è¼Ó È®´ëµÇ°í ÀÖ½À´Ï´Ù.
°¡ÀÔÀº ¹«·áÀÔ´Ï´Ù.
ÆíÁö°¡ ±ÍÇÏ¿Í ÇÔ²² »õ·Î¿î Áö½Ä,Á¤º¸È°µ¿À» ÇÒ ¼ö ÀÖ´Â ÀÛÀº Àο¬ÀÌ µÉ ¼ö ÀÖ±æ Áø½ÉÀ¸·Î ¹Ù¶ó¸ç, Çã¶ô¾øÀÌ º»
¸ÞÀÏÀ» º¸³½µ¥ ´ëÇÏ¿© Á˼۽º·± ¸¶À½À» ±ÝÇÒ ¼ö ¾ø½À´Ï´Ù.
¾ÕÀ¸·Î Ãß°¡µÇ´Â ¼ºñ½º¿Í µî·ÏµÇ´Â ¿©·¯ ¿ì¼öÇÑ ÀÚ·áµé¿¡ °üÇÑ Á¤º¸¸¦ Á¦°øÇØ µå¸± ¿¹Á¤ÀÔ´Ï´Ù¸¸ ¸¸ÀÏ ÀúÈñ »çÀÌÆ®·ÎºÎÅÍ
¸ÞÀÏÀ» ¹ÞÁö ¾Ê±â¸¦ ¿øÇϽô °æ¿ì ¾Æ·¡ÀÇ ¼ö½Å°ÅºÎ¸¦ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
<http://www.PersonalDB.net>
PersonalDB´Â?
°³Àεðºñ - ÀÚ·áÀÇ º¸°ü, °øÀ¯, ¸Å¸Å¸¦ À§ÇÑ °³ÀÎDB Á¦°ø
- °³ÀÎÀÚ·á½Ç, °³Àξٹü, °³Àκϸ¶Å©·Î ±¸¼º
- º¸°ü¿ë,ȨÆäÀÌÁö °Ô½Ã,ÀÚ·á°øÀ¯,Áö½Äâ°í¿¡¼ÀÇ ÆÇ¸Å¿ëÀ¸·Î Ȱ¿ë
°³Àεðºñ - ½ºÄÉÁÙ·¯, ÀϱâÀå, ¸Þ¸ðÀå, To Do List, °³ÀÎÁÖ¼Ò·Ï...
- °³ÀÎÁ¤º¸°ü¸®¿¡ ÇÊ¿äÇÑ ¸ðµç °³Àμºñ½º Á¦°ø
- ¸ðµç ¼ºñ½ºÀÚ·á´Â ´Ù¾çÇÏ°Ô È°¿ëµÊ
°³Àεðºñ - ¾Æ¿ô·èÀÇ ±â´ÉÀ» ¸ðµÎ À¥À¸·Î
- °·ÂÇÏ°í Æí¸®ÇÑ ÁøÁ¤ÇÑ À¥¸ÞÀÏ
- µð·ºÅ丮°ü¸®,¼ö½Å°ÅºÎÁ¶°Ç,ºÎÀçÁßÀÀ´ä,POPÁö¿øµî °·ÂÇÑ ±â´É
°³Àεðºñ - ¸ðµç ȸ¿øDBÀÇ ºÐ·ùº° ¸ðÀ½
- Àü¹®°¡ÄÚ³Ê, Q&A µîÀÇ ´Ù¾çÇÑ Áö½Ä½Àµæ¹æ¹ý
- ȸ¿ø °³ÀÎÁö½Ä, ÀÚ·áÀÇ ÆÇ¸Å°¡ °¡´É
- °¢ ȸ¿øµéÀÇ Àü¹®°Ô½ÃÆÇ¸ðÀ½À¸·Î ´Ù¾çÇÑ ÀÚ·á ½Àµæ°¡´É
°³Àεðºñ - ȨÆäÀÌÁö ¸¶¹ý»ç·Î °£´ÜÇÑ ±¸¼º °¡´É
- ÆÄÀϸŴÏÀú·Î À¥»ó¿¡¼ »èÁ¦, ¾÷/´Ù¿î·Îµå, ¼öÁ¤ °¡´É
- °³ÀÎDBÀÚ·áÀÇ ÀÚµ¿¾÷µ¥ÀÌÆ® ±â´ÉÀ¸·Î °ü¸® °£Æí
- °øÁö»çÇ×, °Ô½ÃÆÇ, ¹æ¸í·Ï, Ä«¿îÅÍµî ´Ù¾çÇÑ ºÎ°¡¼ºñ½º
°³Àεðºñ - Æó¼â¼Ò¸ðÀÓ°ú °ø°³¼Ò¸ðÀÓÀ¸·Î ±¸ºÐ
- °³ÀÎDBÀÇ °øÀ¯ °¡´É
- °øÁö»çÇ×, °Ô½ÃÆÇ, ÀÚ·á½Ç, ȸ¿øÁÖ¼Ò·Ïµî ´Ù¾çÇÑ ¼ºñ½º Á¦°ø
¾î¶²ºÐ¿¡°Ô ÇÊ¿äÇÒ±î¿ä?
* Áý, Çб³, ȸ»ç, PC¹æµî ¿©·¯ Àå¼Ò¿¡¼ PC¸¦ »ç¿ëÇÏ´Â ºÐ
* ¾î¶² ºÐ¾ßÀÇ ÀڷḦ ¸ðÀ¸½Ã°Å³ª ¸¹ÀÌ º¸À¯ÇÏ°í °è½Å ºÐ
* ÇÑ ºÐ¾ßÀÇ Àü¹®°¡À̰ųª ¸Å´Ï¾ÆÀ̽ŠºÐ
* Áß¿äÇÑ ÀڷḦ º¸°üÇØ¾ß ÇÏ´Â ºÐ
* ÀÚ½ÅÀÇ Áö½ÄÀ̳ª Á¤º¸, ÀÚ·á·Î ¸Å¿ù ¼öÀÍÀ» ¿Ã¸®°í ½ÍÀ¸½Å ºÐ
* ÇÊ¿äÇÑ Áö½ÄÀ̳ª Á¤º¸¸¦ ã¾Æ À¥¼ÇÎÀ» ÀÚÁÖ ÇϽô ºÐ
* ƯÁ¤ÇÑ ºÐ¾ß¿¡ ´ëÇÏ¿© Àü¹®°¡ÀÇ µµ¿òÀÌ ÇÊ¿äÇϽŠºÐ
* Ä£±¸³ª µ¿·áµé°ú ÀڷḦ ±³È¯,°øÀ¯ÇÒ Çʿ䰡 ÀÖÀ¸½Å ºÐ
* ȨÆäÀÌÁö¸¦ °®°í Àְųª ¸¸µé·Á°í ÇϽô ºÐ
* ȨÆäÀÌÁö¸¦ °®°í ÀÖÁö¸¸ °ü¸®ÇÏ´Â µ¥¿¡ ¾î·Á¿òÀ» ´À³¢°Å³ª ±ÍÂúÀ¸½Å ºÐ
* Ä£±¸, µ¿Ã¢, µ¿·áµî°ú ¿ì¸®¸¸ÀÇ ¸ðÀÓÀ» ¸¸µé°í ½ÍÀ¸½Å ºÐµé
* ¾î¶² ÁÖÁ¦¿¡ ´ëÇÏ¿© ¿©·¯ »ç¶÷µé°úÀÇ ¸ðÀÓÀÌ ÇÊ¿äÇϽŠºÐµé
* Àϱâ,¸Þ¸ðÀå,½ºÄÉÁÙ·¯µî ¿©·¯ °³Àμºñ½º¸¦ ÀÌ¿ëÇÏ°í ½ÍÀ¸½Å ºÐ
* Æí¸®ÇÏ°í °·ÂÇÑ ÀüÀÚ¿ìÆíÀÌ ÇÊ¿äÇϽŠºÐ
* °¡Á·,Ä£±¸,µ¿·á¿ÍÀÇ »çÁøÀ» ÀüÀÚ¾Ù¹üÀ¸·Î Á¦ÀÛÇÏ°í ½ÍÀ¸½Å ºÐ
* ¹«¾ùº¸´Ùµµ ü°èÀûÀ̸ç È¿°úÀûÀÎ Áö½Ä°æÀï·ÂÀ» °®Ãß°í ½ÍÀ¸½Å ºÐ
ÀÌ·± ºÐµéÀº ¾î¼ °¡ÀÔÇϼ¼¿ä. »õ·Î¿î ¼ºñ½º¸¦ ´À³¢½Ç ¼ö ÀÖ½À´Ï´Ù.
°¡ÀÔºñ¿ë ¹× ÀÌ¿ë·á´Â?
¹°·Ð °¡ÀÔ°ú ÀÌ¿ë·á´Â ¹«·áÀÔ´Ï´Ù.
´ÜÁö °¡ÀÔÇϽñ⸸ Çϸé À§ÀÇ ¸ðµç ¼ºñ½º¸¦ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
ÇÏÁö¸¸ ¸¹Àº ¿ë·®°ú Ưº°ÇÑ ÇýÅÃÀ» ¿øÇϽô ºÐµéÀ» À§ÇÏ¿© ÇÁ¸®¹Ì¾öȸ¿øÁ¦µµ¸¦ ¿î¿µÇϰí ÀÖ½À´Ï´Ù.
ÇÁ¸®¹Ì¾öȸ¿øÀ¸·Î °¡ÀÔÇϽøé Àú·ÅÇÑ °¡°ÝÀ¸·Î ÃæºÐÇÑ ¿ë·®°ú ÇÔ²² Áö½Äâ°í¿¡¼ÀÇ ¸Å¸Å³ª ÄÁÅÙÃ÷±¸ÀԽà Ưº°ÇÑ ÇýÅÃÀ» µå¸³´Ï´Ù.
ÇÁ¸®¹Ì¾öȸ¿øÀ¸·Î °¡ÀÔ... ÁöºÒµÇ´Â ºñ¿ëº¸´Ù ¸¹Àº ÀÌÀÍÀÌ È¸¿ø¿©·¯ºÐ²² µ¹¾Æ°©´Ï´Ù.
Áö±Ý °¡ÀÔÇϼ¼¿ä
PersonaDB ¿ÀDZâ³äÀ̺¥Æ®
Áö±Ý ¿ÀDZâ³ä À̺¥Æ®Çà»ç°¡ ¿¸®°í ÀÖ½À´Ï´Ù.
´Ü 1°³¿ù°£¸¸ÀÇ ±âȸ ( 2001.9.1 ~ 2001.9.30 )
Áö±Ý ÇÁ¸®¹Ì¾öȸ¿øÀ¸·Î °¡ÀÔÇϽøé 1°³¿ù ¹«·áÀÌ¿ëÀÇ ±âȸ¸¦ µå¸³´Ï´Ù.
³õÄ¡Áö ¸¶¼¼¿ä.
<http://www.PersonalDB.net>
Copyright ¨Ï2001 PersonalDB.net All rights reserved. With Questions,
please E-mail us <http://www.PersonalDB.net/default.asp?direct=ask.htm>
| ¼ö½Å°ÅºÎ
<lists.ph
">http://www.personaldb.net/lib/reject_mail.asp?addr=php-general
lists.ph
p.net>
attached mail follows:
Hello Group,
I could not find a solution on Sybase Results paging.
Can anybody help me please?
Thank you.
attached mail follows:
bonjour ,
Aimeriez-vous survoler pendant 20 mn la Provence en hélicoptère ? admirer plus de 400 photos et textes inédits ? tout cela existe maintenant sur un simple CD expédiable au tarif lettre. pour plus de détails visitez la rubrique CATALOGUE du site :
http://www.lavandetcigales.com
ahugues2
wanadoo.fr
notre Société propose également des CD sur Paris , Londres , Amsterdam , Barcelone , etc. cordialement Alain HUGUES Sté Lou Prouvenco 91,rue de Bucarest 13300 Salon-de-Provence 33 04 90 45 05 69
pour ne plus recevoir notre e-mail retournez ce message avec en objet : REMOVE
attached mail follows:
Recursion means you call a function which calls itself to get the job done. Recursive functions have two parts, the base case and the recursive method. The base case is the goal which signals that your function stops calling itself... sort of like the condition in a while loop... but for a function rather than a loop.
Here is a simple recursive script I posted to this list a while back.
function Get_Tree($directory) { global $dirs;
if (substr($directory,-1) != "/") $directory = $directory . "/";
$fh = opendir($directory); while ($file = readdir($fh)) { if (is_dir($directory . $file) && $file != ".." && $file != ".") { $dirs[count($dirs)] = $directory . $file; Get_Tree($directory.$file); } } closedir($fh); }
When you are done $dirs will be an array of all the directory names below $directory (the initial value of $directory). Here the base case is when you reach a directory without any subdirectories (every $file fails the if statement).
Anyway, I hope this helps. If you have any specific questions about recursion feel free to drop me a line =P
Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com
----- Original Message -----
From: "Andres Montiel" <andoymail
yahoo.com>
To: <php-general
lists.php.net>
Sent: Sunday, September 30, 2001 12:23 PM
Subject: [PHP] Recursion
> One of my classes next semester needs me to program using a language > that does "recurison". I don't really know what this means, though. Can > PHP do this? > > Thanks!
attached mail follows:
Thank you so much! This eases my worries for next semester.
Would happen to have an example script showing PHP using recursion?
Thanks again!
Martin wrote:
>Hi Andres, > >Yes, PHP support "recoursion". That means, that you are calling a function >again and again, but with new start-parameters. For example, if you want to >search a harddisc for a file, you will call your >function SearchFolder($path) >with "C:\". If the function itself detects subfolder, it will call itself, >but with the parameters "C:\Subfolder1", "C:\Subfolder2" and so on. You >have to watch out then, the the function terminated correctly, if the >searched file is found. > >Martin > > > >
attached mail follows:
My god does PHP need one. Or a library of functions to use.
Yes, I have built in CURL support and am reading the $HTTP_RAW_DATA_POST variable and rolling my own as they say, but it sure would be nice. I've seen Manual Lemos' soap classes, and they are cool, but aren't really what I need.
PHP is fast, has beautiful syntax and I love it, but I think it needs to grow up a bit. I don't mean to start a war, but it is true, php needs to evolve into something beyond a newbie language great for producing db driven web-sites.
I wish I could help, and after a few more C classes I will be able to, but until then, I can only hope some C wizard is producing something like this. Web-services are going to be big. Independent of .net (*uck MS), but the messaging (SOAP) paradigm over http is going to be big. How does php fit in there?
It looks as though we're headed over to tomcat, and I'm probably going to bring a bunch of php developers with me. And that sucks, because tomcat is slow, and it takes twice as long to produce an application w/ non masters level or big time CS people.
The first thing I'm going to try though is running php as a servlet under tomcat, but it's only to get at the apache soap tools. See what I mean.
Thanks to all the php developers. 'gards - Eric
attached mail follows:
You could also consider possibly the reverse of what you're doing. I'm not sure if it would actually work well, nor can I give you real details on how to do it, but you can always use Java classes from PHP. Depending on how much SOAP is needed/used across your site, you could continue with PHP for the bulk of your site, and just use Java classes to handle the SOAP stuff when needed. The primary issue I don't know about since I haven't looked into it, is whether it's reasonable to have PHP receive the initial SOAP request and how you would then hand it off to the Java classes for processing, etc. Anyway, just a thought...
-----Original Message-----
From: Dahnke, Eric [mailto:EDahnke
nextsource.com]
Sent: Monday, October 01, 2001 8:15 AM
To: php-general
lists.php.net
Subject: [PHP] SOAP Tool Kit for PHP
My god does PHP need one. Or a library of functions to use.
Yes, I have built in CURL support and am reading the $HTTP_RAW_DATA_POST variable and rolling my own as they say, but it sure would be nice. I've seen Manual Lemos' soap classes, and they are cool, but aren't really what I need.
PHP is fast, has beautiful syntax and I love it, but I think it needs to grow up a bit. I don't mean to start a war, but it is true, php needs to evolve into something beyond a newbie language great for producing db driven web-sites.
I wish I could help, and after a few more C classes I will be able to, but until then, I can only hope some C wizard is producing something like this. Web-services are going to be big. Independent of .net (*uck MS), but the messaging (SOAP) paradigm over http is going to be big. How does php fit in there?
It looks as though we're headed over to tomcat, and I'm probably going to bring a bunch of php developers with me. And that sucks, because tomcat is slow, and it takes twice as long to produce an application w/ non masters level or big time CS people.
The first thing I'm going to try though is running php as a servlet under tomcat, but it's only to get at the apache soap tools. See what I mean.
Thanks to all the php developers. 'gards - Eric
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Thanks. That's what I'm doing, and it is working, but it doesn't seem like it will be very robust, and I don't know if my roll your own will be compliant with MS SOAP messages and Apache SOAP messages.
I'm reading the Soap:Envelope and Body XML via the $HTTP_RAW_DATA_POST variable. It comes as a string. I parse that XML to determine the method to invode (create, edit whatever). It works, but just seems sketch. Especially the ack back to the poster. It says 200 OK, because the host and file I'm posting to are found, but if there is an error in the method or anywhere else, I'm supposed build the SOAP:Fault XML and send that back.
I mean all the IP functions in PHP are so nice, and SOAP is an IP service as well. Why no love for SOAP?
-----Original Message-----
From: Chris Bailey [mailto:chris
codeintensity.com]
Sent: Monday, October 01, 2001 1:30 PM
To: Dahnke, Eric; php-general
lists.php.net
Subject: RE: [PHP] SOAP Tool Kit for PHP
You could also consider possibly the reverse of what you're doing. I'm not sure if it would actually work well, nor can I give you real details on how to do it, but you can always use Java classes from PHP. Depending on how much SOAP is needed/used across your site, you could continue with PHP for the bulk of your site, and just use Java classes to handle the SOAP stuff when needed. The primary issue I don't know about since I haven't looked into it, is whether it's reasonable to have PHP receive the initial SOAP request and how you would then hand it off to the Java classes for processing, etc. Anyway, just a thought...
-----Original Message-----
From: Dahnke, Eric [mailto:EDahnke
nextsource.com]
Sent: Monday, October 01, 2001 8:15 AM
To: php-general
lists.php.net
Subject: [PHP] SOAP Tool Kit for PHP
My god does PHP need one. Or a library of functions to use.
Yes, I have built in CURL support and am reading the $HTTP_RAW_DATA_POST variable and rolling my own as they say, but it sure would be nice. I've seen Manual Lemos' soap classes, and they are cool, but aren't really what I need.
PHP is fast, has beautiful syntax and I love it, but I think it needs to grow up a bit. I don't mean to start a war, but it is true, php needs to evolve into something beyond a newbie language great for producing db driven web-sites.
I wish I could help, and after a few more C classes I will be able to, but until then, I can only hope some C wizard is producing something like this. Web-services are going to be big. Independent of .net (*uck MS), but the messaging (SOAP) paradigm over http is going to be big. How does php fit in there?
It looks as though we're headed over to tomcat, and I'm probably going to bring a bunch of php developers with me. And that sucks, because tomcat is slow, and it takes twice as long to produce an application w/ non masters level or big time CS people.
The first thing I'm going to try though is running php as a servlet under tomcat, but it's only to get at the apache soap tools. See what I mean.
Thanks to all the php developers. 'gards - Eric
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Check out this page of SOAP implementations:
http://www.soapware.org/directory/4/implementations
It lists several for PHP, so those may give you a solution.
This is an interesting issue though, especially in light of you bringing up Tomcat. I don't mean to start a big flame war over languages, but this is one thing I struggle with in PHP land too. I've been doing Java stuff for years, and am just starting to develop a few things in PHP. PHP is fast and easy to use, and a lot easier to setup than Tomcat (or worse, Apache+Tomcat, and further, if you have a non-standard directory structure). But, what I've found so far, is that if I need to do pretty much anything beyond a simple web app that is mostly a database client, Java just has so many more libraries and resources available, from SOAP, to XML, XSL, and more. While it's not true that PHP doesn't have any of this, it just seems there is more momentum and solidity behind these types of things for Java.
For example, I'm working on a web app that does a lot of XSL processing, and immediately I can just grab the various Apache XML and XSL toolkits and get rolling. On PHP I can look into Sablotron and some stuff, but I don't get a feeling that I'd have near the level of functionality, and quality (or solidity/maturity of code) as I would with the various Java based tools.
-----Original Message-----
From: Dahnke, Eric [mailto:EDahnke
nextsource.com]
Sent: Monday, October 01, 2001 10:46 AM
To: 'Chris Bailey'
Cc: 'php-general
lists.php.net'
Subject: RE: [PHP] SOAP Tool Kit for PHP
Thanks. That's what I'm doing, and it is working, but it doesn't seem like it will be very robust, and I don't know if my roll your own will be compliant with MS SOAP messages and Apache SOAP messages.
I'm reading the Soap:Envelope and Body XML via the $HTTP_RAW_DATA_POST variable. It comes as a string. I parse that XML to determine the method to invode (create, edit whatever). It works, but just seems sketch. Especially the ack back to the poster. It says 200 OK, because the host and file I'm posting to are found, but if there is an error in the method or anywhere else, I'm supposed build the SOAP:Fault XML and send that back.
I mean all the IP functions in PHP are so nice, and SOAP is an IP service as well. Why no love for SOAP?
-----Original Message-----
From: Chris Bailey [mailto:chris
codeintensity.com]
Sent: Monday, October 01, 2001 1:30 PM
To: Dahnke, Eric; php-general
lists.php.net
Subject: RE: [PHP] SOAP Tool Kit for PHP
You could also consider possibly the reverse of what you're doing. I'm not sure if it would actually work well, nor can I give you real details on how to do it, but you can always use Java classes from PHP. Depending on how much SOAP is needed/used across your site, you could continue with PHP for the bulk of your site, and just use Java classes to handle the SOAP stuff when needed. The primary issue I don't know about since I haven't looked into it, is whether it's reasonable to have PHP receive the initial SOAP request and how you would then hand it off to the Java classes for processing, etc. Anyway, just a thought...
-----Original Message-----
From: Dahnke, Eric [mailto:EDahnke
nextsource.com]
Sent: Monday, October 01, 2001 8:15 AM
To: php-general
lists.php.net
Subject: [PHP] SOAP Tool Kit for PHP
My god does PHP need one. Or a library of functions to use.
Yes, I have built in CURL support and am reading the $HTTP_RAW_DATA_POST variable and rolling my own as they say, but it sure would be nice. I've seen Manual Lemos' soap classes, and they are cool, but aren't really what I need.
PHP is fast, has beautiful syntax and I love it, but I think it needs to grow up a bit. I don't mean to start a war, but it is true, php needs to evolve into something beyond a newbie language great for producing db driven web-sites.
I wish I could help, and after a few more C classes I will be able to, but until then, I can only hope some C wizard is producing something like this. Web-services are going to be big. Independent of .net (*uck MS), but the messaging (SOAP) paradigm over http is going to be big. How does php fit in there?
It looks as though we're headed over to tomcat, and I'm probably going to bring a bunch of php developers with me. And that sucks, because tomcat is slow, and it takes twice as long to produce an application w/ non masters level or big time CS people.
The first thing I'm going to try though is running php as a servlet under tomcat, but it's only to get at the apache soap tools. See what I mean.
Thanks to all the php developers. 'gards - Eric
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
When doing XML/XSL stuff that applies to just about any scripting language as Java has always been the reference implementation for this. When leaving the XML space the same is not true. But yes, we have a bit of catching up to do when it comes to XML/XSL/XSLT.
-Rasmus
On Mon, 1 Oct 2001, Chris Bailey wrote:
> Check out this page of SOAP implementations:
>
> http://www.soapware.org/directory/4/implementations
>
> It lists several for PHP, so those may give you a solution.
>
> This is an interesting issue though, especially in light of you bringing up
> Tomcat. I don't mean to start a big flame war over languages, but this is
> one thing I struggle with in PHP land too. I've been doing Java stuff for
> years, and am just starting to develop a few things in PHP. PHP is fast and
> easy to use, and a lot easier to setup than Tomcat (or worse, Apache+Tomcat,
> and further, if you have a non-standard directory structure). But, what
> I've found so far, is that if I need to do pretty much anything beyond a
> simple web app that is mostly a database client, Java just has so many more
> libraries and resources available, from SOAP, to XML, XSL, and more. While
> it's not true that PHP doesn't have any of this, it just seems there is more
> momentum and solidity behind these types of things for Java.
>
> For example, I'm working on a web app that does a lot of XSL processing, and
> immediately I can just grab the various Apache XML and XSL toolkits and get
> rolling. On PHP I can look into Sablotron and some stuff, but I don't get a
> feeling that I'd have near the level of functionality, and quality (or
> solidity/maturity of code) as I would with the various Java based tools.
>
>
> -----Original Message-----
> From: Dahnke, Eric [mailto:EDahnke
nextsource.com]
> Sent: Monday, October 01, 2001 10:46 AM
> To: 'Chris Bailey'
> Cc: 'php-general
lists.php.net'
> Subject: RE: [PHP] SOAP Tool Kit for PHP
>
>
>
> Thanks. That's what I'm doing, and it is working, but it doesn't seem like
> it will be very robust, and I don't know if my roll your own will be
> compliant with MS SOAP messages and Apache SOAP messages.
>
> I'm reading the Soap:Envelope and Body XML via the $HTTP_RAW_DATA_POST
> variable. It comes as a string. I parse that XML to determine the method to
> invode (create, edit whatever). It works, but just seems sketch. Especially
> the ack back to the poster. It says 200 OK, because the host and file I'm
> posting to are found, but if there is an error in the method or anywhere
> else, I'm supposed build the SOAP:Fault XML and send that back.
>
> I mean all the IP functions in PHP are so nice, and SOAP is an IP service as
> well. Why no love for SOAP?
>
>
>
> -----Original Message-----
> From: Chris Bailey [mailto:chris
codeintensity.com]
> Sent: Monday, October 01, 2001 1:30 PM
> To: Dahnke, Eric; php-general