(!ISSET($_SESSION['loggedin'])) {
header("Location: /admin/login/");
}
else
{
//rest of the page.
}
?>
Any ideas why this would cause IE to crash
Cheers,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John,
Have tried this but unfortunately had no effect.
Everything appears to fine if the session variable does not exist ie:
the user is redirected to the log in page.
It's just when the user has logged in and the session is set that IE
throws it's toys out of the pram.
Cheer
specific
address, it will automatically be distributed to everyone on the forwarding
list. Please help if you have any ideas or suggestions.
Thanks,
Matt
http://sweetphp.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
i am looking for an open source php module that does some simple content
management. it seems that something like this must exists, since it is a
pretty common need, but i'm not sure where to find such a thing. here is
a description of the functionality i am looking for: ability to updat
would cause this crash,
and if so, whether or not there are any work arounds.
This only occured in IE6 on Win XP.
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What if you use something like SourceForge. If you try to access a
page
the requires you to be logged in when it redirects you to the login
page
it includes in the URL the page that the user tried to access
(ie login.php?redirect=page3.php) Then when the user successfully logs
in they redirect to
[snip]
hello all i need help to enter one variable in a cookie and then
retreive it back later, i know this probably sounds dumb to most but
this is really the first time ive tried working with cookies so please
bear with me, thanks for any help.
[/snip]
this should give you a good start http://ww
[snip]
I've had the most luck using the pop-up window method. In the
element I call onSubmit="{open some window here}" This works as the
pop-up
appears while the file is transferring. Here's where I run into
problems.
I've tried all kinds of examples found on google and can never get it
to
work r
[snip]
Sorry, should have mentioned that I tried quoting them already. That
gives a T_VARIABLES parse error.
Thanks for the reply,
Tyler
[/snip]
What happens if you comment out the mysql statement and just echo the
variables?
echo $_POST[domainregister_domain$i]
$_POST[domainregister_ty
[snip]
I was wondering a good place I could get started on reading excel
spreadsheets in PHP ive seen a couple of things out there that will
take
data from the web and transform it into a .xls file. I was wondering if
I
could take a XLS file with php and read it, and rip out certain data
from it
:-
[snip]
I put this right above like 871:
print "$_POST[domainregister_domain$i]";
So now that "print" line is 871. It produces the exact same error as
the mysql_query() line.
[/snip]
I should have mentioned this in my last email. You should try a
print_r of the $_POST array.
print "";
print_r($
try eval($contentfunction);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have 2 list fields in a form. The second is populated basing on
selection in field 1. Can anyone pls tell me how to do this in PHP ?
[/snip]
you can't, onchange is fired with javascript on the client. You have a
number of ways you can do it a few are.
1. have on change submit the form to
[snip]
Eval ($contentfunction); gave me a parse error:
Parse error: parse error in
/home/pickled/public_html/main/inc/html.php(145)
: eval()'d code on line 1
[/snip]
try to add a semicolon to the end of the variable $contentfunction =
"newsadmincontent();";
--
PHP General Mailing List (http://
Your subject line raises a completely different question than your message.
Are you looking to sort a multi-dimensional array or "select distinct
values" from one?
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage
ll it when $counter is @ the last line in my
"tips" file to reset to zero
thanks
Matt
[snip]
1) How do experienced developers layout their [dev] directory
hierarchy?
For example, is there an accepted place to put one's function
libraries? On
IIS (Windows XP), the default directory structure is
c:\inetpub\
AdminScripts
iissamples
mailroot
Scripts
wwwroot\
The directive session.cookie_lifetime in your php.ini is what a session
cookie timeout defaults to. You can manually set the lifetime when you
create it using session_set_cookie_params().
http://us3.php.net/manual/en/function.session-set-cookie-params.php
--
Matt Grimm
Web Developer
The Health
[snip]
ex: display.php
session_start();
$agencyID=$_SESSION['agencyID'];
$agencyName=$_SESSION['agencyName'];
But after awhile, the session seems to fail and I end up back at the
index page because the $agencyID gets voided. Is there a timeout on
sessions other than c
> PHP script that you can find here,
although it may be more than you are looking for:
http://www.devdump.com/phpxml.php
I've written a DOMXML-based PHP -> XML function that takes Kris' structure
as input, if you're interested.
--
Matt Grimm
Web Developer
The Health TV Cha
PHP manual recommends this, which works for me:
// Unset all of the session variables
$_SESSION = array();
// Destroy the session
session_destroy();
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext
res.remote-files.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Bruce" <[EMAIL PROTECTED]> wr
uot;
http://us3.php.net/manual/en/features.remote-files.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"D.H.&quo
[snip]
session_start();
if($_SESSION['counter_file'] !==$counterFile)//See if
visitor has already been counted for this page
{$num += 1;
$_SESSION['counter_file'] = $counterFile;
}
echo $_SESSION['counterFile'] . '
[snip]
My problem is that any field that contains a double quote, all data
after the first double quote is missing from the form field. When I
look at the long URL I do see a %22 where the " are supposed to be, and
all other data is there too.
[/snip]
Take a look at the html source. What is p
[snip]
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
[/snip]
try this:
function test($s)
{
if($s == 'this') return false;
if($s == 'that') return false;
return true;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
ll return TRUE. This does not
indicate whether the user accepted the cookie."
http://us2.php.net/manual/en/function.setcookie.php
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205
; ", "your long string");
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Vernon" <[EMA
In the very simplest way? Just use a str_replace on the quotes:
$words=explode(" ", str_replace('"', '', strtolower($keywords)));
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
Close. You need to adjust for the length of your pattern. So if you're
matching against "", then your actual start position (minus the
start comment) is the strpos plus strlen($pattern), or 14 in this case.
$startPos = strpos($file, '') + 14;
--
Matt Grimm
Web Develo
[snip]
I noticed when I use the hidden html input tag with hidden data in
it
then when I click the submit button to submit the webpage, the hidden
data
then show up in the URL address.
[/snip]
I think if you just change the request method to post, the data will
not show up in the url.
--
PHP
Hello,
I'm trying to pull from a database... I can pull an array, but I want to
just be able to pull one item instead of all of them... I know somehow you
can do this with page.php?id=x... but can't figure it out...
any help greatly appreciated,
thanks,
Matt
--
PHP General Mailing
figured it out i had the sort before the where clause and that messed it
up.
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm trying to pull from a database... I can pull an array, but I want to
> just be able t
Hello... could anyone please tell me how to upload a picture using php?
I have this
but don't know how to specify how to store the pictures on the server...
thanks!
thanks
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh);
$l_iThird = $l_iLow;
echo "Your columns are: $l_iFirst, $l_iSecond,
$l_iThird";
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336
> $l_iSecond = ($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh);
This should actually be:
$l_iSecond = ($l_iMod == 1 ? $l_iHigh - $l_iMod : $l_iHigh);
but it works both ways.
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchora
s 3, 2, 2,
which the code will give you. If you want, echo the other variables and it
will make more sense.
--
Matt Grimm
"Dareal Hamsta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I get:
>
> Your columns are: 102, 101, 101
>
> ???
>
> The o
th: '.count($l_aTest);
}
// Do high columns first
for ($i = 0; $i < $l_iMod; $i++) {
$l_aTable["column$i"] = $l_iHigh;
}
// Do the rest
for ($i = count($l_aTable); $i < $l_iColumnWidth; $i++) {
$l_aTable["column$i"] = $l_iLow;
}
echo 'Result:'; prin
[snip]
What is the best way to document such projects? How
you developers document your project?
[/snip]
GIYF
http://phpdocu.sourceforge.net/
http://www.epersonae.com/snapping/archives/000390.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
$_SERVER['SCRIPT_NAME']
or
$_SERVER['PHP_SELF']
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.
You can't use variables inside single quotes, either.
This:
'/path/to/old.$today'
ought to be:
"/path/to/old.$today"
--
Matt Grimm
"Jas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think I must be missing something but this
If my server has an open_basedir restriction in place for my home directory,
I understand that to mean I can only open files in the same directory as
whatever script is currently running. Is that correct?
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820
Hello,
thanks to ya'll I've gotten a picture uploaded... but now what I can't
figure out how to do is rename it. I want to rename it something like
$id.extension... right now it is just showing up in the directory as the
original file... any ideas?
thanks
matt
--
PHP Gener
[snip]
any ideas?
[/snip]
Have you tried move_uploaded_file?
http://www.php.net/move_uploaded_file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Anyone can help , how to post variables from server side .. as from php
page
to other without HTML form and submistion ???
[/snip]
I have never used it but I think
http://pear.php.net/package/HTTP_Client is what you want to look at
--
PHP General Mailing List (http://www.php.net/)
To un
Can anyone clarify this for me? Is open_basedir recursive or restricted to
the exact paths specified?
--
Matt Grimm
"Matt Grimm" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If my server has an open_basedir restriction in place for my home
directory,
>
was ever posted?
I'm just talking about the basics, like empty required fields, illegal
characters, string lengths, etc.
What are your preferred methods? I do an awful lot of content management
with HTML forms, so it's not an entirely spurious question.
--
Matt Grimm
Web Developer
The H
being relied upon for more serious validation.
--
Matt Grimm
"Matt Grimm" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a distinct advantage to doing form validation / error checking on
> the server side using PHP? That's how I've always don
[snip]
why would you validate data on the server
if you have a JavaScript that checked the user's input before it gets
submitted to the server ? I mean the whole point of you having that
JavaScript is to make sure the the correct data gets entered so why
bother checking it once again on the server
[snip]
That works great, I am messing myself up, however because I am using
checkboxes so when I run this, if I have unchecked the checkbox, the
value
doesn't come through and I want an unchecked box to be 0 for example so
I
may need some javascript...
[/snip]
Can only one option be checked per us
[snip]
Until I get this sorted, can I kill everyones stored session data?
[/snip]
How is the session data saved? It is to files, you could just delete
all of the session files.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I do't know to be honest, how do I find out? (I'm on a unix server)
[/snip]
you could use the phpinfo() function and check the value of
session.save_handler, if it is "files" the session data is in files in
the
session.save_path directory.
--
PHP General Mailing List (http://www.php.net
quot; button that uploads everything (the
data to the database and the picture to my server).
I've read the PHP manual but it's greek to this newbie... any help GREATLY
appreciated
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I figured it out...
You can put everything in one file...
http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello... I'm trying to upload a
Howdy,
I'm trying to specify in my php document... but
can't b/c it's two words... if it was html I could just put "", but since I
can't do that in php, does anyone know what to do?
prob. a stupid question,
thanks a lot,
Matt
--
PHP General Mailing List (http:
you can use single quotes ' ' (I didn't think it would work, but it does)
around the font.
matt
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Howdy,
>
> I'm trying to specify in my php document...
but
> can't
ng carts or anything...
Any ideas/suggestions? I've come across one, charge.com... anybody had any
experience with it or another?
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
When I had a look at the servers phpinfo and I saw that both
"upload_tmp_dir" and "user_dir" have
"no value" and "no value" set for them.how do I change it (via a
.htaccess file as I dont have access to the
php.ini) so that I can write the data as required from my script?
[/snip]
Take
int:
http://www.sitepoint.com/article/728
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Matt Hedges" <[EMAIL PROTECTED]
I am a little late but I have used the method described on a list apart
http://www.alistapart.com/articles/succeed/ and it works really
well.
You might want to give it a try, I think it works a little bit
different than the way you are trying.
--
PHP General Mailing List (http://www.php.net/)
To
Hello,
with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying
to add a constraint that limits the width and size... I've been reading the
manual (don't understand the error_messages)... and can't figure it out...
this is what I have so far:
http://www.php.net/)
To unsubscrib
[snip]
Can anyone suggest a PHP solution to creating a form that gets built
after a client enters a variable?
[/snip]
php runs on your server so to build the forms based on a user entered
form field, the form has to be submitted, so you would have to use
javascript to automatically submit the for
the resulting page, they are echoed, but that's it --
it's a blank white page otherwise.
The apache error log is silent, and the access log is normal. No php errors
are displayed or written to the log. Here's the real kicker -- if I refresh
the page, it loads correctly. What is going
try this, it works for me:
if ($_FILES['imagefile']['type'] != "image/pjpeg")
{
print("File must be a .jpg. File will not be accepted; please choose a
.jpg picture or convert the picture to .jpg format.");
unlink($filename); // This will remove the temporary file so we don't
have to deal wit
Hello all,
After playing around with the options, I've found that the following method
for uploading something with constraints is the easiest...
The sample below first checks for 3 constraints (jpg, size, and width) and
if it is cool it uploads it but renames it first...
Thanks Jason.
How would I do that? I mean, what would I put instead of
> > if ($_FILES['imagefile']['type'] != "image/pjpeg")
thanks
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 January 2004
>On Friday 16 January 2004 10:32, Matt Hedges wrote:
>
>>> if ($_FILES['imagefile']['type'] != "image/pjpeg")
>
>The 'type' in $_FILES is provided by the browser. IIRC only IE uses
>"image/pjpeg" whilst other browsers use &
?
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 January 2004 23:55, Matt Hedges wrote:
>
> > How would I do that? I mean, what would I put instead of
> >
> > > > if ($_FILES['imagefile']['
[snip]
(1) How would I do that (use getimagesize() instead to find type)?
[/snip]
http://php.net/getimagesize
[snip]
(2) Stupid question: how do I say
if ($_FILES['imagefile']['type'] != "image/pjpeg")
and add "image/jpeg" to that constraint?
[/snip]
there are many ways, I will show you an
and the access log is normal. No php
errors
> are displayed or written to the log. Here's the real kicker -- if I
refresh
> the page, it loads correctly. What is going on?
>
> Thank you,
> --
> Matt Grimm
> Web Developer
> The Health TV Channel, Inc.
> (a non
No, it's running on a FreeBSD server. I don't suppose it could have to do
with the firewall or browser security settings on my machine, though ...
could it? I can verify that the session file is being written to the
server's tmp directory... I'm stumped.
--
Matt Grimm
Web
troyed and that is
not the situation either.
Anybody have similar problems with delayed in session writing or
lost session data? I register all of the data into
the session that I need leave the session alone except for reading
of the session data.
Thanks in advance!
Ma
method.
Hope this makes more sense than my last post.
Thanks again!
Matt
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 5:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] dreaded sessions
just
[snip]
How I can create thumbnail with php? using the GD libray?
[/snip]
yes.
Also I hear imagemagick works well.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
OK, but how? I already use GD, I need to now how to create a thumbnail,
somebody now how to use the GD functions to create a thumbnail???
[/snip]
http://www.php.net/GD
I think you want to look at:
imagecopyresampled -- Copy and resize part of an image with resampling
imagecopyresized --
[snip]
I'm using the following to replace certain characters but am having
troubles
with TABS. How do I find them?
$replacement = array("\"", ",", ".", "!", "?",";", ":",")","(","\n");
Thanks
[/snip]
I think \t . Double check with google.
--
PHP General Mailing List (http://www.php.net/)
To u
[snip]
Can some one point me in the right direction for a good tutorial on
form
validation in PHP?
Thanks,
alex hogan
[/snip]
I like to use regular expressions for my form validation. Search
google for reugular expressions, you will get a bunch of results. Also
take a look at the php ma
[snip]
Hi,
you can do it on server site (php code) or client side (javascript
code)
DS
[/snip]
Is this a question? If it is, yes you can use regular expressions with
javascript and php.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
while ($row = mysql_fetch_array($selection)){
if (section == $sectionName){
echo "" . $row["sectionName"] . "";
}else{
echo $row["sectionName"];
}
thx
Not sure if I understand you 100% but I think you could just either
check the $_GET or $_REQUEST array. Something like this:
i
try this:
print "";
print_r ($_POST);
print "";
do you see nome in there? I think the reason $senha has a value in it
is md5 gives you a string even if you pass it a blank value.
I would use these 2 variables $_POST['nome'] and $_POST['senha']
also look at register_globals on the php.net websi
http://us2.php.net/substr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you store session variables , but the user has session cookies
disabled,
is there any way to recuperate those session variables?
Yes, look at the session.use_trans_sid variable.
http://www.php.net/session
If cookies are disabled, php will pass the session id as a ur variable
or a hidden f
If I want to store a session id in a database, how would I do it ,
like
this?
$session_id=SID ; ?
and then if I want to retrieve this session id and get all of the info
back
that goes with this session id, I would say
session_start()
and then what?
thanks
You could just have php store all of th
Should I use
setlocale()? I mean is there a way which will give me the local
datetime
without calculating the difference manually?
I have not used it, but it looks like setlocale() will give you what
you want.
http://www.php.net/manual/en/function.setlocale.php
Suppose that I want to show th
I am having problems generating an array based on data passed from a
form.
The form has a series of fields with the same name "math". When
submited if
i have register_globals=on i have no problems calling a $math variable
and
it spits out all the values assigned to math, however with
register_glob
echo "";
$Student = array ("albert Einstein", "Ivan the Terrible", "Napolon",
"Simon Bolivar", "Issac Newton");
while(list(,$name)=each($Student)){
echo "what grade did $name get in Maths?";
echo"";
echo "
Grade A
Grade B
Hi,
I noticed that often mod_php loaded as a shared library by apache
doesn't
load php.ini,
and I have to restart apache to make it work.
Apache version is 1.3.28 and Php is 4.3.4, all compiled by me.
They are running on an updated RedHat 7.3.
Is it a known (and solved) problem?
I may be way o
page
(personalpage.php?id=$id)...
How do I do this?
thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Or, correctly:
header("Location: http://www.yourdomain.com/personalpage.php?id=$id";);
to add to what john said, you could make it a little easier to move
your script from place to place if you use some php variables and the
dirname function.
this comes right from the manual:
http://"; . $_S
ge.php?id= (id = nothing).
any suggestions?
thanks
matt
"Matt Hedges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I've built a page where someone can enter in their information...
> currently, when they hit submit, a screen comes bac
I have about 8 different pages that are all session linked. Do I have
to add this ini_set() at the beginning of all the session_start() calls
on all these pages.
Not 100% sure, but I think if you dont add ini_set() before all of your
session_start() calls, session.gc_maxlifetime would get se
Also if I were to create a .htaccess
file that is kept in the same dir as the application, what do I need to
include in that file ?
something like:
php_value session.gc_maxlifetime 25000
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm really curious to see if any of this really works. I know it
_should_,
but...
Assuming a shared/virtual server where all session files for all sites
are
in the same location. When the garbage collector is triggered by a
request
to the site with this setting in .htaccess, does it honor this se
With a GET, the fields would be included into the query strinbg, so
this is quite easy. What happens in a POST?
take a look at http://pear.php.net/package/HTTP_Request
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you "View Source" in IE, you'll see it printed in the expected way.
The browser, though, will not show it as you expect it. This is
because
the browser needs a tag for a newline and will not read a \n as a
.
So, use instead of \n.
you could also wrap the text in tags.
--
PHP General Ma
HTTP/1.1 302 Found
Date: Mon, 26 Jan 2004 11:38:51 GMT
Server: Apache
X-Powered-By: PHP/4.3.1
Location:
http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pra
Hi,
Is there a way to go through a table and remove all duplicate entries so
that there is only one? The way I am doing it now is taking FOREVER. Thanks,
Matt Stone
___
This email may contain confidential and/or privileged information for the
sole use of the
Uhh not really, the table has about 3 entries. Don't really want to
risk anything.
I want to know how to do it through a MySQL statement, not a php script.
-Original Message-
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 10 January 2001 2:39 PM
To: Matt
e to a variable that I can manipulate and then later store
> in a database.
http://www.php.net/manual/ref.outcontrol.php
Specifically, ob_get_contents().
Start an output buffer, include your files, get the contents, and
ob_ed_clean. Ought to do the trick.
Matt
--
PHP General Mailing List
if(ereg("jpg|jpeg|gif$",$userfile_name))
{
do something
}
else
{
this file is not allowed
}
This will check that the uploaded file has the correct extension.
Where $userfile is the upload field name in the form
M@
> -Original Message-
> From: Statbat [mailto:[EMAIL PROTE
501 - 600 of 1653 matches
Mail list logo