Hello Team,
I was wondering if there is anyone that would like to teach
Me the language as a teacher of a class would. Like
Giving assignments and stuff.
I tried to learn from books and website tutorials but it doesn't
Seem to do the trick for me.
Would anybody be willing to do this, if so p
Robert Cummings wrote:
To decrement the quantity of an item in the trolley:
RNum] ) )
{
$_SESSION['TrolleyContents'][$myData->RNum] -= 1;
if( $_SESSION['TrolleyContents'][$myData->RNum] <= 0 )
{
unset( $_SESSION['TrolleyContents'][$myData->RNum] );
}
}
?>
I'll leave it as an e
On Sun, 2005-10-02 at 00:37, John Taylor-Johnston wrote:
> Robert Cummings wrote:
>
> > > session_name( 'CCLTrolley' );
> > session_start();
> > // Initialize the trolley.
> > if( !isset( $_SESSION['TrolleyContents'] ) )
> > {
> > $_SESSION['TrolleyContents'] = array();
> > }
> > // Add new entry
Of course you are right. I was fooled by this page:
http://www.wiki.cc/php/RecursiveIterator
class RecursiveArrayIterator extends ArrayIterator implements
RecursiveIteratorIterator
{
function hasChildren()
{
return is_array($this->current());
}
function getChildren()
On Sun, 2005-10-02 at 00:41, John Taylor-Johnston wrote:
> Robert Cummings wrote:
>
> > And $_SESSION instead of session_register and always access your session
> > vars through $_SESSION.
>
> I'm safe with "PHP Version 4.1.2" ?
Should be. The docs state that the $_XXX series of vars were introd
Robert Cummings wrote:
And $_SESSION instead of session_register and always access your session
vars through $_SESSION.
I'm safe with "PHP Version 4.1.2" ?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
$_SESSION['TrolleyContents'][$_POST['AddToTrolley']] =
$_POST['AddToTrolley']
}
echo implode( ',', $_SESSION['TrolleyContents'] );
?>
I've never been very good getting my head around arrays.
Then how do I check to know if $mydata->RNum is in
$_SESSION['TrolleyContents
On Sun, 2005-10-02 at 00:32, John Taylor-Johnston wrote:
> > >
> > session_name( 'CCLTrolley' );
> > session_start();
> >
> > //
> > // Initialize the trolley.
> > //
> > if( !isset( $_SESSION['TrolleyContents'] ) )
> > {
> >$_SESSION['TrolleyContents'] = '';
> > }
> >
> > //
> > // Add new en
Robert Cummings wrote:
John Taylor-Johnston wrote:
Robert Cummings wrote:
Why is it outdated semantics?
Might i refer you to:
http://ca.php.net/manual/en/language.variables.predefined.php
http://ca.php.net/manual/en/function.session-register.php
$HTTP_POST_VARS has been consid
hello again
I have been battling this mysterious char thats showing up in the buffer
when i first log onto my chat, or else try to add new things to the logon
function, I am getting the code not to "fall through" to the next prompt
however, using $varname = socket_recv($sock, $read, 1024, 0)
th
On Sun, 2005-10-02 at 00:18, John Taylor-Johnston wrote:
>
> P.S. do folks prefer I reply on top or on bottom?
Some people don't care, but those that do care have loud voices and
would prefer you bottom post since they haven't yet been upgraded to
random access reading and are still hooked up to a
John Taylor-Johnston wrote:
Looks a bit odd to me :) But could be because you're using outdated
semantics. It should be sufficient to do the following:
[snip]
Why is it outdated semantics?
I believe he was referring to your use of $HTTP_POST_VARS and
session_register, which have been replac
On Sun, 2005-10-02 at 00:18, John Taylor-Johnston wrote:
> Robert Cummings wrote:
>
> Why is it outdated semantics?
>
> P.S. do folks prefer I reply on top or on bottom?
Might i refer you to:
http://ca.php.net/manual/en/language.variables.predefined.php
http://ca.php.net/manual/en/function.sess
Robert Cummings wrote:
On Sat, 2005-10-01 at 23:57, John Taylor-Johnston wrote:
$TrolleyContents is a string.
Basically what I want to accomplish here is if $TrolleyContents already
exists append $AddToTrolley to $TrolleyContents, if not register
$TrolleyContents.
Am I going about it righ
On Sat, 2005-10-01 at 23:57, John Taylor-Johnston wrote:
> $TrolleyContents is a string.
> Basically what I want to accomplish here is if $TrolleyContents already
> exists append $AddToTrolley to $TrolleyContents, if not register
> $TrolleyContents.
> Am I going about it right?
> John
>
> #prin
$TrolleyContents is a string.
Basically what I want to accomplish here is if $TrolleyContents already
exists append $AddToTrolley to $TrolleyContents, if not register
$TrolleyContents.
Am I going about it right?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
[EMAIL PROTECTED] wrote:
rdfpic2html( $rdfpicdata );
Shouldn't that be:
$rdfpicdata = rdfpic2html( $rdfpicdata );
Since you haven't defined rdfpic2html as receiving its argument by
reference...
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
--
PH
The transformation is not returning anything new, just the comment
segment as it was before sending it to rdfpic2html. I am trying to
modify http://www.ozhiker.com/electronics/pjmt/ PJMT's JPEG.php to
transform http://jigsaw.w3.org/rdfpic/ rdfpic xml in the comment
segment of jpegs and return i
Thanks for your reply, Philip.
> realpath() is your friend...
That has been my first impression too, but...
> realpath() expands all symbolic links
I am actually using symlinks :)
I trust the files on my server so "local redirects" via symlinks are no
problem, the user submitted data is.
Reg
I'm working on a script which basically loads an image, the user
requested and wonder how to properly sanitize the passed path. For
instance the user should never ever be able to do somtehing
like ?load=../../../etc/passwd.
My approach so far is to simply urldecode() the given string and return
a
Hi,
I'm working on a script which basically loads an image, the user
requested and wonder how to properly sanitize the passed path. For
instance the user should never ever be able to do somtehing
like ?load=../../../etc/passwd.
My approach so far is to simply urldecode() the given string and r
depends imho there are a lot of reasons to use a db approach, unless
you are working on a really poor system,
first is persistent in any case you'll never lost an item
is the only way to make your software scalable to hundreds of users,
using array you have everything in memory, you must set up you
Hello,
On Saturday 01 October 2005 17:13, jonathan wrote:
> you could try the native SOAP extension in php5.
>
> A client asked me about this recently and I told him I thought he
> should use java / axis because of problems with PHP / SOAP
> specifically as it relates to handling certain data types
To be brief I would like to know if Indexdata's PHP/YAZ is compatible
with PHP 5.0.3 and if so what steps may be taken taken to build it.
The configure file that comes with PHP 5.0 contains no mention of yaz
so how does one build PHP (and the php_yaz.so) short of adding the
configure infor
you could try the native SOAP extension in php5.
A client asked me about this recently and I told him I thought he
should use java / axis because of problems with PHP / SOAP
specifically as it relates to handling certain data types.
-jonathan
On Oct 1, 2005, at 1:49 PM, Reuben D. Budiardja
Frank Keessen schrieb:
> Can you please help me with the following
> This is in the array($info[0]["bdnadvocaat"])
> Array ( [count] => 2 [0] => 210 [1] => 149 )
> This is the code:
> $testje=array($info[0]["bdnadvocaat"]);
> $test=array_shift($testje);
> print_r($test);
> This is the output
>
Hello,
I need to implement a client for Web services. My first option is to use SOAP,
but it seems that the pear SOAP package is still in beta. Do you think it's
ready for a production quality site? If not, what are my other options? What
do people use in this case?
Thank you.
RDB
--
PHP Gene
Erik Franzén schrieb:
> Fatal error: CMAES_DomIterator cannot implement
> RecursiveIteratorIterator - it is not an interface ...
>
> Does not PHP 5.0.5 support the RecursiveIteratorIterator Interface?
No, it doesn't. Like it tells you: RecursiveItraorIterator is no an
interface. It's a class. Yo
I have the following class
class CMAES_DomIterator implements RecursiveIteratorIterator
{
}
When I am instanciating the class I am getting the following error:
Fatal error: CMAES_DomIterator cannot implement
RecursiveIteratorIterator - it is not an interface ...
Does not PHP 5.0.5 suppo
hello all,
I have noticed on this server/talk/chat I am trying to write, that when i
or another user logs on, right away, it will go to the if statement in my
chat handling function, that says something to the affect of /* something
entered but not a . */
if(($words[0] != '.' ) && count($words
On Sat, 2005-10-01 at 11:41, adriano ghezzi wrote:
> you need a db based approach, just setup a couple of tables in mysql
>
> items table
> one record per item
>
> current cart table
> one record per each item added to cart with unique session id
>
> order table
> one record per each item ordere
On Sat, 2005-10-01 at 09:31, Emil Novak wrote:
> Hi!
>
> The best way is already presented in PHP manual:
> http://www.php.net/oop . In this example you create an object, which
> you can - naturaly pass over Session, etc.
>
> If you'll use OOP (Object-Oriented Programming), it is preffered in
> P
Daevid Vincent wrote:
Are you f'ing kidding me?!
http://www.php.net/manual/en/ref.session.php
"Some types of data can not be serialized thus stored in sessions. It
includes resource variables or objects with circular references (i.e.
objects which passes a reference to itself to another object)
I don't think you are doing FTP. I think you mean uploading using an
upload form.
Just increase the threshold in the php.ini file or set it in the script.
Hope this helps.
On 9/30/05, Matt Palermo <[EMAIL PROTECTED]> wrote:
> Hello everyone. I'm basically building a PHP FTP client app. This ap
you need a db based approach, just setup a couple of tables in mysql
items table
one record per item
current cart table
one record per each item added to cart with unique session id
order table
one record per each item ordered with unique order id
you'll transfer records here from current cart
Scott, I hope this code help you:
[PHP CODE]
/*
* Author:
* Josue Aranda <[EMAIL PROTECTED]>
*/
// This set an $arr
$arr= array(
'ABC' => array(
'DEF' => 'Data'
zzapper wrote:
Hi,
I can use
if (count($somearray) > 0) to test for an empty array.
why don't you test it.
$a = array();
$b = array(null, null, null);
$c = array(false, false);
$d = array(1, 1, 1);
echo "array \$a: \n---\n";
var_dump(empty($a), count($a), array_filt
Hi!
The best way is already presented in PHP manual:
http://www.php.net/oop . In this example you create an object, which
you can - naturaly pass over Session, etc.
If you'll use OOP (Object-Oriented Programming), it is preffered in
PHP5 to use OOP5 (OOP for PHP5). You can find details on
http://
hello,
i have encountered in a problem while creating traffic exchange script.
while running the script in SSN , it displays warning like
strpos(); Empty delimeter. line 86. in rundaily.php
i have attached the script file rundaily.php and logtraffic.php below
plz, kindl
39 matches
Mail list logo