On Sunday, July 20, 2003, at 03:26 PM, Curt Zirzow wrote:
I know this isn't your code but...
yes, it wasn't mine, but i should have checked it out more thoroughly
regardless.
btw, the above code is copyrighted so dont use it.
*sigh*... so why contribute it to the list? Just to prove your skil
What is your aim?
a) to have the site *work* on a server with rg off, or;
b) to re-engineer your site to be safer and more secure, taking
advantage of the REASONS rg was turned off by default?
If it's a, then look at my example on weberdev, or just switch them
back on with something like a .ht
Have you read the mail page in the manual?
Didn't think so :)
It discusses multipart messages/attachments/etc, links to and provides
examples/tutorials on the topic, etc etc. Start there, then come back
if you get stuck.
http://au.php.net/manual/en/function.mail.php
Justin
On Wednesday, Jul
This really should be asked on a MySQL list for starters, but my advice
is to search for a host that WILL upgrade or do what you want/need.
There are 1000's of hosts out there... you shouldn't have any trouble
finding a host to meet your requirements, and (at least for me)
changing hosts is as
s on these PHP-parsed CSS
files?
TIA
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday, July 24, 2003, at 12:18 PM, Curt Zirzow wrote:
And in my case I would never see the next page. I have javascript
turned
off.
Never rely on javascript to do the work, excpecially in small cases
like
this when php can handle it without any issues, such as javascript
being
turned of
On Thursday, July 24, 2003, at 01:05 PM, Mike Brum wrote:
Justin, when you echo/print your CSS info, you can add tabs /t and
newlines /n to your documents for indentation and organization in the
source if that's what you're after.
Otherwise, when you output it to the browser it's going to print i
Yup, that worked... thanks to everyone for their help :)
Justin
On Thursday, July 24, 2003, at 01:50 PM, Chris Shiflett wrote:
Yeah, that's a very good guess. You should be able to do something
like this to
specify the content type yourself:
header('Content-Type: text/css');
--
PHP General
Hi all,
I've been writing CMS's for years now, and at the moment, I find myself
looking for some breakthrough, or at the very least, a change in the
way I do things.
Anyone can write a CMS to manage simple articles with a data structure
like:
id
author
date_written
heading
body
keywords
descr
trict.
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sounds great, although I doubt my host will install... has anyone
considered such a beast running as a PHP function/class?
Justin
On Wednesday, July 30, 2003, at 02:53 PM, Jeff Harris wrote:
On Jul 30, 2003, "Curt Zirzow" claimed that:
|* Thus wrote Justin French ([EMAIL PROTECTE
ict at the moment, with a
heavy reliance on site-wide CSS, rather than an in-line style of
mark-up and styling.
But, it may end up being the only option :)
Justin French
On Thursday, July 31, 2003, at 03:51 AM, Pete James wrote:
Why not use a wysiwyg edit box? There are quite a few of them...
Not really that useful -- essentially I want this as part of a CMS
On Thursday, July 31, 2003, at 11:55 AM, Jason Sheets wrote:
Tidy is available for DOS as well, you could run it on your windows
machine locally then upload the source to your host.
Jason
--
PHP General Mailing List (http://w
id so, and offered to compile it too!), so that may
be the other option.
With any luck, I should be able to write some wrappers to "tidy" from
within a PHP script.
Thanks to everyone for their help,
Justin
On Thursday, July 31, 2003, at 12:41 PM, Curt Zirzow wrote:
* Thus wrot
Do some testing in a few browsers to see what happens when the user
hits "enter" or "return", rather than clicking on the button(s)... I
*think* you need to put in a hidden element. For example, if you
wanted "submit2" to be the default value:
Justin
On Friday,
On Monday, August 4, 2003, at 11:33 AM, Robert Mena wrote:
a) apache
It seems that apache + php does not work well under
heavy load so I should stick with 1.3.X right ? Any
ideas where I can find a rpm package for redhat 9 ?
I can't help with the Oracle question, but yes, stick with apache 1.3.
t you want, but maybe that can't be done (no way to know
without seeing the code).
Good luck,
Justin French
On Monday, August 4, 2003, at 01:04 PM, Micah Montoy wrote:
Anyone know of a way to use a variable that isn't defined until
further down
the script at the top. I have a counter
Identify common problematic characters, and develop a function (series
of str_replace()'s) to convert them to suit.
Over time, you can always add to this function as you spot more
problematic characters.
Also look at something like Tidy (see archives in the last week where
it was discussed wit
Do you mean something like:
";
echo $myrow['a'] ."";
echo $myrow['b'] ."";
echo $myrow['c'] ."";
}
?>
Justin
On Monday, August 4, 2003, at 05:34 PM, Ben C. wrote:
How do I add a column of numbers generated through a MySQL query
without
using the SQL SUM() functi
If you're using CGI/Perl, WHY WHY WHY are you asking questions on a PHP
list?
I've given you a hint, so perhaps take that hint and ask a question on
an Oracle list, or search the Oracle documentation for similar
functions.
Justin French
On Tuesday, August 5, 2003, at 10:37 PM, Coe
On Friday, August 8, 2003, at 09:21 AM, Dan Phiffer wrote:
I'm working on an ongoing project that depends on a shared webserver
running
an old version of PHP (4.1.2 I believe). Is there any good reason to
stick
with an older version of PHP, or might it be a valid suggestion to
have it
upgraded
x27;s best to start from scratch.
There is a nice article by Kevin Yank on sitepoint.com about membership
stuff, which has recently been revised:
http://www.sitepoint.com/article/319
And a whole bunch of contact databases at google:
http://www.google.com/search?q=%22contact+database%22+PHP+Mysql&
Any of these will work:
"; ?>
easy :)
Justin
On Monday, August 11, 2003, at 07:01 PM, bob pilly wrote:
Hi all
Is there anyway in php to fill a HTMl text input field
with a php variable? Or do i have to use javascript?
Thanks for any help in advance!
On Sunday, August 10, 2003, at 01:36 PM, Liam Gibbs wrote:
Does it have to be a cookie? I use the IP address and store that
somewhere.
Liam, please don't advise relying on the IP address for anything. It's
been discussed to death on the list before, but in short, the
highlights are:
1. users
On Friday, August 8, 2003, at 10:28 AM, Neil Davis wrote:
Fellas,
can't see how this should be an issue.
It is a security issue. Most ISP's don't allow register_globals to be
turned
on. Read the php docs about register_globals. Zeev and company explain
it
better than I can.
http://www.php.net/r
Count the number of ('s and )'s, or get a text editor which can help
you balance them out in some way:
1 2 3 321
if (!empty($this->GetParam('someparameter'))) {
// foo
}
This *SHOULD* be syntactically correct, but php doesn't think so.
Should I
Sounds like you're trying to replicated something in ColdFusion?
I have a few blocks of code on my pages which are only executed on my
development server, not the live server -- is this what you want?
if(ereg("192.168.0.",$_SERVER['SERVER_ADDR']))
{
$local = 1;
}
else
On Tuesday, August 12, 2003, at 11:26 AM, Micah Montoy wrote:
I have created a little image manager. Mainly for personal usage but
I have
a few friends that would like it as well. Anyway, the problem that
I've run
into is that I can only select one file at a time using the form
attribute
th
It'd be nice if the demo's worked!
Justin
On Wednesday, August 6, 2003, at 12:31 PM, Ralph Guzman wrote:
Any opinions on ezPublish 3?
http://www.ez.no/
I am considering this as a CMS and framework for my future projects.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Specific Day:
2)
{
// show
}
else
{
// don't show
}
?>
Addition of specific time frame of 12noon - 4pm
2) && ($hour >= 12 && $hour <= 16) )
{
// show
}
else
{
// don't show
}
?>
Tweak to suit your nee
Buttons? Not sure I understand, but try turning the register globals
directive in your php.ini file from OFF to ON.
Although OFF is safer and promotes better coding practices.
Search the archives or PHP tutorial sights for hints about programming
with rg off. It's been discussed in 1000's of
php_flag rather than php_value ???
this is a part of my htaccess file:
php_flag register_globals off
php_flag magic_quotes_runtime on
php_value include_path '/Users/justinfrench/Documents/htdocs/joel/'
Justin French
On Tuesday, August 12, 2003, at 06:06
"best" is a subjective word, but I believe the best one for my needs
was one I wrote myself. the best one for you will probably be the same
scenario, but i can tell you I started with a script written by kevin
yank on sitepoint, and built it up and around from there:
http://www.sitepoint.com/a
This will spew a whole lot of stuff out to the screen, PATH_INFO will
be one, PHP_SELF will be another... have a look through the list, do
some testing, and decide which element of the $_SERVER array suits your
needs.
Justin
On Saturday, August 9, 2003, at 07:44 AM, Jed R. Brubaker wrote
The include_path can be set via a .htaccess file on a per-directory
basis... so, at the root of your "second" apache server, you could have
a file called .htaccess with something like:
---
php_flag register_globals off
php_value include_path '/path/to/your/include/dir/'
---
Hav
To be more descriptive than Marek, some text (in this case the TITLE)
has been sent to the browser around line 95 of header_aurelis.php. The
reason you are getting this warning is because PHP is trying to send a
header (redirect in this case) to the browser, but it cannot, because
the output h
Hi,
For over a year now, I've been subscribed to this list through my main
email account. My ISP has anti-spam stuff on the server which prepends
the subject of anything it considers spam with 'SPAM: '.
As of 4am this morning (Melb, Australia), EVERY message to this list
has been flagged as s
Have you done some testing with NOT converting the HTML within the
textarea with htmlspecialchars() -- does it work for all cases where a
does not exist?
If so, then consider NOT doing it, and instead solving the problem of a
within the textarea. possible solutions may include:
1. not allow
On Tuesday, August 12, 2003, at 02:30 PM, Lindsey Simon wrote:
Unfortunately, I've been unable to duplicate this problem on my own
machine with MSN 8 (win2k), but I have users of my software who use the
MSN explorer browser complaining at me. It appears that sessions are
not
being properly initi
in the function definition by %body
Anybody?
On 8/10/03 7:46 PM, "Justin French" <[EMAIL PROTECTED]> wrote:
Sounds like you're trying to replicated something in ColdFusion?
I have a few blocks of code on my pages which are only executed on my
development server, not
int evangelising PHP in such an
environment... perhaps it's smarter to adapt to the climate?
Justin French
On Monday, August 11, 2003, at 12:45 PM, Douglas Douglas wrote:
Hello everybody.
I've been doing some research about the PHP vs ASP.NET
debate, because I need to justify the us
On Friday, August 8, 2003, at 05:24 PM, Louie Miranda wrote:
I currently used Dev-PHP IDE.
But i was wondering if you guys have any other suggestions?
Search the archives... this would have to be in the top 5 topics
repeated on this list, so you'll find 10's or 100's of suggestions :)
http://ma
Create a text file called .htaccess, and place it in the root directory
of the "second" apache server, as stated below.
Justin French
On Thursday, August 14, 2003, at 09:17 PM, murugesan wrote:
I am not able to locate the file you are referring to. Please do
help
me I am
Have a look at the output, find the variable you need, then manipulate
it if needed.
Justin French
On Friday, August 15, 2003, at 01:32 PM, [EMAIL PROTECTED] wrote:
Hi all,
I want to get the current domain name in to a PHP
variable.
This is the case..
I have a web site and four diferent
Well, you haven't told us what database you're using at all, but I'll
assume MySQL. In which case you should look at the LIMIT part of your
query.
http://www.mysql.com/doc/en/SELECT.html
All you need to do is pass around a starting point variable on each
page, so that you know where the resul
I *think* if you feed it the unix timestamp for the 1st day of the
month, it will give you the last day, *untested* though.
Justin
On Friday, August 15, 2003, at 06:40 PM, Ralph Guzman wrote:
I just noticed, this will give me total days for current month. But
let's say I want to look up the t
when you have issues like sessions, shopping carts and
anything else which requires state.
Justin French
On Wednesday, August 20, 2003, at 11:20 AM, Aris Santillan wrote:
hi
how can i use session variables in a page with multiple framesets?
where in all frame will get the session variables bei
On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote:
Hello everybody,
I want to authenticate my user from web with PHP
script. The user's passwords are stored in System as
MD5 format (in /etc/shadow).
Can anybody help me?
Which part do you want help with?
The form?
The SQl query?
The
Burhan,
Please try to quote the right person when replying to a thread -- your
messages was, I assume, intended for Chinmoy Barua, not me.
It saves confusion, and keeps the thread more useful and easier to
follow.
Thanks,
Justin French
On Tuesday, August 26, 2003, at 04:17 PM, Burhan wrote
Hi all,
I'm attempting to find some documentation on magic_quotes_runtime and
magic_quotes_gpc -- what's the difference?
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Apologies -- I found the documentation in the php.ini comments.
Justin
on 17/03/03 10:08 PM, Justin French ([EMAIL PROTECTED]) wrote:
> Hi all,
>
> I'm attempting to find some documentation on magic_quotes_runtime and
> magic_quotes_gpc -- what's the difference?
>
&
on 17/03/03 11:55 PM, M Wells ([EMAIL PROTECTED]) wrote:
> I'm an Australian PHP developer and host most of my web sites on US
> servers. One in particular is primarily accessed by Australian visitors
> and I want to be able to reflect Australian Eastern Standard Times when
> writing / reporting r
very cool chris!!!
Justin
on 19/03/03 2:27 AM, Chris Hayes ([EMAIL PROTECTED]) wrote:
> At 14:38 18-3-03, you wrote:
>> Ok, I hope this makes sense,
>>
>> When a user 'registers' with our site, I want to generate their personal
>> webpage for them. Currently, I have a webpage where the conten
The first rule is to NEVER rely on anything that they give you, or any of
the security precautions in your form code, because someone can always creat
a less-secure form which posts to the same script.
So, whilst maxlength='4' for a year select thing is great, you should check
at the other end tha
on 20/03/03 3:53 PM, John W. Holmes ([EMAIL PROTECTED]) wrote:
>> And yes, definitely striptags(), and follow the advice on the rest of
> the
>> thread.
>
> I disagree. I think stripping HTML from my text is a horrible thing. If
> I want to put a in my text, then use htmlentities() and show me a
For this exact instance (ie, trying to get the current month, and next
month) then all you need is:
Justin
on 21/03/03 1:00 AM, shaun ([EMAIL PROTECTED]) wrote:
> Hi,
>
> could someone tell me why this:
>
> $month = date(m);
> echo "\$month: ".date(F,strtotime($month))."";
> $month = $mon
Hi,
A session is meant to exist on one domain... You could pass the session to
another domain to *hold* for you:
secure
checkout
Then the secure domain would be responsible for remembering the old session
id, and passing it back to your site when finished...
Essentially, I think that each dom
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
> I have read some posts to this list on sessions and have read as much as I
> can find on them, but one problem still exists which I can't figure out. How
> do I kill the session when the user leaves my site. So if a user is on
> www.
on 21/03/03 6:20 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
> What about HTTP_REFERER - is there someway I could incorporate it to so if
> the user didn't come from xxx (a page on my site) then kill the session and
> redirect him to the login page...
The referrer can maybe *help* (not sure how
Hi,
Instead of the usual flow chart of form.php -> process.php, where
process.php displays a "thankyou" message afterwards, change it to:
from.php <-> process.php -> thanks.php
process.php doesn't echo anything out to the browser at all... it validates
your form data, and depending on what happe
- someone said if you put no time limit on a cookie it
> dies when you leave the site - I'm not sure about this, but any help is
> appreciated.
>
>
> - Original Message -
> From: "Justin French" <[EMAIL PROTECTED]>
> To: "Beauford.2002" &l
*guess* you're including the footer twice, or are calling ob_end_flush()
more than once.
not anywhere near sure though!!
Justin
21/03/03 11:33 PM, Mr Percival ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I have a page that has an include at the top of the page and an include at the
> bottom of th
on 22/03/03 4:18 AM, Jason Wong ([EMAIL PROTECTED]) wrote:
> Bottom line is if your site requires to login you should make it mandatory
> that the user enables cookies on their browser.
mandatory seems a little harsh... I haven't seen any bad side effects of
trans sid yet (granted, I haven't push
on 22/03/03 4:39 AM, Adam - ([EMAIL PROTECTED]) wrote:
> Just a thought about sessions, they still rely on cookies working, unless
> you pass the session id with every link on the page. If you set your
> php.ini file to automatically put the session id in ever link on your page,
> that's great, bu
on 22/03/03 3:57 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
> $my_data = "This is a really long string that could go on for ever and ever
> and ever and ever and ever and ever and ever and ever and ever and ever and
> ever and ever and ever and don't wrap to my table it makes it bigger";
>
>
I just md5() the passwords, and reset them if needed... rather than
retrieving. The advantage for me on this is that it's portable... md5() is
part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't).
Justin
on 23/03/03 1:31 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> I
on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> On 23 Mar 2003 Justin French wrote:
>
>> I just md5() the passwords, and reset them if needed... rather than
>> retrieving. The advantage for me on this is that it's portable... md5() is
>> part of
Huh?
Not really following what you want to achieve, but:
$floor)
{
$diff = $n - $floor; //eg 2
// no idea what you want to do from here
}
?>
on 25/03/03 10:58 AM, Richard Whitney ([EMAIL PROTECTED]) wrote:
> Braindead!
>
> I need to evaluate a number if greater than 7 and a
echo "last {$per_page}";
echo " | ";
}
if($num < $total_num) {
echo "next {$per_page}";
}
?>
Cheers,
Justin French
on 25/03/03 5:09 PM, Sebastian ([EMAIL PROTECTED]) wrote:
> Hello all.
>
> rather dumb question.
>
> I have a pagination syst
ven valid -- I don't know), so
4. based on your array's size, I'd just implode() it, and then explode() it
back out on the new site:
window.open('view.php?arr=','windo...
Justin French
on 25/03/03 8:50 PM, Fredrik ([EMAIL PROTECTED]) wrote:
> Hi
>
Hi, I have this ereg to turn URLs into links:
eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "\\1://\\2\\3", $str);
... found it in the manual i think, or maybe on weberdev.com examples
Anyhoo, it places the whole link in between the and , which is
fine for short links, bu
/([^[:space:]]*)([[:alnum:]#?/&=])!ei", "{$2}{$3}", $str);
Can anyone point to the problem?
The aim is to perform functions on $2 & $3.
TIA
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A that makes more sense!! Am trying everyone's suggestions now...
Justin French
on 27/03/03 3:32 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
> Forgot to mention this is to be run after
> eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", &q
$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is
set by the user agent (browser).
It's also worth noting that this IP address could be faked, could be rotated
by their ISP on a request-by-request basis (eg all AOL users), could be that
of their firewall or network gateway
PHP and Apache 2 don't boogie.
A lot has changed in PHP over those versions... did you read the
relase/upgrade notes across those versions?? I assume quite a lot of your
issues are in relation to the register_globals directive in php.ini, which
now defaults to off, not on. If you switch it back,
http://www.killersoft.com/downloads/pafiledb.php?action=file&id=4
Justin
On 03/27/2003 03:44 AM, Philip J. Newman wrote:
> How would i check that an e-mail has the right parts in it. for example.
>
> username @ domain . ext
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
My advice is to first get REALLY comfortable with sessions in a non-framed
environment... get a grip on logging in, logging out, showing different code
for logged in members, restricting a user from doing something more than
once, etc etc.
THEN try to get it happening in a framed environment.
As
on 01/04/03 11:48 AM, daniel ([EMAIL PROTECTED]) wrote:
> hi guys i am trying to work out how to dynamically be able to upload an excel
> file , export it to csv to be able to import into mysql , is there any
> examples out there ? fopen gave me binary code :|
also see fgetscsv()
Justin
--
PH
on 01/04/03 8:01 AM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> "GPL enforces many restrictions on what can and cannot be done with the
> licensed
> code."
The point is, PHP is not released under GPL any more -- it's under QPL, so
this thread hardly seems relevant to any PHP list -- just my
on 01/04/03 9:16 PM, Diana Castillo ([EMAIL PROTECTED]) wrote:
> how do you get just the month (in numeric format ) of a specific date. (not
> today)
> same for day and year. The date is in -dd-mm format to start with.
> thanks.
If your date was -mm-dd, you could do this:
But, because
on 01/04/03 10:31 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> I don't want to be awkward, but wouldn't $m be holding the required info
> already? -- ignoring the fact that you have an invalid date.
yes. I just re-read the OP... *slaps forehead*.
Justin
--
PHP General Mailing List (http://w
If you want the microsecond use microtime().
Justin
on 02/04/03 8:44 PM, Sebastian ([EMAIL PROTECTED]) wrote:
> may i ask what is it that your trying to do? Why not use time(); ?
>
> cheers,
> Sebastian
>
> - Original Message -
> From: "nooper" <[EMAIL PROTECTED]>
>
>
> | Would there
Hi,
I can't believe I've never bothered to learn this stuff, so I apologise for
being totally dumb in advance :P
phpinfo() tells me my php.ini is being read from /usr/local/lib, however,
there's definitely NOT a php.ini file there.
So, I went hunting and found this on
http://www.php.net/manual/e
Ok, that's what I figured!
Thanks!
Justin
on 03/04/03 2:43 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote:
> It's using default settings. You'll have to recompile PHP to change
> where it looks for php.ini, or you can move your php.ini file into that
> location.
Hi all,
Can I just have a quick head check on magic quotes runtime (&gpc)?
I have them both set to Off currently, and my pages work fine. However,
when I set them to on, I end up with slashes throughout the mysql data.
Is this the expected behaviour? Seems counter-intuitive to me, but I've
nev
wice". Any one got some cool code???
Justin
on 03/04/03 6:43 PM, Philip Olson ([EMAIL PROTECTED]) wrote:
> On Thu, 3 Apr 2003, Justin French wrote:
>
>> Hi all,
>>
>> Can I just have a quick head check on magic quotes runtime (&gpc)?
>>
>> I
It depends on what you define as a word, but let's take the simple approach
of stripping HTML et al, and exploding the string on the spaces, then
counting the array of words:
text that I want to count";
$words = explode(' ', strip_tags($str));
$count = count($words);
?>
Really no need for regex
A unix timestamp, or mysql timestamp?
for unix, see http://au.php.net/date
justin
on 05/06/03 5:38 PM, nabil ([EMAIL PROTECTED]) wrote:
> Please help me how to print a timestamp string retrived from the database,
> and print it as -MM-DD
>
> Nabil
>
>
--
PHP General Mailing List (h
on 05/06/03 6:24 PM, Nabil Attar ([EMAIL PROTECTED]) wrote:
> mysql time stamp
well, there are a few different formats that can be returned, so rather than
me guessing which type, how about you tell us exactly what format you have
(by providing an example), and exactly what format you want to ech
on 05/06/03 7:25 PM, Bix ([EMAIL PROTECTED]) wrote:
> If I did this, would it make a huge amount of difference?
I'm almost certain it WOULD make a difference, but apart from the execution
time, I can't think of anything worse than scrolling through 2000 lines of
code looking for the section I'm a
on 28/05/03 2:56 PM, CF High ([EMAIL PROTECTED]) wrote:
> I've got a chunk of HTML text I'd like to format for insertion into our
> mySql db.
>
> Let's say $html_string equals the following:
>
>
> 1
> Bardo, Jesse
> S
> A
> Andover, MA
>
>
> To setup this chunk of text for insertion I first
umber']}");
}
else
{
header("Location: startpage.html");
}
?>
---
It can be done client side, IF you're willing to take on the risks and
uncertainties of relying on javascript, which i try to avoid wherever
possible.
You'll have to ask a JS list ab
on 28/05/03 11:49 PM, Jay Blanchard ([EMAIL PROTECTED])
wrote:
> [snip]
> I am in Hong Kong and the server is in US.
> I can't change the server setting.
> [/snip]
>
> How about getting the server time and then adding or subtracting from
> that to get the appropriate time?
>
> http://us2.php.net
Register globals essentially takes the value of $_SESSION['foo'] and creates
$foo. It does the same thing for GET, POST, COOKIES, etc.
The problem here is that you have no way of telling if $foo was a POST
variable, GET, SESSION, or whatever. So, I can choose to append ?admin=1 to
one of your UR
r appear correct when echoed
out using date.
How can I reliably generate timestamps which will work on any server, and
reliably convert these timestamps to human readable format (eg
date('Y-m-d')) on any server?
Is the key to use GMT in the strtotime() string and use gmdate() instead
roblem, or teaching
someone how to find the answer (and future answers) themselves?
"Search google" may not be a detailed answer, or even a polite one, but in
many cases (not necessarily this OP of this thread) a lazy question deserves
a lazy response.
Justin French
on 30/05/03 12:49 AM
Do you use sessions? I had some weird results, blank output and loss of
session in 4.2.x with sessions using shared memory -- when sessions were
changed back to files, all was ok. This may be, but probably not, related
:)
Justin
on 30/05/03 2:00 AM, Andy BIERLAIR ([EMAIL PROTECTED]) wrote:
>
on 30/05/03 6:36 PM, Jeffrey L. Fitzgerald ([EMAIL PROTECTED]) wrote:
> Thanks to Kevin, Monty and the others who helped with my earlier post...
>
> Anyone have experience with PHP based "Email This Story" and "Print This
> Story" functions?? I am looking to add these along with a digital postcar
on 31/05/03 1:26 AM, George Whiffen ([EMAIL PROTECTED]) wrote:
> 1. Heterogeneous Code Environments
> php session data is not easily accessible from non-php code e.g.
> Perl/C/ASP etc. In contrast, either client-stored data e.g. cookies,
> hidden posts, get variables, or data stored in a structu
n PHP 5 will be a stable Apache 2 release, so don't hold your
breath.
Search the archives for detailed answers, especially from Rasmus.
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
301 - 400 of 1432 matches
Mail list logo