works for me with firefox 0.8...
[EMAIL PROTECTED] wrote:
Hi List,
I don't know PHP but I've had a novice programmer do some login scripting
for me which works in IE but not in Firefox. Can anyone see why? The login
is jen and jenpen.
http://ssl.linknet.com.au/renalsociety/rsalogin.php
Jen
On Sun, 17 Oct 2004 17:01:41 -0700, [EMAIL PROTECTED] wrote:
I don't know PHP but I've had a novice programmer do some login scripting
for me which works in IE but not in Firefox. Can anyone see why? The login
is jen and jenpen.
http://ssl.linknet.com.au/renalsociety/rsalogin.php
It's using
Firefox 1.0 claims it cannot find the site, though the same url is ok in
IE6. Opera7.23 is ok with it as well. But it has come up in Firefox on
the third attempt.
That is interesting; does the lates firefox have a weakness?
Joseph Harris
works for me with firefox 0.8...
[EMAIL
Thanks Mark, cookies was the problem. I'll have to place a warning for
users.
Cheers, Jen
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to
- Original Message -
From: Ross Clutterbuck
It's time to learn PHP and MySQL.
True :-)
Resources, tutorials, books, training, any and all types of
learning materials required!
Hardly any needed if you already know how to use ASP or Perl and the
essentials of SQL queries... the
Ross,
I've enjoyed PHP an MySQL Web Development, Second Edition[1] from
Developers Library. It's a well written book with good code examples,
which is aimed at the intermediate to advanced web designer (it
assumes a working knowlege of html).
Oh! and don't forget the ever useful
- Original Message -
From: Joseph Harris
I imagine that this
'{$_POST['$poem_title']}',
is the fault line
I imagine so, the string '{$_POST[' followed immediately by the characters
$poem_title and then another string ']}' doesn't make a lot of sense.
You can't surround part of a
-Original Message-
From: Sheila Fenelon
Re: php and css tables
Hi drew,
I'm confused, where exactly are you doing this
.top{background-color:$top_row_color;}
table{border: 1px solid $main_table_border_color;}
Is it in a .css file or a .php file? It needs to be in a .php file
-Original Message-
From: steve miller Sent: Wednesday, July 28, 2004 1:24 PM
To: [EMAIL PROTECTED]
Re: php and css tables
I know this has worked for me:
.plan_name { color: ?php echo $colorG ?; font-weight: normal;
font-size: 18px; font-family: Trebuchet MS, Verdana, Arial; }
-Original Message-
From: Sheila Fenelon [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 8:35 AM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: php and css tables
Trusz, Andrew wrote:
What does turn out to
work is just to drop the quotes in the embedded style sheet. So both
Trusz, Andrew wrote:
What does turn out to
work is just to drop the quotes in the embedded style sheet. So both of
these work:
table width=$main_table_width align=center valign=center
border=0 cellspacing=0 cellpadding=1
bgcolor=$main_table_border_color
and:
style type=text/css
table{border:1px
I found PHP-Collab to be easy to install. The interface is pretty intuitive
but that's as far as I've gotten with it. Haven't actually tried to use it
yet.
Cheryl D. Wise
Certified Professional Web Developer
MS-MVP-FrontPage
www.wiserways.com
mailto: [EMAIL PROTECTED]
713.353.0139 Office
Gforge.org, haven't tried it but it is sourceforge's original code.
-Original Message-
From: Stephen Caudill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 5:37 AM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] PHP/mySQL Open Source Project Management Tool
Hi all,
I've been
That's good to know :) I've had a series of open source software
installation disasters, so it'd be nice to have one that won't be a
massive headache! I think I'll give this one a shot, as CopperProject
is $199... not that it's not worth it to invest in Open Source, my
wallet just won't allow
Looks intersting Pablo, but I think it might be geared towards bigger
phish than I :) Plus I would really like it to have the client
component, as I'm about to get very strict about using RAD techniques,
so the early client feedback will be necessary.
Thanks,
Stephen
On Tue, 22 Jun 2004
Hi Jac,
Should a php page with php includes still render
properly on a local machine if you were to preview in
IE from within Dreamweaver?
I don't usually write my PHP stuff in Dreamweaver so I can't say for sure,
but I wouldn't have thought so.
Of course it might include a PHP interpreter
I think if would depend on how you are previewing it. I have no problems
when I preview in browser using Dreamweaver but I have IIS installed with
the PHP interpreter so using my testing server as configured for the
Dreamweaver site works fine. If you don't have a testing server check the
Presumably if you upload the page to a server running PHP
everything works
fine?
Cheers
Jon
Thanks Jon,
yeah i've since read that I'd need some stuff installed on my local
machine for it to render. So I uploaded it to the server and all that is
displayed is bg image of the page - no
I don't get this - how is it possible for all the code to be visible in
Notepad when I view source and not render on the actual page in the
browser?
anyone?
jac
Thanks Jon,
yeah i've since read that I'd need some stuff installed on my local
machine for it to render. So I uploaded it
Ok forget it - all fixed :o)
I took out the comments in the code and the page now renders fine ???
lol
cheers thanks for your time help.
jac
phew!
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To:
Hi Amrit,
How do I change Apache config file so that my SHTML files
execute PHP code? I know we can make any file do this.
In your httpd.conf you should have a line that looks like this:
AddType application/x-httpd-php .php
You should be able to add whatever you want to the end of that:
Mmmm, Peet, do us a favor in the future if you don't mind. Most of us, I
imagine, would really rather not receive the entire digest accompanying your
reply. A little judicious trimming might be appropriate.
Cheers,
Scott
- Original Message -
From: Peet - Nu Breeze Tech [EMAIL PROTECTED]
rudy wrote:
Is there not a way that a person could do one or two read instructions
and obtain all the records in the different categories in one go?
certainly
select category
, count(*) as test
from offers
group
by category
Rewriting your original PHP with rudy's SQL:
?php
Finally, this code did the trick for me:
?php
if (!function_exists('virtual')) {
echo h1Error, not running as Apache module/h1;}
// get name of the requested page
$request = rawurldecode($REQUEST_URI);
if(get_cfg_var('magic_quotes_gpc')) $request = stripslashes($request);
// check that this is
- Original Message -
From: Amrit Hallan
To: [EMAIL PROTECTED]
Sent: April 22, 2004 4:02 PM
Subject: [wdvltalk] PHP: 404 error handling
I'm trying to write a custom 404 error handling script in PHP. The
script, redirect.php, needs to know what wrong URL was entered by
the
visitor.
No error message. I have even tried print($_SERVER['DIRECT_URL']; and it
returned 0.
print $_SERVER['REQUEST_URI']; returns /redirect.php whereas I need to
know the name of the file that was not found.
Thanks.
Amrit
http://www.bytesworth.com
Mark Groen wrote:
- Original Message -
- Original Message -
From: Amrit Hallan
To: [EMAIL PROTECTED]
Sent: April 22, 2004 5:39 PM
Subject: [wdvltalk] Re: PHP: 404 error handling
No error message. I have even tried print($_SERVER['DIRECT_URL'];
and it
returned 0.
print $_SERVER['REQUEST_URI']; returns /redirect.php
Joseph,
include $_SERVER['DOCUMENT_ROOT'].
'/html/books_layout.html';
unexpected T_STRING, expecting ',' or ';'
What might be causing the confusion?
include() is a function, so you need to surround the address with brackets,
like this:
include ($_SERVER['DOCUMENT_ROOT'].
Joseph,
This is the foreach:
foreach ($xml_tree[PRODUCTINFO][0][DETAILS] AS $product) {
Followed by a set of lines which are variations on this cut and paste
$product_manufacturer = $product[MANUFACTURER][0][VALUE];
Try sticking quotes round the array indices (the bits in square brackets):
Jon,
120 apostrophes and deletions later I can confirm that that wasn't it!
Would you believe it moved on when I took the quotes away from DOCUMENT ROOT
?And wants double quotes round 'echo' strings
And I have had to take more quotes away! But now I am getting this, and I
can't remember
Joseph,
And I have had to take more quotes away!
PHP's quote handling is a bit strange and can take some getting to grips
with :-)
Strings inside double quotes are parsed, meaning you can do this sort of
thing:
// my pet is a cat
$pet = cat;
echo my pet is a $pet.;
Strings inside
Jon,
That is really helpful; some of it I had picked up, and it confirms it and
makes it orderly. Funny, I was nervous about removing quotes from DOCUMENT
ROOT and its brethren, but increasingly I am thinking this is a code full of
little gremlins having fun!
I can't see a missing quote a
--- Smile-Poet wrote: ---
: Jon,
:
: That is really helpful; some of it I had picked up, and it
: confirms it and makes it orderly. Funny, I was nervous about
: removing quotes from DOCUMENT ROOT and its brethren, but
: increasingly I am thinking this is a code full
Jon,
Just to update. It was a missing single quote at the end of an echo line.
Now I get the error appropriate to the fact that the script can't access
Amazon, which is as it should be.
Cleary there is some difference, too, inside a foreach; until these
variants are clear it makes fro a very
Stephen,
I'm using html-kit which is probably similar, using colour and bold to show
what is happening. Of course it needs me to know what it is signifying,
which is beginning to happen! But the quotes do not stand out, though
sometimes the part affected is visible by being the wrong colour.
On Thursday 15 April 2004 23:10, Smile-Poet wrote:
Three appear to work as intended; so why should the fourth bring up
this:
Fatal error: Cannot redeclare class meta in
c:\easyphp1-7\www\classes\clsMetaContent.php on line 5
line 5 is merely '{' following line 4: Class meta.
Where might
Dave,
Thanks for the answer.
I see the point and the manual is (fairly) clear.
But this is where I am at the moment
include_once($_SERVER['DOCUMENT_ROOT'].'/classes/clsMetaContent.php' );
(Now I guessed I might not have converted $_SERVER correctly, but I am lost
!)
and it produces this:
- Original Message -
From: Smile-Poet
But this is where I am at the moment
include_once($_SERVER['DOCUMENT_ROOT'].'/classes/clsMetaContent.php' );
Try either of:
include_once($_SERVER['DOCUMENT_ROOT']/classes/clsMetaContent.php);
or
include_once($_SERVER['DOCUMENT_ROOT'] .
Bj wroteSheesh. What's the world coming to, when absolute
beginners with no
programming background are supposed to be figuring out classes.
I think it's called 'The Deep End Philosophy'.
This is the only one that is happy:
include_once($_SERVER['DOCUMENT_ROOT'] . '/classes/clsMetaContent.php');
- Original Message -
From: William Stewart
Phew, hard to follow all that... still I'll try:
echo $meta-metadata($ptitle);
It's possible it's choking on $ptitle, as I can't see that you've defined
that anywhere, even as the empty string. You might try:
?php
if (!isset($ptitle))
Thanks BJ for your help. I finally got it working through some
convoluted means and have decided its not worth the trouble. :)
Thanks again!
Will
-Original Message-
From: Bj [mailto:[EMAIL PROTECTED]
Sent: Friday, April 16, 2004 12:01 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re
- Original Message -
From: Cheryl D. Wise
I do not consider myself a programmer but
someone with enough familiarity with
programming to function.
That's about where I am with Web designing, as opposed to the coding side.
I can lay out a page with table or frame commands* and choose
Bj wrote:
...using various BASICs, C, Assembler (Intel 6502 and VAX Macro-32),
microcode, Pascal and COBOL, have been sent on formal short courses in
ICL 2966 COBOL and SCL, IBM Rexx/CMS and the Unix Bourne shell, spent
over two years programming COBOL for a living and over the past twenty
years
Cheryl D. Wise wrote:
I find this discussion interesting. I do not consider myself a programmer
because I do not like to write programs. I can and do write code though
given a choice I'd rather use something already written or give that part of
a project to someone who likes to write code.
I took
programmer design sense, enough said.
grin /
Cheryl D. Wise
Certified Professional Web Developer
MS-MVP-FrontPage
www.wiserways.com
mailto: [EMAIL PROTECTED]
713.353.0139 Office
-Original Message-
From: Bj
*Yes I know, I should do it in CSS, liquid layout and all that; 5 minutes to
Joseph, so how does this help you? We've all had years of experience
fixing our own code and the code of others, and we are still learning. I
wonder if it would have been best for you to have searched the various
code respositories for an application, for example hotscripts.com. If I
Sheila--
If anyone knows of good PHP book, for beginners, please speak up. I get
asked this question all the time. The O'Reilly book might be OK but it's
[snip]
The blokes at Sitepoint.com have a two-book set titled THE PHP ANTHOLOGY.
Volume 1 is Foundations. Volume 2 is Applications. Kinda
I realise that I am not going to convince those on the list who really do
know their MySQL/PHP from their 'embonpoint' to get to gether for a book
(apart from rudy). But all the, very useful, pieces of information, like
Don's, really underlines my point.
'Kinda pricey' for example; and the
I realise that I am not going to convince those on the list who
really do
know their MySQL/PHP from their 'embonpoint' to get to gether for a
book
(apart from rudy).
i've read this sentence several times and i just do not get it
you are going to convince nobody except me?
you are going to
rudy wrote:
where are sheila and cheryl this weekend, i wanna know
i wanted them to review the sql course i am developing...
I'm here. It's Day Three of a four day weekend for my kids from school.
I want to review your sql course but have been waiting for a quiet
moment. Difficult with
Don Kinney wrote:
Sheila--
If anyone knows of good PHP book, for beginners, please speak up. I get
asked this question all the time. The O'Reilly book might be OK but it's
[snip]
The blokes at Sitepoint.com have a two-book set titled THE PHP ANTHOLOGY.
Volume 1 is Foundations. Volume 2 is
Joseph,
About my contribution to your 'dream book' I have my course at
EclecticAcademy.com As long as I'm teach there I can't publish it
elsewhere. I have thought about adding a PHP Tips page to my site. I
may do that.
Sheila
Smile-Poet wrote:
I realise that I am not going to convince
I'm here. It's Day Three of a four day weekend for my kids from
school.
yeah, i know what you mean
my ex and i have a co-parenting thing where the kids live with me
for two weeks, then with her for two weeks...
luckily they are with her this weekend
but spring break week is worse than easter
CRA (canada revenue agency) want me to submit a return for 2002
maybe i should get on it, eh?
I know this is off-topic, but you really need some management consulting
advice here. You are obviously too busy to perform some unproductive task
like completing tax forms. Eventually, the
I feel myself rolling like the easter egg - or some of them that are rolled
down hills - you didn't know?...
Rudy, my apologies for obscurity, far from intending to suggest any lack of
knowledge on your part, I was commenting that you were the only one to
express interest in my idea.
Sheila, I
- Original Message -
From: Smile-Poet
I realise that I am not going to convince those on the list
who really do know their MySQL/PHP from their
'embonpoint' to get to gether for a book
I think Sheila's got the most important point. What I know is programming.
I was taught
My point being, it's like driving a car. If you can drive, you can
drive,
nice post, bj
sql is like that too
once you know sql, you can use any database like oracle, sybase,
access, mysql, postgresql, firebird, sql server, et cetera, et cetera
the difference, though, is that there *is* an
- Original Message -
From: Smile-Poet
Ah, well, back to the poetry.
In my craft or sullen art,
Practised in the still night
When only the moon rages
And lovers lie abed
With all their griefs locked in their arms,
I labour by singing light;
Not for ambition or for bread,
Or for the
- Original Message -
From: rudy
sql is like that too
once you know sql, you can use any database like oracle, sybase,
access, mysql, postgresql, firebird, sql server, et cetera, et cetera
Ah, did I mention my HNC and HND courses included formal training in
database methodologies,
Like Sheila it is on my to do list. I was in Seattle at the Microsoft MVP
Summit last week and returned home just in time for Easter weekend. I still
haven't caught up with everything. Just returned from my brother's house
where we had a family dinner. Leaving again on Tuesday for California to
I find this discussion interesting. I do not consider myself a programmer
because I do not like to write programs. I can and do write code though
given a choice I'd rather use something already written or give that part of
a project to someone who likes to write code.
I took one programming class
- Original Message -
From: Cheryl D. Wise [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: April 11, 2004 6:41 PM
Subject: [wdvltalk] Re: PHP book update
snip a long list of computer experience...
I do not consider myself a programmer but someone with enough
familiarity
with programming
Folks,
This is the book I'm working off.
PHP and MySQL Web Development, 2nd edition
Luke Welling, Laura Thomson
I'm managing to work through it happily enough and would recommend it based
on progress so far, i.e. about page 200.
John.
john.f.hughes
Goodbody Stockbrokers
Private Clients
Franni,
When I'm learning something from scratch I usually try the Peachpit Quick
Start books.
A quick search on Amazon throws up this.
http://www.amazon.co.uk/exec/obidos/ASIN/0321245652/ref=sr_aps_books_1_1/202-1038935-1487825
The reviewers seem positive enough about it...
I don't have
-Original Message-
From: Sheila Fenelon [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 6:43 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: PHP book update
Bj wrote:
Joseph, you almost make me want to write a php book just for you, however
I
am sure there are good ones out
PM
| To: [EMAIL PROTECTED]
| Subject: [wdvltalk] RE: [PHP] problems with php.ini - HELP
|
|
| Paul,
|
| Would it be likely to help if I checked what the installation
| put in my
| php.ini (apache, MySQL, PHP as EasyPHP1-7); you would have
| to give me the
| line number.
|
| Joseph
Folks,
This is the book I'm working off.
PHP and MySQL Web Development, 2nd edition
Luke Welling, Laura Thomson
I'm managing to work through it happily enough and would recommend it based
on progress so far, i.e. about page 200.
John.
john.f.hughes
Goodbody Stockbrokers
Private Clients
have
experienced how well you all teach)
Joseph
-Original Message-
From: Sheila Fenelon [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 6:43 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: PHP book update
Bj wrote:
Joseph, you almost make me want to write a php book
Sheila,
I honestly think that the best people to write a php book are the experts of
wdvltalk. I can test it for you, and, as you have seen, if there is
anything you have not made crystal clear I will not be able to make it work
;-)
In the course of my travails I realised how real the point
]
| Subject: [wdvltalk] RE: [PHP] problems with php.ini
|
| Shouldn't be so... I think I remember using document_root in
| win2k pro.
|
| Paul
|
| | -Original Message-
| | From: Trusz, Andrew [mailto:[EMAIL PROTECTED]
| | Sent: Friday, April 02, 2004 6:02 PM
| | To: [EMAIL PROTECTED
Thank you :-).
Such things make one feel sometimes dumb and humble. Besides, they
needlessly waste so much time :-(.
Amrit
http://www.bytesworth.com
Sheila Fenelon wrote:
You have some typos in your code 'lables' instead of 'labels'.
This worked for me:
?php
function common_form_labels()
{
Amrit Hallan wrote:
Such things make one feel sometimes dumb and humble. Besides, they
needlessly waste so much time :-(.
I did't see it either until I copy and pasted the code into my code
editor and tried to run it. The editor found the problems, not me. A
good editor will save you lots of
- Original Message -
From: William Stewart
I have a variable that I want to define as an include of
a .txt file. In other words, I want something like:
$subcontent = include(text.txt);
Simplest is just to put the whole variable definition into the include file:
?php
William Stewart wrote:
I am trying to dynamically include a file based on what folder the file
that is calling it is in. For instance:
The file www.whatever.com/abc/index.php would include the file:
www.whatever.com/template/abc.php and the file
www.whatever.com/xyz/index.php would include the
$Query = Insert into $TableName (id, name, date) values ('', 'number
three', '2004-12-02');
loose all references to id making...
$Query = Insert into $TableName (name, date) values ('number three',
'2004-12-02');
My first thought was that you're forcing a blank into the id field...
Try
[EMAIL PROTECTED] wrote:
I get the success message and an id of 0 when it should be 3 and no data
inserted in either table.
You haven't sent the queries to MySQL.
$Query = Insert into $TableName (id, name, date) values ('', 'number
three', '2004-12-02');
$result = mysql_query($Query);
if
snip
You haven't sent the queries to MySQL.
$Query = Insert into $TableName (id, name, date) values ('', 'number
three', '2004-12-02');
$result = mysql_query($Query);
if ($result) {
$id= mysql_insert_id();
} else {
echo There was a problem with the query: $Query\n:
}
You'll need
PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: php
$Query = Insert into $TableName (id, name, date)
values ('', 'number
three', '2004-12-02');
loose all references to id making...
$Query
Drew,
Incorporating what the others have suggested, here's what you want:
?php
/* Set variables for database access */
$Host = localhost;
$User = root;
$Password = ;
$DBName = MySQL.respite;
$TableName = register;
$TableName2 = money;
$Link= @mysql_connect($Host, $User, $Password) or
I like to post to self.
A general outline of a simple form script goes like this:
?php
// include config file or other functions needed
include(_header.php);
if ($_SERVER['REQUEST_METHOD'] == GET) {
// display a blank form
display_form();
} else if ($_SERVER['REQUEST_METHOD'] == POST) {
Brilliant! I am always using if isset in a similar maner so all I can say
is doh! That is exactly what I need to take care of the refresh problem.
Posting to self Score: 1
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Anitha Paruchuri wrote:
Hi,
I am trying to check the length of the password entered by the user
using strlen($password). It works fine when say I enter a password as
'abc123' but if I entered '123abc' it somehow doesn't work fine. Am I
missing something here? Should the $password or the variable
- Original Message -
From: Anitha Paruchuri
I am trying to check the length of the password entered
by the user using strlen($password). It works fine when
say I enter a password as 'abc123' but if I entered
'123abc' it somehow doesn't work fine. Am I missing
something here?
Either
The code where it does this is here--
if (strlen($cpassword)5 || strlen($cpassword 16))
{
echo Your password must be between 5 and 16 characters. Please go back
and try again.;
exit;
// check password length is ok
}
I tried printing the values of
] cc:
.niu.eduSubject: [wdvltalk] Re: PHP Question
Anitha Paruchuri wrote:
The code where it does this is here--
if (strlen($cpassword)5 || strlen($cpassword 16))
A misplaced )
You probably want this:
if (strlen($cpassword)5 || strlen($cpassword) 16)
Sheila
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An
Thanks so much...Huh sometimes you feel like such a stupid to do these small errors.
But Thanks everyone it is definately the ')' but what suprises me is that all the
while it did not give any problem until i tried entering a password starting with
numbers. I think I must have entered atleast
- Original Message -
From: Anitha Paruchuri
what suprises me is that all the while it did not
give any problem until i tried entering a
password starting with numbers.
Well, look at it this way. By comparing $password with a number you are
forcing it to evaluate to a numeric value.
Bj wrote:
Seems like, if you have to accept and check https: links, you need to either
find another way to do it (maybe something really Gothic using Perl) or save
them and check manually!
I did a little rooting around, and found that if you have libcurl 7.9.8 or
newer installed and OpenSSL,
Bj wrote:
I think you're trying to make it harder then it needs to be. The php
fopen() function does work in safe mode, and will only return success if the
page exists - it will fail if a 404 is returned. The code I originally
suggested is all you need to check a link:
if (fopen($url,
- Original Message -
From: Steve Miller
This is working OK, except that any https link that
I try to fopen comes back false, even when I know
it is a good link. Is there something I need to add
within the script to allow me to open a secure file?
Ahh. Hmmm. What a good question.
From: Steve Miller
We are setting up an application where users will be
entering links into a db, and we need a way to check
them to make sure they are good.
Php can open a Web page like opening a file - or not, if the link is no good. So, you
could experiment with something like:
if
On Wed, 2003-12-31 at 09:39, Bj wrote:
From: Steve Miller
We are setting up an application where users will be
entering links into a db, and we need a way to check
them to make sure they are good.
Php can open a Web page like opening a file - or not, if the link is no good. So,
you
On Wed, 2003-12-31 at 12:44, Matthew Macdonald-Wallace wrote:
how about building on this:
I'm gonna take it one step further. How about having an array of the
error codes you _Don't_ want, i.e:
500 Internal Server Error
404 Document Not Found
301 Moved Permanently
302 Moved Temporarily
403
Hello,
Subhendu Mohapatra wrote:
I am using PHP,MySQL,Apache in Win 98 PF. I am creating one login system
and in this email address are to be stored after encrypting. Members has
to use email and password to login to system. I am able to store the
encrypted email address in MySQL but while
Replace define ('TEXT_INFORMATION','it's cold.') with
define('TEXT_INFORMATION','it\'s cold.') when you put the apostrophe in, PHP
reads it as an end to the string you want to display, using the backslash
tells PHP to display the character following as a literal character, without
parsing it as
- Original Message -
Sent: November 25, 2003 4:18 PM
Subject: [wdvltalk] PHP coding
If I code the following:
define('TEXT_INFORMATION', 'It is cold.');
echo TEXT_INFORMATION;
It works fine as it displaces the It is cold. at the right place.
But, if
I change it to:
Quoting Steve Miller [EMAIL PROTECTED]:
I have been trying to upload gifs and jpgs, determine their width/height,
and display them. I am using
$size=GetImageSize($broker_logo);
$logo_w=$size[0];
$logo_h=$size[1];
and storing in a database, but am getting wrong values which distort
Hi Matt.
Was thinking of that, but I am storing H and W now, and would have to alter
the db tables...but might be worth it!
steve
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Tue, 18 Nov 2003 16:46:43 +
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: php image size
Quoting Steve Miller [EMAIL PROTECTED]:
Hi Matt.
Was thinking of that, but I am storing H and W now, and would have to alter
the db tables...but might be worth it!
Steve,
The only other thing I can think of would be to check your code and make sure
that you're not writing the height variable
1 - 100 of 170 matches
Mail list logo