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_test() {
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
-- 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 --
especially if the
Hi Payne
for starters your missing an ? at the last echo
? echo $l_name
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
is correct.
Chris
I am LD. I do have the ? echo ? 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
Chris Sherwood wrote:
Hi Payne
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
have
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 = htmlbody center;
$stringtopass .= form action=\%s\ method=post name=\frmSearch\input
type=hidden name=search value=yes;
$stringtopass .=
-- 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 element to
an
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; =
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 looking
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
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
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
Subject:
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
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 develop
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
try closing the value sections with single quotes that way the html
processiing can see the value
it was
echo tdinput type=text name=value.$j.$i. size=20
value=.$myString./td;
now is
echo tdinput type=text name=value'.$j.$i.' size=20
value='.$myString.'/td;
- Original Message -
From:
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 figure
.
. 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
-- 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
-
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);
-- 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/properties, and I want it
have you thought about usiing a switch statement that way all the if or else
if statements are not checked against?
ie
?php
while (something())
{
switch($option)
{
case $option1:
break;
case $option2:
break;
case $... etc
break;
}//
a quick search on google revealed a few things
http://www.google.ca/search?q=browser+based+POSie=UTF-8oe=UTF-8hl=enmeta=
try that and see if any of those meet your requirements
Chris
- Original Message -
From: John Almberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
or 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
--- SNIP ---
Okay, this is a tricky one (i
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 know what
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 staring
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 -
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] IS
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 have a
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 set
INPUT TYPE=checkbox NAME=? echo $search_result2['user_cd'];?
VALUE=?if ($search_result2[a.retired_flag] == 1){?CHECKED?}? ?echo
$search_result2[a.retired_flag]?
}
well for starters checkboxes dont have a size and maxlength
you may want to try that and see if it works...
- Original Message
... 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, 2003 2:04 PM
Subject: Re: [PHP] Stop neurotic
silly me
upon further looking
INPUT TYPE=checkbox NAME=? echo $search_result2['user_cd'];?
VALUE=? echo $search_result2[a.retired_flag];?
?if ($search_result2[a.retired_flag] == 1) echo CHECKED; ?
?echo $search_result2[a.retired_flag]?
- Original Message -
From: Amanda McComb [EMAIL
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 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 hacked...
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
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 mysql
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]
Sent:
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 -
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
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
echo input name='company' type='text' value='. htmlentities($company)
.';
this doesnt work cause the engine doesnt like that
try this
echo input name='company' type='text' value='.( htmlentities($company))
.';
Anthony [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
tough to
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
Subject: Re:
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: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003
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 file.
: 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 it doesnt work for him it doesnt work
- Original Message -
From
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 25,
]
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 function is inside my
main
class.
function DisplayLinks($links
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
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 link
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 need to
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 12:59 PM
Subject: Re: [PHP] Passing Array
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 wrote:
I dont know what you were
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 not
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 time -
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
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
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
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/version
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
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
* Maguma
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 favorite
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:
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
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: [EMAIL
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
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
70 matches
Mail list logo