could you send the line 16 the parser was pointing out?
(B
(BIt could be you have the wrong number of parameters for the call to
(Bmysql_connect(), or your PHP wasn't compiled with mysql functionality
(Benabled. (This is doubtful since mysql functionality is ON by default).
(B
(B
(B-
On Mon, Jan 19, 2004 at 06:50:37PM +0200, John Clegg wrote:
Hi
I am having some problems with preg_replace and I wondering if someone
could suggest a fix or explain why it is not working.
Here is the Code:
*
?php
$code = blah
John Clegg wrote:
Hi
I am having some problems with preg_replace and I wondering if someone
could suggest a fix or explain why it is not working.
Here is the Code:
*
?php
$code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah;
$url =
Hi Joel,
Thanks for the reply.
I have tried using / to delimit the string and I get the following error
String
$url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;;
Gives the error:
*Warning*: Unknown modifier '/' in* /test.php* on line *8*
I found out that I could use '
Hi
I have just realised that I have to delimit the following characters so
I can use preg_replace:
/
?
[
]
Is there any php command to delimit all of these characters as I am
getting the string I am trying to replace from the database.
eg.
\?
Any ideas
John
John Clegg wrote:
Hi Joel,
On Mon, Jan 19, 2004 at 07:15:53PM +0200, John Clegg wrote:
Hi Joel,
Thanks for the reply.
I have tried using / to delimit the string and I get the following error
String
$url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;;
Gives the error:
*Warning*: Unknown
John Clegg wrote:
Hi
I have just realised that I have to delimit the following characters so
I can use preg_replace:
/
?
[
]
Is there any php command to delimit all of these characters as I am
getting the string I am trying to replace from the database.
eg.
\?
Any ideas
John
Maybe
John Nichel wrote:
John Clegg wrote:
Hi
I have just realised that I have to delimit the following characters
so I can use preg_replace:
/
?
[
]
Is there any php command to delimit all of these characters as I am
getting the string I am trying to replace from the database.
eg.
\?
Any ideas
On Tuesday 20 January 2004 01:31, John Clegg wrote:
Is there any php command to delimit all of these characters as I am
getting the string I am trying to replace from the database.
preg_quote()
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
*
joel boonstra wrote:
The problem is that there are still special chars that need escaping.
Specifically, the question mark (?) and the square braces ([]).
Here is some modified code (apologies for poor word-wrapping):
?php
$code = blah
John W. Holmes wrote:
In $url, the periods still need to be escaped, too. This is where
preg_quote() comes in handy.
$url = http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL];;
$url = preg_quote($url);
$code = preg_replace(#$url#,$replace,$code,1);
I hope the OP took notice of the
I'm creating a form that puts data into two different tables in the
database. I was wondering how to get the ID from the first table
and, in the background, associate it with the second table?
any help is GREATLY appreciated!
Firstly you never said which db ? I'll assume mysql, check out
On Sunday, January 18, 2004, at 01:39 PM, eawilkes wrote:
I'm creating a form that puts data into two different tables in the
database. I was wondering how to get the ID from the first table
and, in
the background, associate it with the second table?
any help is GREATLY appreciated!
Check out
On Thu, 2004-01-08 at 16:27, Carlton L. Whitmore wrote:
I'm very new to PHP.
I want to display /var/log/lastlog with php on a webpage, but I need
some help. How do I do that?
Looking at the docs it looks like file() would work, but I couldn't get
it to display the file.
I would guess that
Anytime I need to do something similar to this I prefer to use lynx
-source [[URL]] [[output_file]]
HTH!
--Sam
Paul Godard wrote:
Hi
I have develop an online catalog in php/mysql. Now the client needs
the web site on a cd. Of course without php or mysql...
What is the fastes and
You should direct such queries to the MySQL mailing list as this is a PHP
list.
[EMAIL PROTECTED]
or try their website:
www.mysql.com
Your answer however is here:
http://www.mysql.com/doc/en/SELECT.html
- Original Message -
From: Richard Kurth [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi,
Tuesday, December 16, 2003, 6:30:22 PM, you wrote:
RK I need to know how I can do a where clause in a select statement for mysql
RK where
RK one of the fields can have two solutions. In the example below
RK field3 needs to equal all with a and also all with b. Can this be done and
RK if so
[snip]
I am Using PEAR DB and i got this error after I have upgraded php4 to
php5.
Fatal error: Only variables or references can be returned by reference
in
/var/www/php/lib/php/DB/common.php on line 766
Could anybody tell me what I can do to resolve that error.
[/snip]
Go back to PHP4? We'd
[snip]
Warning: Cannot modify header information - headers already sent by
(output
started at /home/ewako/public_html/cintadp/config.php:153)
in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line
547
help me!!!
[/snip]
Stop sending headers And send a little code
--
[EMAIL PROTECTED] wrote:
Warning: Cannot modify header information - headers already sent by (output
started at /home/ewako/public_html/cintadp/config.php:153)
in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547
help me!!!
Output has been sent to the browser before you
aiwi Warning: Cannot modify header information - headers already sent by (output
aiwi started at /home/ewako/public_html/cintadp/config.php:153)
aiwi in
aiwi /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on
aiwi line 547
aiwi help me!!!
Check there are no spaces or newlines
Daevid Vincent wrote:
myPacket:
--
How come I don't get ANY array under myPacket:?
[snip]
function printMyVars()
{
echo myPacket:\n;
print_r($myPacket);
}
Two words: Variable Scope. :)
$myPacket is local to the function and empty.
--
---John Holmes...
Amazon
To: Daevid Vincent
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with associative array in a PHP
class. Not working as I'd expect it to?!
Daevid Vincent wrote:
myPacket:
--
How come I don't get ANY array under myPacket:?
[snip]
function printMyVars
--- ÎÚÓÐ ÎÞ [EMAIL PROTECTED] wrote:
Reproduce code:
---
login.php:
$user_array=sybase_fetch_row($result);
session_start();
session_register(user_array);
...
index.php:
session_start();
$user_name=$user_array[1];
Try this
On Saturday 29 November 2003 06:03, Jon King wrote:
I'm having trouble getting a log formula to work. This forumla is supposed
to return the number of payment required zero out a loan balance.
print -(log(1-($B/$m)*($r/$q)))/log(1+($r/$q));
It keeps returning a NaN. I've checked the
* and then Rasmus Lerdorf declared
Why not just fread($pagehandle,32768) ?
Sure. I just got confused as to why '8912' was on the example and
thought it significant. I see it's not now, thanks ;-)
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Why not just fread($pagehandle,32768) ?
On Wed, 26 Nov 2003, Nick Wilson wrote:
Hi all,
I'm using the code below to open webpages and read them into a variable.
I got the example from the manual but am confused as to how to limit how
much of the page to read.
Ideally, I just want to read
Mark wrote:
The syntax I am using is this.
system('cmd/c start notepad my.txt', $results);
or
exec('start notepad my.txt', $results);
You shouldn't be using exe() or system() for this, use fopen() to open a
file from within PHP for editing.
--
---John Holmes...
Amazon Wishlist:
John W. Holmes wrote:
Mark wrote:
The syntax I am using is this.
system('cmd/c start notepad my.txt', $results);
or
exec('start notepad my.txt', $results);
You shouldn't be using exe() or system() for this, use fopen() to open a
file from within PHP for editing.
Thanks for the reply. The
[snip]
If you code properly, you could get away with turning register_globals
on, but this requires you to be very careful when thinking about the
logic of your code.
[/snip]
I really do hate to see the misconception about register globals
continue. The bottom line is variable handling,
--- Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
If you code properly, you could get away with turning register_globals
on, but this requires you to be very careful when thinking about the
logic of your code.
[/snip]
I really do hate to see the misconception about register globals
Rolf Brusletto wrote:
Mark wrote:
Sorry guys, I have tried all the suggestions so far with no luck.
Regards,
Mark
Mark - After the mysql_query($query); line add the following line
echo mysql_error();
run the script and try to add something again, if there is an error, it
will tell
Important to mention, that the reason why the
$variable
probably doesnt work is that your service provider
has turned off the globals. In this case you would need,
as Zhuravlev mentions, use $_POST[variable] to
insert the records. All in all, since the factory setting in
the new versions of PHP
Chris Shiflett mailto:[EMAIL PROTECTED]
on Monday, November 10, 2003 8:21 PM said:
It would probably need to be either very short or very long.
Yes, I would prefer very long so as to be as complete as possible.
2. The session id should not be stored on the client.
I'm not sure I agree
Pablo,
Ok, I have it the page called top.php right now, are you that I need to
place this in my index.html?
Payne
Pablo Gosse wrote:
Hi Payne.
The problem here is indeed the target attribute. You say that if you
remove the target attribute it works, but is lost due to frames.
What exactly
--- Chris W. Parker [EMAIL PROTECTED] wrote:
My original thinking was that I wouldn't be using the session id as I
would the unique identifier because of point #2 (you shouldn't store the
session id on the client). But since you point out that storing the
session id is a necessary evil (if I
[snip] It might be best to not try and definitely declare what counts as
foreign data, because it's a sort of everything else type of thing. If
it doesn't originate within the PHP script itself, it is foreign.[/snip]
What about data from a database which is retrieved within the PHP
script? Would
[snip]
Hmmm... ok so that's all I can think of. I think it'd be a really great
thing for the community if this list was corrected and added too in a
detailed way (such as I've tried to do here).
Looking forward to all the responses.
[/snip]
All these responses and nobody has said anything about
--- Pablo Gosse [EMAIL PROTECTED] wrote:
[snip] It might be best to not try and definitely declare what counts as
foreign data, because it's a sort of everything else type of thing. If
it doesn't originate within the PHP script itself, it is foreign.[/snip]
What about data from a database
Andre Volmensky mailto:[EMAIL PROTECTED]
on Wednesday, November 12, 2003 2:17 PM said:
All these responses and nobody has said anything about
register_globals?
heh, I guess you're right.
Feel free to elaborate on what you mean for those of us that don't know
what's up with
[snip]
All these responses and nobody has said anything about
register_globals?
heh, I guess you're right.
Feel free to elaborate on what you mean for those of us that don't know
what's up with register_globals.
[/snip]
Well it's all at http://www.php.net/register_globals for anyone that
On Thursday 13 November 2003 01:47, Payne wrote:
I know this is a php question so if you can give me a javascript mailing
that would be a BIG help.
Is it that hard to type javascript mailing list into your favourite search
engine?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open
Chris Shiflett wrote:
In some cases, the developer may want certain
HTML elements interpreted rather than escaped
in this way. Perhaps you could mention that
something like str_replace() can be used to
convert specific HTML entities back to their
original form. This method should
--- Lawrence Kennon [EMAIL PROTECTED] wrote:
For a BBS I would like to let users post links to various resources.
They 'post' a message to the BBS via a form and that is stored in a
MySQL db, then the content of their 'post' is available to other users
on the BBS. Currently I strip out all
Chris W. Parker wrote:
10. Use htmlentities() on data that will be put through a SQL query to
prevent XSS attacks. http://php.net/htmlentities
How is it going to interact with MySQL FULLTEXT
search SQL queries, where the characters and
are in use as modifiers?
--
Seks, seksi,
--- Adam i Agnieszka Gasiorowski FNORD [EMAIL PROTECTED] wrote:
Chris W. Parker wrote:
10. Use htmlentities() on data that will be put through a SQL query to
prevent XSS attacks. http://php.net/htmlentities
How is it going to interact with MySQL FULLTEXT
search SQL queries, where
Lawrence Kennon wrote:
For a BBS I would like to let users post links to
various resources. They 'post' a message to the BBS
via a form and that is stored in a MySQL db, then the
content of their 'post' is available to other users on
the BBS. Currently I strip out all PHP/HTML with the
Lawrence Kennon wrote:
For a BBS I would like to let users post links to
various resources. They 'post' a message to the BBS
via a form and that is stored in a MySQL db, then the
content of their 'post' is available to other users on
the BBS. Currently I strip out all PHP/HTML with the
Sorry guys, I have tried all the suggestions so far with no luck.
Regards,
Mark
try to include field name:
$query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web)
VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web');
mysql_query($query);
Mark wrote:
Sorry guys, I have tried all the suggestions so far with no luck.
Regards,
Mark
try to include field name:
$query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web)
VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web');
mysql_query($query);
On Tue, Nov 11, 2003 at 07:44:58PM -0800, Mark wrote:
I am following the tutorial at
http://www.freewebmasterhelp.com/tutorials/phpmysql/
The source code is on the website on the left hand side
http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip
My software:
PHP
--- Chris W. Parker [EMAIL PROTECTED] wrote:
What I'd like to do is gather enough info to be able to write a good,
short (heck in can be long, I don't care) write up on what it takes to
write a secure app and be able to post a link to said document any time
someone asks a question security
Nice work chris, you have left precious little for the others to comment
on :-)
10. Use htmlentities() on data that will be put through a SQL query to
prevent XSS attacks. http://php.net/htmlentities
This is a nice suggestion. While htmlentities() cannot be guaranteed to
defend against all
Navid Yar wrote:
Hello Guys,
I need a little bit of help with recursion. I've searched our PHP website
and Google, but none helped me understand my problem. There is a code below
this message in order to help you understand what I am trying to achieve.
Here is an explaination:
What I'm trying to
[snip]
What I'm trying to do is list a typical category/subcategory system with
parents and children associated with those parents. My database table
(categories) lists all the parents and children together, each with a
parent_id field
(with root being a value of 0). What I want to do is, if
Navid,
So you want something like this:
Category 1
Category 2
|
--- Category a
|
Category b
|
Category X
|
Category Y
|
Cpt John W. Holmes wrote:
From: [EMAIL PROTECTED]
OS RedHat 9 and RedHat 7.2
Apache 1.3.27 and Apache 2
I have problem with direct eval, in version PHP4.2.2 is all OK
in version PHP 4.3.3 - direct eval bad
here cut code
$s = '$ret = ibase_execute($this-query, $arg_list[0],
From: [EMAIL PROTECTED]
OS RedHat 9 and RedHat 7.2
Apache 1.3.27 and Apache 2
I have problem with direct eval, in version PHP4.2.2 is all OK
in version PHP 4.3.3 - direct eval bad
here cut code
$s = '$ret = ibase_execute($this-query, $arg_list[0], $arg_list[1],
$arg_list[2],
in php.ini (that will be in wondows folder or in wondows/systems folder)
search for cgi.force_redirect and the set it to 0
HTH
Haseeb
- Original Message -
From: Mårten Palm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 12:11 AM
Subject: [PHP] help!
I have
mail function cannot do stmp-auth, but there are classes that can, check
out www.phpclasses.org/mimemessage
Trell wrote:
Hello, first time on the list, and I'm trying to learn PHP.
Here is my setup, 2 servers, 1 is the MTA and 1 is the Web Server.
The MTA is a qmail server with smtp-auth that
Dave,
First thing you need to do is find the location of your php.ini file. I
typically create a document with the function phpinfo (); and load it up
in the browser. This will tell you the location of the php.ini file.
From there you need to use your favorite command line editor to open
the
Dave wrote:
Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am
really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
vi?
Please give me step by step instructions including how to save and make my changes.
I need to do the following
I
Dave wrote:
Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am
really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
Find your php.ini file
--
A few ways to do this. The easiest would be to look at the output of
Dave wrote:
I am setting up downloads.ca so as to be like downloads.com I need to be
able to upload files several gigs in size
Dave
Dave :
Don't top post.
FTP is what you need to upload files several gigs in size
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP
Your webserver needs write permission to the directory where you want to
copy.
Bunmi Akinmboni wrote:
This is the new code:
?php
if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) {
copy($_FILES['ufile1']['tmp_name'], .);
echo $ufile1_name ;
echo DONE;
echo ;
- Original Message -
From: Bunmi Akinmboni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 1:33 PM
Subject: [PHP] Help with file upload
This is the new code:
?php
if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) {
Hi,
On Thu, 2 Oct 2003 15:18:48 +1000
Stephen [EMAIL PROTECTED] wrote:
Does anyone know how to implement a treeview style display in PHP?
Hmm... what exactly do you mean by treeview? Anyway, *I think* this
is more of a Javascript/HTML question... So, find a site that uses
treeview then study
This should get you started...
http://www.sitepoint.com/article/1105/1
it is a great article assuming that you will be using a db to
store your data.
hth,
Craig
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: October 1, 2003 11:19 PM
To: [EMAIL PROTECTED]
Subject:
Does anyone know how to implement a treeview style display in PHP?
PEAR has a treeview that I have used in the past and it works fine.
http://pear.php.net/package/HTML_TreeMenu
--
BigDog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
error_reporting = E_ALL ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
But it doesn't work
How can i solve it?
[/snip]
I am going toask
! means not, for example $yes != $no
Regarding the (xxx) ? x : x;
Your assumption is correct
I use it alot, but sometimes it's still better to use if/else statements
On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote:
I've just picked up a more advanced book on PHP and it has a lot of
example
On Thu, 2003-09-25 at 12:47, Jeff McKeon wrote:
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I understand most of it but some things I'm seeing I
don't understand. Like the following...
code:
: Re: [PHP] Help understanding code...
! means not, for example $yes != $no
Regarding the (xxx) ? x : x;
Your assumption is correct
I use it alot, but sometimes it's still better to use if/else
statements
On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote:
I've just picked up a more
Your assumptions are correct. It's called a ternary operator and it is
a substitution or the if-else statements. I try not to overuse it since
I don't think it's as readable as the block if statement. But for
things not assigning a value to a variable, I think it's better than
the block
).
You could think of it as
If (NOT(TWO STRINGS ARE EQUAL)) THEN {
DO THIS STUFF
}
-Original Message-
From: Jeff McKeon [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:55 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Help understanding code...
Thanks
ARE EQUAL)) THEN {
DO THIS STUFF
}
-Original Message-
From: Jeff McKeon [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:55 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Help understanding code...
Thanks for the reply.
What about he use
Chris W. Parker
on Tuesday, September 23, 2003 1:38 PM said:
Someone have a clue?
Hmm... maybe www.php.net/array_keys will help me out here.
chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It doesn't get much simpler :)
foreach( $data as $key = $value )
{
if( $value == '' )
{
$data[$key] = 'nbsp;'
}
}
Cheers,
Rob.
On Tue, 2003-09-23 at 16:38, Chris W. Parker wrote:
Hey people.
I've got an array like this:
[0] = Array
(
[0] =
Robert Cummings mailto:[EMAIL PROTECTED]
on Tuesday, September 23, 2003 1:43 PM said:
It doesn't get much simpler :)
Doh!!
foreach( $data as $key = $value )
I don't use that syntax much so I'm not familiar with it. Maybe I should
start eh?
Thanks,
Chris.
--
PHP General Mailing List
Of course, you could do it in a much more cryptic way... just for fun.
:-)
INPUT:
?php
$a = array( '0' = 'j',
'fname' = 'j',
'1' = 'j',
'lname' = 'j',
'2' = 'jj',
'state' = '',
'3' = '[EMAIL PROTECTED]',
On Tue, 2003-09-23 at 17:06, Pete James wrote:
Of course, you could do it in a much more cryptic way... just for fun.
AKA Perl style ;)
--
..
| InterJinn Application Framework - http://www.interjinn.com |
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
:
: Robert Cummings mailto:[EMAIL PROTECTED] said:
:
: foreach( $data as $key = $value )
:
: I don't use that syntax much so I'm not familiar with it. Maybe I should
: start eh?
Another caveat: it works on a *copy* of the array.
On Tue, 2003-09-23 at 17:37, Eugene Lee wrote:
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
:
: Robert Cummings mailto:[EMAIL PROTECTED] said:
:
: foreach( $data as $key = $value )
:
: I don't use that syntax much so I'm not familiar with it. Maybe I should
: start
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote:
: On Tue, 2003-09-23 at 17:37, Eugene Lee wrote:
: On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
: :
: : Robert Cummings mailto:[EMAIL PROTECTED] said:
: :
: : foreach( $data as $key = $value )
: :
: : I
#meen shari-ah# mailto:[EMAIL PROTECTED]
on Thursday, September 18, 2003 1:05 AM said:
Please do not post messages with Help!!! as the title. Everyone who
posts to this list needs help in some way. It's much better if you give
a short description of your problem. For example, can't connect to
[snip]
Notice: Use of undefined constant {several times}
[/snip]
This means that several constants are undefined. You should have the
following for each of these constants...
define (constant-name, constant-value);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Sam,
Surely it couldn't have been hacked? IIS is the most secure web server
you have seen their advertisements :-)
Sam Folk-Williams wrote:
Hi,
I posted about the below issue yesterday, following is the follow-up from
tech support. Are they saying the server was hacked? Is there anything I
Sam Folk-Williams said the following on 9/12/2003 12:32 PM
Hi,
I posted about the below issue yesterday, following is the follow-up from
tech support. Are they saying the server was hacked? Is there anything I can
do on my end, or does this sound like their problem?
When I try to visit the
It's definitely possible they upgraded recently and screwed up somethng.
They are interland (www.interland.com) -- a pretty big host. The company I
work for has had tons of problems with them, though -- the site goes down a
lot. I'm wondering if this is really malicious or if they just screwed up.
On Tue, 9 Sep 2003 15:35:48 -0500
Frank Miller [EMAIL PROTECTED] wrote:
Hello all,
I'm working on an entry page where I would like to show some of the
current headlines from technology websites. I've been following and
pretty much understand the article on devshed
could you use this for your loop?
$sizeArr = sizeof($items);
for ($row=0; $row$sizeArr; $row++)
{
echo trtda href= . $items[$row]['link'] . .
$items[$row]['title'] .
/abr . $items[$row]['description'] . /td/tr;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Use move_uploaded_file() instead of copy(). The former bypasses safe
mode restrictions.
James Johnson wrote:
Hi,
I need some help with the copy() function in order to allow a user to upload
an image. The image will need to be in a folder that I can access it's URL
for display in a page.
The
Hi,
Maybe..
$sql = SELECT Title, SubT, Author, Story FROM SiteNews;
should be
$sql = SELECT Title, SubT, Author, Story FROM SiteNews;
-Original Message-
From: Stevie D Peele [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help
How to handle file upload is well explained right at the start of the
manual. Once the file has been transfered to your server you can make
use of the numerous methods described in the 'filesystem functions' of
the manual to handle it.
Yasir Malik wrote:
I am doing my development for our
what is the source for the page that you initially enter the data on the web
form look like?
Jim Lucas
- Original Message -
From: Stevie D Peele [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 23, 2003 6:25 AM
Subject: [PHP] Help with a script
I've been working on a
Heres the source of the page where I initially enter the data -
-
-
body
hr noshade color=black size=2
font face=Verdana, sans-serif size=1
h2BMyPHP Site News v1.0/b/h2
Did you put in a 'help wanted' at sourceforge? usually works.
Jason Sheets wrote:
Why not go to a cybercafe every few days or once a week and check on
the project? You can also go to Kinkos or your local library, most of
them have internet enabled pcs.
Jason
Michael A Smith wrote:
Hi,
Can you give us a couple lines either side of this? This could be due to a
missing semicolon on the previous line.
--
Peter James
Editor-in-Chief, php|architect Magazine
[EMAIL PROTECTED]
php|architect
The Magazine for PHP Professionals
http://www.phparch.com
- Original Message -
Yup, that was it. Missing a semi-colon on line 8.
Thanks,
James
-Original Message-
From: Peter James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:17 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with parse error
Can you give us a couple lines either side
Why not go to a cybercafe every few days or once a week and check on the
project? You can also go to Kinkos or your local library, most of them
have internet enabled pcs.
Jason
Michael A Smith wrote:
Hi,
I'm going off to school and won't have computer access for like 9
months... :-\ .. and
1001 - 1100 of 1991 matches
Mail list logo