> Code snippet ->
>
> header('Content-type: text/plain');
>
> $foo = ' ';
>
> echo "$foo\n";
>
>
> $path = '../../../';
> $bar = preg_replace('/()/', "$1" . $path . "$2",
$foo);
>
> echo $bar;
It's being greedy. Your pattern is matching
( )
and inserting $path between the two.
Use
$bar
> I am trying to generate arrays to hold inputs to columns. Column
> titles are input to a table as needed. They are read by the program
> and placed across the page. Then an array goes under each column name
> to collect the inputs to the various rows. Everything works except to
> dynamically
> Sorry for this post I know this is a mysql related question, i just
wanna
> have other comments.suggestions from this list.
> I have a problem regarding date queries in mysql. Im creating
inventory
> reports in PHP. I want to query from the date field a weekly report
for a
> specific month, year
I'm sorry, but I'm still confused. Can you show us a sample of the data
in the database and what you want the resulting form to look like for
that data? Maybe that'll help.
---John Holmes...
> -Original Message-
> From: Floyd Baker [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 24, 2
>From now on ask this on a MySQL list, please.
> 1.How many tables can be created inside a database? There is a maximum
> number?
Only limit is how many files your file system will allow in one
directory.
> 2.Is it possible to erase a table?
Yes
---John Holmes...
--
PHP General Mailing Lis
> Once upon a time I used to be able to POST form data to external sites
> with
> ASP and an MSXML (or something) server object on IIS and I'm wondering
if
> there's a similar sort of technique using PHP. Would prefer it if I
> didn't
> have to use anything that isn't part of your typical PHP/Apac
> I have user Header("Location: test.php") in a php file. It is not
working,
> instead I have got a warning of the form
>
> Warning: Cannot add header information - headers already sent by
(output
> started at /var/www/html/test.php:5) in /var/www/html/test.php on line
15
header() must come befor
> when using session registered variables
> i can only get them to save as session variables for one page
> then on the next page they are gone
> far as i can tell the variables are not getting written over or unset
> and the session is not gettting destroyed
> any other ideas what it might be?
Do
> sorry for posting this mysql question again. im searching for a report
> builder for mysql specifically for creating reports for
> invoice/receipt..etc.
> just like crystal reports and oracle report builder. or is there any
> suggestion to do it in PHP .
Get any of the hundreds of PDF classes
> I'm not worried about them using the query string for malicious
purposes-
> I
> have register_globals off... I'm worried about someone messing with
their
> cookie and sedding authorized to true- that _will_ change my $_SESSION
> variable, unless I can find some way to ignore cookies, which brings
> What I do on my pages is perhaps a convoluted way of doing it but it
> works. I set a username and password session variables. Every time
the
> page loads the script verifies the username and password are correct.
If
> not, they don't get to see the rest. This, in my mind, pervents
someone
> fr
> $req = MYSQL_QUERY("SELECT id FROM $TBL_NEWS ORDER BY nom LIMIT 0,
> $limit_news");
> $res = MYSQL_NUM_ROWS($req);
>
> This is my lines... It's not working... :-(
Use mysql_error() to find out why. Odds are one of your variables aren't
set when you think they are.
$req = mysql_query(" ... ") o
> I'm displaying the content of a mysql table with autoincrement index.
I
> want to be able to select the each row from the table using the check
> boxes. In order to do that, i want to assign to each checkbox the
> name=index of selected row.
> I assign to the checkboxes the value of selected id,
> Hi to all the PHP-Fans out there,
>
> i have a syntax-problem with the folowing preg_replace command:
>
> $returnString = preg_replace("/(href=\")(.+?)(\")/is",
> preg_quote("\\1".ebLinkEncode(."\\2".)."\\3"), $returnString);
>
> i'm trying to call my own function within a preg_replace functio
> Is it possible to get the creation date of a file that is going to be
> uploaded? I saw a function that returns the file creation date once on
> the server, but is it possible to get that information from a file
that
> is not yet on the server?
Not with PHP.
---John Holmes...
--
PHP General
> Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November
> 2002
Yes. Try strtotime() and date() in PHP, or break the string apart. If
this date is coming from MySQL, then look at the DATE_FORMAT() function
that you can use in your query to format it.
---John Holmes...
--
PHP G
> I'm looking for a way to seperate my HTML from my PHP and database
access
> code, I pointed in the direction of XTemplate. After having had a look
at
> XTemplate I'm not sure if it is current and stable under PHP 4 Is
it
> and
> if it isn't is there something better to use?
I don't know how
> -Original Message-
> From: Jami [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 01, 2002 3:53 AM
> To: PHP General
> Subject: [PHP] Session Variables Not Being Passed
>
> The code that I have is as such:
>
> //header.php
> if(isset($_POST['login'])){
> $checkuser = mysql_query("
> I have one problem:
> Date field in MySql database with value as "2002-31-12".
> I want to increment or decrement this date and to put it again in
table.
> Can someone help me to increment or decrement date with some days?
UPDATE yourtable SET yourcolumn = yourcolumn + INTERVAL 1 DAY WHERE ...
> Get a strange parse error at End of File
If you get a parse error on the very last line of the file, it's
generally because you missed a closing bracket somewhere.
In your case, you're missing the closing bracket for this elseif
elseif ($SENDMAIL == 'true')
This is where proper indentation o
> The script works fine but I have a question with the following line:
>
> $Pattern="(http://)([^[:space:]]+) ([[:alnum:]\.,-?/&=])"; // The
variable
> $Pattern is declared with three groupings.
>
> My question:
> If the user inadvertantly inputs a *space* _after_ the http://
grouping
> and
> _be
I need before to save date in database to do some checks with the
> inc/dec date.
> Cal you help me ?
>
> Thanks,
> Rosen
>
>
> "John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> 002301c29960$21d6a360$7c02a8c0@coconut">news:002301c29960$
> For instance, let's say I put _absolutely nothing_ in the URL textbox
and
> then hit submit - the PHP still processes _without_ an error.
>
> It says:
> "Your submission -- -- has been received!"
>
> I would've thought the eregi_replace() function would've validated an
> entry
> with no charact
[snip]
> > 2) How did you conclude that? Did you check that
> > list_writings(poetry)/list_writings($poetry) gives the correct
result?
> IE
> > echo list_writings(poetry)/list_writings($poetry) ?
>
> list_writings(poetry) simply spits out the output. 'echo
> list_writings(poetry)' was not designed
> I want to get date from database, to increment ot decrement it with
some
> days, to show the date and after thath
> if user confirm it to save it to database.
There are a ton of ways you can do it. You can select the date and it's
inc/dec value in the same statement:
SELECT datecol, datecol + I
> $Pattern = "(http://)?([^[:space:]]+)([[:alnum:]\.,-_?/&=])";
> $Replace = "http://\\2\\3\"; target=\"_new\">\\2\\3";
> $Array["URL"] = eregi_replace($Pattern, $Replace, $Array["URL"]);
>
> print ("Your submission--$Array[URL]--has been received!\n");
That does no checking or validation at all.
> I'm sure this is easy, but I'm drawing a blank. I need to have links
at
> the
> bottom of the page that passes arguments to the same script (itself)
when
> it
> gets reloaded. How do we do this?
>
> I have the links like this now:
>
>
>
> How do I determine what is passed? I need to do an
es here.";
> }
>
> The only thing that EVER gets displayed is the final else. (Main
content
> goes here.) What am I doing wrong? Once again, the links are in this
> format:
>
> Any ideas?
>
>
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]]
>
> I am just full of them this weekend. Is it possible to direct a header
> like a html link (i.e. target="_top") ? I have a page that is in a
frame,
> and I want the new page that is called to break the frame and load in
the
> entire frame.
Nope. Use JavaScript.
---John Holmes...
--
PHP Gener
> Thanks for this,
> I understand how to update in date in database, but I need when I get
date
> from database to increase or decrease before to save in database.
>
> Can you help me for this ?
Yeah, I already did:
> > You can select out the date you have now, use strtotime() to make it
> > int
[snip]
> I want to have my website split into several
> subdomains with a shared user system. That is to say that when someone
> logs into
> foo.mysite.com they'd also be logged into bar.mysite.com when they go
to
> it. It is my understanding that php sessions will not work in this
way,
> being th
> I am calling data from 3 checkboxes in a form, I can do that
with
> the
> $_POST stuff.
> But I want to also do the following:
>
> 1. If check box ³x² is checked, then also display data from form field
³y²
> with a after it. (like this: X Y)
maybe...
if(isset($_POST['x']))
{ echo $_P
> > I think what's happening here is a type issue. The comparison is
> returning
> a
> > boolean, so when $c != '0', the switch is true and the case is
resolving
> to
> > true, and executing. But when $c == '0', with switch is (false),
but
> the
> > case is true. Change the case to
> > ($c > chr(
> Ive just been getting myself deep into using sessions.
> Sessions are working as it should except for one condition.
> Say I log into the site, and the session is started, and I don't do
> anything for the next 30 mins, then go back to the site.
> Im temporarily logged out, but because the sessio
> take a look at the following code
> basic problem is, it works with the custom build string in the script
but
> not if get the code from a file.
> I allways used ereg_replace but after installing a newer version of
php
> (4.2.2) it became very slow, so now I'm trying preg_replace
>
> please help
> Can someone tell me how I can access data from a POST? I don't mean
> the variables because the data I'm getting doesn't have any. I have a
> client that is doing a simple HTTP Post to a server and appending xml
> data right after the header. I need access to the xml blob.
In php.ini, there is t
> I've noticed this as well with the things I've been doing for
sessions.
> They way I understand it is that the server side session storing
values is
> supposed to expire after a certain lenght of time. I currently have
this
> at default so I think it should expire after 24 mins. The cleanup is
d
> Wednesday, December 4, 2002, 4:01:07 AM, you wrote:
> >> Ive just been getting myself deep into using sessions.
> >> Sessions are working as it should except for one condition.
> >> Say I log into the site, and the session is started, and I don't do
> >> anything for the next 30 mins, then go bac
> i have got me a form, that when submitted is effectlively only one
> variable,
> but when i submit it, it grabs the last field displayed instead of the
one
> selected.. normally this would be easy but I think because I have it
> inside
> a loop it's playing havock on me..
>
>
> -[form code
> No question :)
> It's just that this is what the original question was about and why I
> suggested
> doing his own sesssion timeout check as the deleting proccess is too
> unreliable
> to depend on for timeout handling. PHP will quite happily return stale
> data
> which could be bad in a login ty
> Let me explain this as best I can. The user enters how many numbers he
> wants
> to add. This form goes to another page. This page loops a form field
and
> it's name is "num" and after num is the number it is currently on.
Here's
> the code:
>
>
>
> How many numbers to add:
>
> I know I'm trying to re-invent the wheel, but it is because I don't
know
> how
> they do it. I set up a script to pull a ruleset from mysql and then
loop
> through each row in the set. I then check each row as it loops until
I
> get
> to the row number I want and start echoing rows. I create t
> Is there a way to have errors in script not output to the screen? I
have a
> page that creates an error which really isn't a problem and I don't
want
> users to see the error message.
If this is a production machine, you should have display.errors OFF in
php.ini
---John Holmes...
--
PHP Gen
If this is mysql, you can use
SELECT * FROM konkuranse ORDER BY RAND() LIMIT 1
To get a random row and skip all that stuff you have...
---John Holmes...
> -Original Message-
> From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 5:36 PM
> To: [EMAIL
> On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote:
> > >I don't can redirect my page to new url
> > >please help me
> > >
> > >Carlos Alberto Pinto Hurtado
> >
> > I posted the answer on my web page.
>
> Can you redir
I know the text editor question has been beat to death, but I'm looking
for a simple editor with syntax highlighting that can be installed in
Windows by a general user. It would have to be something that didn't
access the registry, as normal users can't do that. Does anyone know of
a program like t
> now since nfo files tend to include a fair bit of of ASCII art in
them, i
> was wandering if there's a way to preserve the spaces in this file, so
the
> ASCII art is preserved.
This is an HTML issue. HTML will only show one space. You can convert
all spaces to or you can use the tags. is pro
> >> Take a look at this one it seemed to be pretty good, the closest
I've
> seen
> DN> to
> >> homesite functionality without the bloat.
> >> http://www.crimsoneditor.com/
This appears to work perfectly. Thank you. Hopefully it works at work.
> DN> Looks interesting - and no registry finagling y
As a followup, I know someone mentioned Crimson Editor for my question.
It installed fine on WinXP as a general user, but it wanted to access
the registry and wouldn't install as a general user under Win2K. FYI...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals
Daylight Savings Time?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 08, 2002 8:59 PM
> To: php
>
PHP script
with the session ID. You can have it search the session.save_path and
open up the file itself and create the session variables (plus implement
your own method to "save" them again). Or save your data in a database
that both PHP and JSP access in their own ways to get/save sessi
e line per element, so...
$line_to_read = 55;
$file_array = file('file.txt');
echo $file_array[$line_to_read];
Remember that arrays are zero based.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
ot; => "one hundred",
"b" => "seventeen",
"c" => "two thousand two");
$z = preg_replace("/\{([a-z]+)\}/e","\$a['$1']",$s);
echo $z;
Output:
I am going to be one hundred years old on the seventeenth of November,
two thousand t
> I know this seems easy, but I can't get it to work for the freaking
life
> of me. I have number that is an integer, lets say 15, and I need it
to
> be 15.00, for a monetary value. I've casted every which way to no
avail.
www.php.net/number_format
---John W. Holmes...
> > You mention that it is a login script and that input is rejected. Is
it
> > rejected when it is initially typed in, or is it reported as
rejected
> when
> > ensuing pages are served?
When it's initially typed in.
> > Please check the IE on the offending machine. Does it have security
> > set
> > I have a feeling it's going to work out to be something stupidly
> > simple... like these problems always do. :)
>
> =embarrassingly so! If you're taking this all off a user's say-so,
then it
> sounds like an eyeball job to me...
> =dn
I never did solve it, but it came down to a weird cookie
> Hello list,
> anybody here know where I can get a stable linux version of php-4.2?
www.php.net always works for me.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
>
> Hello all. I have a question that I hope someone can answer. Is it
> possible
> to determine is someone is hitting your site over SSL or plain http
using
> PHP? If so, is it part of getenv()?
I think it's $_SERVER['HTTPS']. If that is set, then the connection is
o
divide by 10 to move it left.
>One other question. How would I find the first 0 of a repeating zero.
Like 204,000.
>How would you find the 0 in the 4th column.
Treat it as a string and look for the first set of double zeros.
---John W. Holmes...
PHP Architect - A monthly magazine for PH
] will be.
Okay, so how do you know what to replace something like [author] with?
What exactly are you doing again? I've forgotten the original question.
:)
I'm sure there is a better, faster way to do it with regular expressions
or something similar that going digit by digit and lookin
ber? It all
depends on how you implement your form, but it can be easily exploited
if you don't know what you're doing.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sted above. If you want to do it like that, fopen() it
with a full address:
fopen("http://yourdomain.com/make_calendar.php3?month=$month&year=$year";
);
Hopefully the email doesn't mangle that link...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Profession
th an
array
> like so:
>
> $test = array(0=>'yes', 5=>'maybe', 7=>'so');
unset($test[2]);
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Change:
$table=substr($a, $f+1, $e-1);
to:
$table=substr($a, $f+1, $e-$f-1);
$f is position of first [, $e is position of first ]. So, you don't want
a substr length of $e-1 (which is from the beginning of the string, you
want the length to be the difference of $f from $e. Hope that helps.
Your original code was only working for the first one because you
started of with a [word]. If you put text before the first [word], it
fails on all accounts.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
his is a [test] of something [that] will hopefully
[work].
Replaced String: This is a test_two foo_one test_three of something
that_two will hopefully work_two.
String-parser Time: 0.187005996704
(The "replaced string" shown is just the last result of running it 1000
times)
---John W.
Are you using GET or POST as the method of your form? GET will limit the
amount of text you can submit because it appears in the URL. POST really
doesn't have a limit, as far as I know.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today.
globals or not.
Bottom line, the best thing you can do is to educate your customers on
how to write PHP scripts correctly and advise them to turn register
globals off on their own site (with .htaccess if you're using apache).
---John W. Holmes...
PHP Architect - A monthly magazine for P
want it. Or, you can use UNIX_TIMESTAMP() to pull
it out in the unix format and then use the PHP function date() to format
it.
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html
#Date_and_time_functions
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Pr
> I have a logging program I wrote in Perl that writes basic info to a
MySQL
> database. I can't get it working from within PHP. I've tried:
>
> print "";
> echo ("");
> include("vislog.cgi");
Maybe virtual() ?
www.php.net/virtual
--
Task Scheduler program that will
end the program after X minutes. Check that to have it shut down IE
after a couple minutes, you PHP script should be done executing by then.
Hope that helps.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. h
letting us solve the problem for you:
$string = "Today is a very beautiful day and the sun is shining";
$words = explode(" ",$string);
$pos = 0;
foreach($words as $word)
{
if(isset($w[$word]))
{ $w[$word] .= ",$pos"; }
else
{ $w[$wo
True, but it answers the original question. :) You can easily throw in a
if($word == ' ') then don't save it, but still increment $pos. You could
use a regular expression to check/remove punctuation, too.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professi
> > For example i have some words:
> >
> > Today is very beautiful day and sun is shining
> >
> > What i want to get from this is array
> >
> > words
> > [Today] => 0
> > [Is] => 6,30
> > [Very] => 8
> > [beautiful] => 12
> > ..
> >
> > Can somebody please help me with this. Those nubers a
Don't double post and do a little thinking for yourself. The error is
undefined variable: Array. That means that where you are using
$Array["URL"], it doesn't have a value, it's, "undefined". Where is
$Array coming from, or where do you think it's coming fr
ults I am looking for.
>
> Thanks in advance,
> Max
>
> preg_match ("/\:\[(\S+)\]\:(\S*)/",$transport,$matches);
Make the part after the closing ] optional.
preg_match("/\:\[(\S+)\](\:(\S*))?/",$transport,$matches
$matches[1] should be the IP and $matches
Why not name your form elements php_q3[] and then just loop through the
array. That would cut the need for eval().
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Alexey Ly
ey could
affect the ones you issue. They could add a "OR 1" onto a select,
causing it to return all rows from a table and possibly let them view
data they shouldn't. Or, they can do the same thing on an UPDATE and
provide their own values. It's still something to be aware of an
> Okay, wait.
> How?
>
> say, I have a field of checkboxes in 3 columns and 6 rows. I need at
least
> one checked.
> At the moment every checkbox has the name of kind: q3_4_1 , where 4
stands
> for row and 1 for column. Now, how do I name them and loop through
them?
> Plus, if $HTTP_POST_VAR["q3_4
So print out $query before you execute it and see what you're actually
sending to MySQL. You're apparently sending a valid query, but it's not
matching any rows...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://
ou read the param file first into an array, and then loop through
the text file, using in_array() to see if a line matches a param?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://
> How can I get a string containing the month part of a date the user
types
> in?
> e.g. if they type in "06/07/200" I want to get "06"
If you know that's the format they're going to use, the you can just use
substr() to grab the first two characters.
own function, or
possibly use strtotime() to see if it returns a result.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
w_string .= $p1 . $match[2][$x] . $p2 . "\n";
}
echo "$string\n--\n$new_string";
?>
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Jim [mailto:[EMAIL PROTEC
Try defining the function before you call it.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Beauford.2002 [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002
sidering this, but no real answers. i think, the problem is
>probably in httpd.conf (apche config file), but i am not sure.
That's normal. PHP runs as the Apache user, so anything it creates will
be owned by that user. Workaround is to use CGI mode or make the dir 777
so you can still a
> Is there any way to disable using cookies in sessions? I haven't found
a
> good
> reason to do this, only my boss's predisposition against cookies ;).
Yep, session.use_cookies setting in php.ini. Set it to zero to not use
cookies.
---John W. Holmes...
PHP Architect - A m
> I changed this and it works fine but I now lose my formating. It
doesn't
> seem to recognize the \n breaks. Am I asking for to much?
Well, you'll be required to learn HTML if you're going to send HTML
emails. Use .
---John W. Holmes...
PHP Architect - A mon
E1 so instead the string
key
> (VAL1) use the numerc (0)
You can't, because there is no key of zero in that array. All arrays are
associative, so the only way to use $array[0] is to define $array[0].
If you're looking to loop through your array, there are other methods.
---John
ach
www.php.net/list
$cnt = count($array);
for($x=0;$x<$cnt;$x++)
www.php.net/count
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tion. You'll need to use
regular cookies that persist after the browser is closed for that.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rest of
the data and an unrecognized attribute.
Finally, what you need to do is use htmlentities() or htmlspecialchars()
on $userName before you place it between the quotes. This will give you
a value of value='"e;Alex"e;', which will display correctly with
HTML.
---John W. Holme
> I'm guessing then that it's possible to use only server side sessions
> and use trans_id then if you need to store values throughout a site?
Well, session are always server side, but, yes, basically. PHP must be
compiled correctly so you can enable trans_sid.
---John W
> On Sat, 2002-12-21 at 08:03, John W. Holmes wrote:
> > > I'm setting a session with
> > > session_set_cookie_params (time()+648);
> > > so the cookie should last 70 days+ but the data wasn't
> > > returned.
> > >
> > > fr
t accept the same job and you
should be good to go.
Hope that helps.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);
Should be
preg_match ("/^.*_\%split\%_\\\$(\d*\.\d*)/", $data, $match);
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP Gen
$matchme = "\$example";
if (preg_match("/\$example/", $matchme)) {
will not be matched because PHP interprets the \$ and passes it as $.
Instead, you must do this:
if (preg_match("/\\\$example/", $matchme)) {
---
Don't forget to check the manual.
---John W. Holm
; echo "found $appareil";
> }else{
> echo "did not find $appareil";
> }
> ?>
What happened when you tried that?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
other than the HTML she's been hand
coding.
> I'd like to find a site I can refer her to where she might be able to
> see some example of what she wants to do.
>
> Any recommendations? Did I make a valid suggestion?
http://www.google.com/search?sourceid=navclient&ie=UTF-8&am
In that case, check out
www.devshed.com
www.phpbuilder.com
www.zend.com
www.webmonkey.com
Those sites have very good tutorials on a variety of PHP topics.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com
REFERRER isn't always set, so that may be the problem.
Try just a simple HTML page that has a link to a PHP page that echo's
out $_SERVER['HTTP_REFERRER'].
Does that work?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get y
1 - 100 of 2763 matches
Mail list logo