hello everyone
I feel a little stupid asking this but I have tried multiple searches on google and on
php.net and cant seem to find the snippet of code that will iterate through all the
global variables for the session
thanks in advance
Well Unfortunately pat
You are going to have to be an unlazy man and use an if statement
Chris
>
> Calling the following retor_test() function causes a "Parse error: parse
> error, unexpected T_RETURN" message when the script is run:
>
> function istrue() {
> return true;
> }
> function retor_
Susan
It appears that you will want to use a database. and update it when the
files are removed. (possibly provide a page to do uploading, modifications
and deletions with .. this way you can automate the db)
other than that you will have to recreate everything each time you process
or display th
hat I read is correct.
Chris
> I am LD. I do have the in my code. The leads_id is an
> autonumber, it the primary key for the table. What do the .$field. gives
> you over $field?
> Also another LD mistake, addlead.php is addlead.php.
>
> I will try it.
>
> Payne
>
Hi Payne
for starters your missing an ? at the last echo
secondly I would rewrite the sql statement to read
$sql = "INSERT INTO $table_name
(leads_id, title, f_name, l_name)
VALUES
(' ".$leads_id." ', ' ".$title." ', ' ".$f_name." ', ' ".$l_name."
');";
but the state
<-- snip -->
From: "Chris W. Parker" <[EMAIL PROTECTED]>
> The address is: http://mydomain.com/forums/ssi.php?a=active
>
> The code I'm trying now is:
> $_GET['a'] = 'active';
> include('forums/ssi.php');
You're including the parent file in itself. This could be the problem.
<--SNIP -->
espec
well for starters dan I would pass the first element as a string variable
that way I could echo the string and see what it actually says ie
$stringtopass = " ";
$stringtopass .=" ";
$stringtopass .=" ";
$stringtopass .=" Search
";
$stringtopass .=" by
Borrower";
$stringtopass .=" ";
$strin
http://ca.php.net/manual/en/ref.pdf.php
check this out you should find what you need
<-- snip -->
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
I need to allow a user to access a PDF file, only if he/she is logged
in as a registered user. So here is the code that I am trying to use. I
hav
Warning ! Don't add one to your key ($j++) in this case. The "count()"
method count ( :) ) return the number of existing keys in the $chk
array. You'll make hole in your array if you do this :
$arr[0] = "toto";
count($arr) => 1;
$arr[1] = "tata";
count($arr) => 2;
$arr[count[$arr]++] = "titi";
<-- snip -->
> Hi, I want to add a new element to an array in php, is the following way
the
> correct way? assuming that $chk is an array and $ID contains a value.
>
>
> $j = count($chk);
> $j++;
> $chk[$j] = $ID;
<-- snip -->
Yes that is one method of doing it. another method of adding an elemen
Yes the null is ignored when a var is passed
<-- SNIP-->
Ok, so if an argument is supplied to the function, the "= null" is
ignored?
Jeff
<-- snip -->
chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why dont you trim the string first to ensure that there are no empty spaces
at the end and beginning of it
http://ca3.php.net/manual/en/function.trim.php
and then do your count.
Chris
<-- SNIP -->
Good day all
I have a txt file that has values from various strings written to it.
What Im lookin
To Whom it may concern the following users
[EMAIL PROTECTED]
[EMAIL PROTECTED]
has been flooding me with viruses. fortunately I have the appropriate safeguards in
place.
however this does not seem like appropriate activity for users and members of this
list to attempt on anyone let alone the
Hey Muru your sending viruses disguised as a ms security update
either its accidental which you want to look for the Win32/NewMalware.gen
cause thats what is being sent
or its not which then you kinda want to be a little more inconspicious about it
I found phpchartdirector to be a nice third party app
http://www.hotscripts.com/Detailed/12237.html
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Balaji H. Kasal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "PHP
List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 10:12 AM
Su
> > Yea its not bad if you dont have a life outside of programming and/or
> > computers
> Well most professionals who would go to this conference -- IMHO -- would
> be doing it because it would be worth while. For instance, I considered
> going because if it reduced the time it takes for me to dev
Yea its not bad if you dont have a life outside of programming and/or
computers
if you have kids or other responsibilities then all of a sudden 500$ becomes
a very large issue as thats a months groceries or what not...
heh yea the average salary is 50K but then when the government takes 40% (if
try closing the value sections with single quotes that way the html
processiing can see the value
it was
echo "";
now is
echo "";
- Original Message -
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 10:05 AM
Thanks for starting my day out with a chuckle.. this is one of the better
tongue in cheek items I have seen in a little bit
Chris
I think the BEST php editor "out there" is Microsoft's Visual Studio.
Here's some of the reasons I think Visual Studio is the BEST
1. None of that annoying syntax
iew'] == \"y\") { \n"
>
> You need to escape the dollar signs in your string.
>
> ." if (\$_GET['preview'] == \"y\") { \n"
>
> --
> ---John Holmes...
<-- snip -->
Chris Sherwood
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check this out dan
It may help
http://www.mysql.com/doc/en/EXPLAIN.html
- Original Message -
From: "Dan Anderson" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 8:38 AM
Subject: [PHP] mySQL overhead: Tweaking Scripts for Speed
> I'm trying to
<-- snip -->
I can do
- site.com/info/template.html and get two alerts
- site.com/info/content1.html and see a new text under H1
- site.com/info/slick.php/content1.html and get neither alert nor new text.
- instead I get 4 browser (IE) 'problem alerts', I presume
- 1. for not finding js1.js
-
have you thought about usiing a switch statement that way all the if or else
if statements are not checked against?
ie
if ($option1)
> { do_1(); }
> elseif ($option2)
> { do_2(); }
> // ... continue for 10 or more options...
> }
> ?>
- Original Message -
From: "Dan Anderson" <
<-- snip -->
> > I dont know much about classes, but dont you want
> >
> > $a = new THECHILD('walter'); //so you can access $a->abc
> >
> > instead of
> >
> > $a = new THEPARENT ('walter');
>
> No, I'm wanting to EXTEND the orginal class.
>
> meaning, my THECHILD class efines new methods/propertie
Webmaster.
Yes they can, but you must pass the reference to the object and not simply the "value"
per se.
ie
$newObject = New phpWeb.Class.Sql();
$returnvalue = PerformUserValidation(&$newObject);
a quick search on google revealed a few things
http://www.google.ca/search?q=browser+based+POS&ie=UTF-8&oe=UTF-8&hl=en&meta=
try that and see if any of those meet your requirements
Chris
- Original Message -
From: "John Almberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday,
another.
also you dont have a break on your process case statement so it will carry
out the default and include the apply.inc file again.
only other thing is not having a ; at the end of your error suppressed echos
dont cause a problem?
Chris Sherwood
--- ---
Okay, this is a tricky one (i
Honestly if you have the users logging in use a session variable to contain
a session id
then verify against that sessionid as they browse the sensitive sections and
use a class to verify that they are a valid user
so yes Ideally sessions are the way to go
Chris
- Original Message -
Fro
depends on whether or not you post or get
then you use
$_POST["varname"]
or
$_GET["varname"]
hope this helps
- Original Message -
From: "Seth Willits" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 11:00 AM
Subject: [PHP] Form Parameters
> This might be st
header('Location: ' . $newLocation);
- Original Message -
From: "Alvaro Martinez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 9:13 AM
Subject: [PHP] open php from
> Hi!
> I'm a beginner. I want to redirect from one php page to another php page
and
> I dont k
No its not a bug
basically what you did was assign a value to a value of a variable
a $$ is how you access the value of a variable as a variable
- Original Message -
From: "Steve Todd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 1:27 PM
Subject: [PHP] I
sorry its actually
http://www.php.net/manual/en/function.session-cache-limiter.php
- Original Message -
From: "Tim Winters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 9:26 AM
Subject: [PHP] back button and forms
> Hello,
>
> I have a series of forms
session.cache_expire
is what your looking for I believe
http://www.php.net/manual/en/ref.session.php
- Original Message -
From: "Tim Winters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 9:26 AM
Subject: [PHP] back button and forms
> Hello,
>
> I hav
... keep it to yourself
now how does that equate to being like or bringing back hitler?
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Chris Sherwood" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06
}
well for starters checkboxes dont have a size and maxlength
you may want to try that and see if it works...
- Original Message -
From: "Amanda McComb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 2:47 PM
Subject: [PHP] bug in code - can't find it!
silly me
upon further looking
>
>
- Original Message -
From: "Amanda McComb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 2:47 PM
Subject: [PHP] bug in code - can't find it!
> Ok, after all of the discussion on posting, I'm afraid to post.
> Unfortunatel
well I have been watching this post all morning and now into the afternoon..
personally I think there is differences in responses and well there are
definite persons with an elitist attitude, some of these people are
newbies... under immense amounts of pressure to pull something off... what
does i
I have seen this exact same header before in this list, so I am going to
assume this is a troll
Chris
- Original Message -
From: "binc2" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 8:26 AM
Subject: Re: Re: [PHP] Possible My Website was hac
After reading your problem
this is what I think you should do is dont let the user enter the string
predelimited
have them enter each individual string at which point you can safely search
for the delimiter and replace it with the character of your choice "_" is a
favorite of mine.
then rebuild t
It looks like your adding 10 to 8 thus getting 18... of course I maybe
looking at this wrong
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 9:23 AM
Subject: [PHP] PHP and Mysql Limit
>
> I've created a script that reads a sorted mysq
you can do it by assigning them to a single string or by adding the second
to the firsst
$youroriginalfirststring .= $thestringyouwanttoadd;
please note the .
Chris
- Original Message -
From: "Derick Rethans" <[EMAIL PROTECTED]>
To: "Ryan Vennell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED
there is a setting you need to make after the session start
http://ca3.php.net/manual/en/function.session-cache-expire.php
check that link out I think that it will resolve alot of problems for you..
however I have noticed forms are a little trickier... usually what I do with
those is create the
Alot of it depends on the demand and where you are...
but averages here in Vancouver BC range from 40k a year all the way to 75k a
year
- Original Message -
From: "Gladk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 11:20 AM
Subject: [PHP] PHP-programmers salary
Andrew... I think most likely you will have to pull the information into a
php page and parse it.
you then will be able to get accurate results and I dont know if mysql has
an explode function
it doesnt look like it
http://www.mysql.com/doc/en/Function_Index.html
- Original Message -
Fr
echo "";
this doesnt work cause the engine doesnt like that
try this
echo "";
"Anthony" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> tough to tell... but it looks like you have the " and ' mixed up before
the
> > in the end :-P
>
> - Anthony
>
> "Lso ." <[EMAIL PROTECTED]
try using fopen();
http://www.php.net/manual/en/function.fopen.php
- Original Message -
From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 3:37 PM
Subject: [PHP] Command line php output redirection.
> This is really scaring me as file r
hmm I am not sure but check this link out it may answer your questions
http://ca3.php.net/manual/en/features.http-auth.php
- Original Message -
From: "Sparky Kopetzky" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 2:41 PM
Subject: [PHP] One more
hmmm can you check to see if your field is exactly named desc in the
table... also whether or not it can accept string ie char or varchar.
- Original Message -
From: "Steven Efurd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 2:03 PM
Subject: [PHP] mysql update
LOL my mistake jason I should have paid more attention
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:26 PM
Subject: Re: [PHP] quotes
> On Thursday 26 June 2003 01:33, Chris Sherwood wrot
to the names array
and links to the links array...
I know this isnt pretty but it should work
- Original Message -
From: "Daniel J. Rychlik" <[EMAIL PROTECTED]>
To: "Chris Sherwood" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003
http://www.sleepycat.com/products/documentation.shtml
try that it is the online documentation for the Berkeley db
"Logan McKinley" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> I have absolutely no experience with Berkeley db but have been told by my
> ISP that it is what I n
use globals to pass the information to other pages..
http://www.php.net/manual/en/language.variables.php
"Ben" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Ok, I'm sort of a beginner at this, so cut me some slack. :-) Ok, I have
an
> if then statement that after you click a
I haven't found anything that would handle the problem you have... in my
case I would create the galleries that I needed... maybe write some
reiterate code that would display recreated thumbs from the images...
this could be done when the upload is done and the new image created from
the old one
ROTECTED]>
To: "Daniel J. Rychlik" <[EMAIL PROTECTED]>; "Chris Sherwood"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:17 AM
Subject: Re: [PHP] Passing Array to object
> Its erroring at my display links function. This func
Have you tried to assign the array to a variable then pass the variable to
the function ie
$index = new main();
$yourvar = array('array values');
$index->SetLink ($yourvar);
- Original Message -
From: "Daniel J. Rychlik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June
IL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:58 AM
Subject: Re: [PHP] quotes
> On Thursday 26 June 2003 00:02, Chris Sherwood wrote:
> > well thats seems unlikely as I do it all the time..
> >
> > how ever I am not going to argue p's and q's ...
> > if i
Steve have you tried to search the entire drive for the php.ini file?
- Original Message -
From: "Steve Marquez" <[EMAIL PROTECTED]>
To: "PHP eMail List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 8:59 AM
Subject: [PHP] php.ini
> I am running MacOSX and can not find my php.ini f
well thats seems unlikely as I do it all the time..
how ever I am not going to argue p's and q's ...
if it doesnt work for him it doesnt work
- Original Message -
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Chris Sherwood" <[EMAIL PROTECTED]>
Cc:
or you would escape the quote by putting a \ in front of it that way the
engine knows to "write" the quote.
ie input type=\"text\"
- Original Message -
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Lso ." <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 7:47 AM
Sub
I am not sure what you mean but if you are trying to call functions that
exist within your class
you need to do something like the following
$fg = new YourClass.class.php;
$fg->yourfunctionname($arguements);
- Original Message -
From: "Daniel Rychlik" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
CVS is a known versioning tool... it resides on a linuxx or unix server and
is free (from gnu) if I remember correctly
otherwise its a google search
- Original Message -
From: "J J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 3:31 PM
Subject: [PHP] Source/versio
check out this link it should have the answers your looking for
http://ca3.php.net/manual/en/function.imagecreatefromjpeg.php
- Original Message -
From: "Hardik Doshi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 2:14 PM
Subject: [PHP] Change image file size dyn
PHPCoder Pro is a very nice development enviroment as well
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2003 8:22 PM
Subject: Fw: [PHP] php editor?
> Try to these PHP development environment:
>
> * Nusphere Studio
> * Zend Studio
> * M
if I read it right it looks like it returns what is the remainder as per any
normal mod function
so fer instance you want to get the remainder when you divide 10 by 3 (which
we both know is 1)
$remainder = bcmod(10,3);
for example I think
- Original Message -
From: "Thomas Bolioli"
I use PHPCoder Pro and it works great... hook it into your php and apache
engines and you can run and debug while coding
- Original Message -
From: "Noel Wade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 9:57 AM
Subject: Re: [PHP] Re: php editor?
> My favorit
Build a JavaScript and have it execute as the document loads... i.e. in the
body tag with an onLoad event...
the header function in php will not do anything if you have sent output
already
-Original Message-
From: Carl Furst [mailto:[EMAIL PROTECTED]
Sent: June 13, 2003 9:23 AM
To: [EMAI
and what consequences would that be.. its not law
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: June 11, 2003 3:27 PM
To: chris sherwood
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] nl2br
Standards-compliant HTML can be written just as cheaply and easily as
IE
That's true but how would you feel if you made some choices and then had
people criticizing it when you have no choice due to resource and funding
restrictions?
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: June 11, 2003 3:13 PM
To: chris sherwood
Cc: [
if they choose to limit to ie thats their choice ...
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: June 11, 2003 2:51 PM
To: Miles Thompson
Cc: [EMAIL PROTECTED] Php. Net
Subject: Re: [PHP] nl2br
That's plain wrong. This is the /world wide/ web, not the IE users
Hi all
I have a cookie on the system and I know the name of the var set in it but
I seem to be unable to retrieve the info in the cookie.
any pointers?
Chris Sherwood
Nortia Learning Systems
(604)717-4323 office
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
70 matches
Mail list logo