>How can I output before send header
>I see some site some output and after that it Jump to >other site
>Is that maked by header localtion ??
no, if there\'s output first, then it\'s not using header(\"Location: whatever.php\"),
because headers MUST be sent before any other output to the brows
How can I output before send header
I see some site some output and after that it Jump to other site !!
Is that maked by header localtion ??
php-general Digest 13 Jan 2002 07:34:05 - Issue 1108
Topics (messages 80300 through 80334):
mysql_fetch_row win32 to Linux
80300 by: sundogcurt
80312 by: mike cullerton
Is DOMXML reliable??
80301 by: Emile Bosch
help with include
80302 by: Brian's News
Hi Dean,
> Does anyone know how to give a select pulldown box a default value
> from a PHP variable?
"January","02"=>"February",...);
// $option_list=generate_option_list($key_value,"02");
// //$option_list now contain text January
// // February
//
// NOTE: Th
First of all, thanks to everyone who replied! I have several good
suggestions. Here is one that seems to work pretty well, to cover a
multitude of situations:
$msg =
eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3", $msg);
The only problem is that if a correct
I have installed phpBB several times. Your problem should
not be the password protected directory.
The install.php script tries to wright into the config
file.
so, you have to chmod your file and give r/w access to
everybody.
once insallation is completed, then change it the was it
was originally.
I'm not exactly sure what you are asking.. Are you wondering if it is safer
to have register_globals on or off? If it is off, you will have to access
all the globals through the $HTTP_*_VARS variables. They are quite a bit
safer but require a bit of getting used too (just look at my posts in th
- Original Message -
From: hugh danaher <[EMAIL PROTECTED]>
To: Dean Householder <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 7:12 PM
Subject: Re: [PHP] Piping data into a select box
> Dean, give this a try.
>
>
> ";
> for ($i=0;$i<=$num;$i++)
> {
>
Is there a way to ensure that the data in a form is not cleared when you
click the back button?
I have numerous forms that all have some PHP error checking. The standard
error page has a simple JavaScript back command. Every time I click it (or
the browser's back button), it clears the form on
Hopefully a quick question:
I'm using the PHP date() function on my site, but since my hosting company
(Pair Networks) is on the East Coast and I'm on the West Coast, everything
shows as three hours later (for most of my visitors, anyway). Pair tells me
there's no setting I can make on my account
Does anyone know how to give a select pulldown box a default value from a PHP variable?
I've been able to figure out how to pipe data into every type in type of form
element except for a element. Any solutions would be helpful!
Dean
At 06:00 PM 1/12/2002, Morten Nielsen wrote:
>Hi,
>
>Can anybody recommend a good development environment? It should support PHP,
>HTML and JavaScripts.
http://www.zend.com/store/beta.php - it doesn't have any special JavaScript
support, but it's by far the strongest one for PHP itself.
Zeev
Thanks very much!
it works!
Sincerely,
Dani
Thomas Holton wrote:
> You should be able to use "and" as many times as you want.
> You should also make sure that the query you are making below is returning
> the number of records you think it should be:
> $numrecords = mysql_num_rows($result);
>
I think this is actually the problem
The first time you do $row = mysql_fetch_array($result); it reads the first
row. Then you don't do anything with that data, but move on to the next one
right away in the while:
while ($row = mysql_fetch_array($result))
and only then you print out the data. So
move the following inside your while loop
echo "$row[item_id]","";
- Original Message -
From: "Dani" <[EMAIL PROTECTED]>
To: "PHP LIST" <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 8:54 PM
Subject: [PHP] Print ONCE ONLY?
>
> Hi Again!
>
> Why does this print only one
Dani wrote:
> Hi Again!
>
> Why does this print only one record?
>
> 1. I have checked on the table on MYSQL and I have 2 records with this
> data.
> 2. Can I actually use the word "and" twice or three times for filtering
> the data that I need during query?? (example: $query = "select * from
Hi Again!
Why does this print only one record?
1. I have checked on the table on MYSQL and I have 2 records with this
data.
2. Can I actually use the word "and" twice or three times for filtering
the data that I need during query?? (example: $query = "select * from
main_table where item_type =
The \n can be useful for when you want to look at the source code from an
HTML page. It will not make a new line within the browser, but it sure
can make reading the source alot easier... otherwise all of the code goes
onto the same line... which also can be useful if you want it be difficult
for
- Original Message -
From: Dennis Moore <[EMAIL PROTECTED]>
To: Paul Roberts <[EMAIL PROTECTED]>; Lauri Vain
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: 12. siječanj 2002 23:33
Subject: Re: [PHP] multiple replaces...
> try str_replace() ... it allows you to pass an array into the rep
Thanks Alot Guys!!!
It works!
now my next question is :
When do I actually use "\n"???
Thank you so much!
Gianluca Baldo wrote:
> Dani -
>
> D> echo "Result :\n"; ->>> THIS DOESN'T GIVE ME A
> D> NEW LINE- WHY ?
> If you look at the source code of your page y
I assume you your displaying a web page. HTML ignores \n ... You need to
insert a .
- Original Message -
From: "Dani" <[EMAIL PROTECTED]>
To: "PHP LIST" <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 8:25 PM
Subject: [PHP] Please "\n" problem
> Hi!
>
> thanks for reviewing t
Dani -
D> echo "Result :\n"; ->>> THIS DOESN'T GIVE ME A
D> NEW LINE- WHY ?
If you look at the source code of your page you'll see a new line
there.
If you want a new line in the browser output, you must place a at
that point, not a \n since it's HTML.
Hope this he
Hi!
thanks for reviewing this email.
I have wrote this script and I have checked it but for some reasons (I
don't know what) it doesn't work.
Could any body please check and give some feedback please?
>> THIS DOESN'T GIVE ME A
NEW LINE- WHY ?
//CONNECT TO SERVER
include("connect.inc");
try str_replace() ... it allows you to pass an array into the replace
function.
/dkm
- Original Message -
From: "Paul Roberts" <[EMAIL PROTECTED]>
To: "Lauri Vain" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 4:35 PM
Subject: Re: [PHP] multiple replaces...
on 1/12/02 11:45 AM, sundogcurt at [EMAIL PROTECTED] wrote:
> myquery = SELECT * FROM xpackage
> Warning: Supplied argument is not a valid MySQL result resource in /path
> to page with error/default.php on line 5
>
> Line 5 is this part
> while($myrowz = mysql_fetch_row($myresult)){
this tells
have a look at eval()
Paul Roberts
[EMAIL PROTECTED]
From: "Lauri Vain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 11:44 AM
Subject: [PHP] multiple replaces...
Hello there,
I have about 30 markers in the text which need to be replaced
Here are some scripts to help you :
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1235
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1234
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1401
http://www.weberdev.com/index.php3?GoTo=get_example.ph
Hey all. I was making a menu, and I was using too many links, so I
figure use a form with drop down lists.
Im trying to use the form using the get method.
echo '';
It doesn't seem to behave correctly. Can one use test.php?ft=first in
the action of a get form??
It works great if I make a hidden
Hi there, I have a small php/data driven website and would like to
incorporate record paing. Unfortunately I'm working with sql Server
temporarily, but I'm still required to do this. So since I wasn't allowed to
use the handy LIMIT in my sql statement I figured I'd dump my results into a
mulitdien
JavaScript runs on the client, PHP runs at the server. PHP cannot access
client side events directly.
JavaScript cannot access the database (actually it can through Internet
Explorer, but that's different story...)
You'll use a combo of both languages.
Matt Friedman
Web Applications Developer
How do you plan to place stuff in a database without using a "Server based
page"?
I think you will need to use a combination of the 2. Make the JScript call
PHP pages to do the handling of your events.
Andrew
- Original Message -
From: "Morten Nielsen" <[EMAIL PROTECTED]>
To: <[EMAIL PRO
Hi,
I am about to make an homepage. It is going to be very event based. When the
user presses different buttons different functions should be called.
At the same time I am going to use a database to store some data.
My question is: Should I use PHP or JavaScripts?
I would like to have a server ba
I think you can use a URL when you specify your value in the include
statement, can you not?
[EMAIL PROTECTED] wrote:
>Hi, I need some help with the include function.
>I have a phpBB script and want to put the config.inc.php file in a password
>protected directory, Easy peasy you might say, and
I know two good IDEs for PHP:
PhpEdit -> http://www.phpedit.com
PhpCode -> http://www.phpide.de
Have fun!!
Rafael Perazzo
--- Morten Nielsen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can anybody recommend a good development
> environment? It should support PHP,
> HTML and JavaScripts.
> Another
Hi, I need some help with the include function.
I have a phpBB script and want to put the config.inc.php file in a password
protected directory, Easy peasy you might say, and I know it is, but the
problem comes because the password protected directory isn't on the site the
script is on, mainly bec
Hi list,
It seems like domxml is kinda unreliable to build an CMS with because
in lotta versions the syntax is different :(
Is DOMXML reliable??
Or should i use an alternative, does anyone know an
alternative??
Warm regards,
Emile Bosch
--
PHP General Mailing List (http://www.php.net/)
To
Hi everybody, I have some scripts running on win32 Apache mySQL and they
all run great. I have copied the entire application to my Linux box
which I think I have running pretty smoothly now. The database is there
and I can access it just fine etc etc.
Here is the hitch (there's always a hitch)
php-general Digest 12 Jan 2002 18:34:40 - Issue 1107
Topics (messages 80266 through 80299):
two mysql issues :)
80266 by: Mehmet Kamil ERISEN
Re: preg_replace help
80267 by: Jimmy
Re: Newbie looking for mentor
80268 by: P. Westover
Re: PHP question regarding Cold
Go to http://www.interakt.ro/products/PHAkt/index.php for a kick butt PHP
development platform extension for DW Ulreadev!
Deron
Creation Nation
"Vania Lavielle Castro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need a file php.ini and some advices abou
DUH Why didn't I see that..
Thanks..
Chris
Miles Thompson wrote:
> Well, did you try looping though tables with mysql_fetch_array($tables)?
>
> But, how 'bout mysql_list_tables()?
>
> Cheers - Miles Thompson
>
> PS There's a bunch of other interesting stuff relating to database
> manipulati
I need a file php.ini and some advices about configuration of a web server
as internet information server to use php. Also i need to know how use the
sqlserver 2000 on my php's pages.
i use Dreamweaver UltraDev 4 too and i think that i must configurate it.
thanks vania.
--
PHP General Mailing
Well, did you try looping though tables with mysql_fetch_array($tables)?
But, how 'bout mysql_list_tables()?
Cheers - Miles Thompson
PS There's a bunch of other interesting stuff relating to database
manipulation there too. /mt
At 11:48 AM 1/12/2002 -0800, Chris wrote:
>I'm trying to display
i have a sql server and i connected with my database but the query no
execute on server.
my code is it
$conexion = @mssql_connect("servername","username","userpass"); // this work
if($conexion){
$db = mssql_select_db("Estudiante",$conexion);
$qr = mssql_query("select * from tasignatura",$
Im trying to display the tables in my database using $tables =
mysql(mydb, SHOW TABLES FROM mydbname) but this statement doesnt
seem to behave like selecting records from a table. Does this query
return an array of table names? If I use something like $records =
mysql(mydb, SELECT * FROM
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 17:00
* Morten Nielsen said
> Hi,
>
> Can anybody recommend a good development environment? It should support PHP,
> HTML and JavaScripts.
What do you mean by 'development enviornment'?
> Another question...Is it normal proc
Hi,
Can anybody recommend a good development environment? It should support PHP,
HTML and JavaScripts.
Another question...Is it normal procedure to mix the above 3 languages on a
single page or is it possible to only use 1...i.e PHP?
Regards,
Morten
--
PHP General Mailing List (http://www.ph
If you only want to replace strings, then drop the regular expression functions! (a
common mistake)
Use for example str_replace, or in this case, strtr which is better because it accepts
an array as replacement pattern.
For example:
$foo = array("foo" => "apple", "bar" => "banana");
$stri
I believe another option is the CURL library module for PHP.
see manual:
XII. CURL, Client URL Library Functions
bvr.
On Sat, 12 Jan 2002 09:01:39 -0500, Wandrer wrote:
>At 09:43 PM 1/11/02 -0500, you wrote:
>>The tag I am talking about is . This tag allows you to emulate the
>>posting of a
At 09:43 PM 1/11/02 -0500, you wrote:
>The tag I am talking about is . This tag allows you to emulate the
>posting of a form, but also allows you to capture the results of the post.
>There are a couple of forms written in CF that connect to the merchant
>account, check a credit card, for example,
And so does preg_replace() if you need any regular expressions.
Though str_replace() is probably faster when this is not the case.
http://www.php.net/manual/en/function.str-replace.php
http://www.php.net/manual/en/function.preg-replace.php
bvr.
--
PHP General Mailing List (http://www.ph
No need to loop. str_replace() already supports arrays!
check the manual.
bvr.
On Sat, 12 Jan 2002 12:57:10 -, DL Neil wrote:
>Yes, I thought about that. But, what should I do when the markers are absolutely NOT
>in any sequence.
>
>=sequence would matter if it was possible that one of
Yes, I thought about that. But, what should I do when the markers are absolutely NOT
in any sequence.
=sequence would matter if it was possible that one of the markers could replace some
text and that replacement
subsequently became the marker for a further replacement ... nightmare=recursion!
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 13:02
* Lauri Vain said
> Hi Nick,
>
> Yes, I thought about that. But, what should I do when the markers are absolutely NOT
>in any sequence.
>
> I also thought about something like
> $replace[1][1] = "!one!";
Whoops, forgot to change the first number in every one of those. The first numbers in
the brackets should increase after every two lines...
The correct one:
$replace[1][1] = "!one!"; //marker
$replace[1][2] = "hehee"; //replace with
$replace[2][1] = "test";
Hi Nick,
Yes, I thought about that. But, what should I do when the markers are absolutely NOT
in any sequence.
I also thought about something like
$replace[1][1] = "!one!"; //marker
$replace[1][2] = "hehee"; //replace with
$replace[1][1] = "test";//
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 12:49
* Lauri Vain said
> Hello there,
>
> I have about 30 markers in the text which need to be replaced with the value of a
>variable or an array.
>
> Common sense comes up with
>eregi_replace("!one!","blah",eregi_replac
Hello there,
I have about 30 markers in the text which need to be replaced with the value of a
variable or an array.
Common sense comes up with
eregi_replace("!one!","blah",eregi_replace("!heh!",'foobar',eregi_replace("blah","ho-ho-ho",text)));
The list above could go on and on... I'm sur
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 11:10
* millw0rm said
> i hav just upgraded from php3 to php4
>
> i m getting this error through out my website what can be the problem... can
> anyone help me out
>
> Fatal error: Cannot instantiate non-existent class
Let's
Hey,
Did the trick. Thanks!
Regards,
Kunal Jhunjhunwala
- Original Message -
From: "Nick Wilson" <[EMAIL PROTECTED]>
To: "php-list" <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 3:30 PM
Subject: Re: [PHP] name and value tags in a form
> -BEGIN PGP SIGNED MESSAGE-
> Hash: S
i hav just upgraded from php3 to php4
i m getting this error through out my website what can be the problem... can
anyone help me out
Fatal error: Cannot instantiate non-existent class
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
i hav just upgraded from php3 to php4
i m getting this error through out my website what can be the problem... can
anyone help me out
Fatal error: Cannot instantiate non-existent class
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 10:54
* Kunal Jhunjhunwala said
> Hi,
> Here is an example form field:
>
> Forgot Password Subject: VALUE="kunal">
>
> Now, I want my php script or get the field name, that is fname, and whatever
> the user entered, in this
Hi,
Here is an example form field:
Forgot Password Subject:
Now, I want my php script or get the field name, that is fname, and whatever
the user entered, in this case kunal. I can easiuly get kunal by echoing
$fname. But, how do i get what $fname is called :) I dunno how to explain. I
want the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 12-01-02 at 10:18
* Kunal Jhunjhunwala said
> Hey,
> Is there any way one can get the name tags for a form?? other then
> explicitly defining the tags in an array or any such thing. I just want to
> be able to get the name tags and there v
Includes are not relative to your DocumentRoot. They are system paths. A
ScriptAlias would have absolutely no effect.
-Rasmus
On Sat, 12 Jan 2002, Richard Baskett wrote:
> Ok I have looked everywhere to try to figure out why I get the stupid
> warning:
>
> Warning: Failed opening '/phpinc/que
Ok I have looked everywhere to try to figure out why I get the stupid
warning:
Warning: Failed opening '/phpinc/query.inc' for inclusion
(include_path='.:/usr/local/lib/php') in /Users/murlyn/Sites/bakos/
index.htm on line 2
Ok I know that it's because it can't find the script, but my problem li
Hey all. I was wondering. Is it safe to use HTTP global variables ie
$HTTP_POST_VARS etc in my scripts?
Thought I read somewhere that they weren't safe.
Got a lot of forms to work with, it sure would make life easier...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
67 matches
Mail list logo