magic_quotes_gpc is simple, it essentially runs
addslashes on all GET, POST and COOKIE data.
That's it.
http://www.php.net/ref.info#ini.magic-quotes-gpc
http://www.php.net/addslashes
http://www.php.net/variables.external
Not sure about your problem, maybe someone else can
help.
Regards,
Reread the docs here (the table):
http://www.php.net/ini_set
You cannot set this directive at runtime. Using .htaccess
is as close as you'll get to that. I see no reason why
using auto_prepend_file here would be better than include()
as this is exactly what include() is for.
Regards,
Philip
Read the docs:
http://www.php.net/install.apache2.php
Apache 2 is EXPERIMENTAL in PHP right now, it may
or may not work. But, the following combination
is known to work:
PHP 4.2.3 along with Apache 2.0.39
But Apache 1.3.x is recommended and considered stable and
will work with any PHP ver
If you want to do relative includes, you must have a . in
your include_path. Maybe this is what you are meaning to
do. Please reread this:
http://www.php.net/configuration.directives.php#ini.include-path
And if you still have problems after adjusting it and restarting
the web server, tell us
Please reread the documentation found here:
http://www.php.net/header
It has a pdf file as an example, modify according
to your needs.
Regards,
Philip
On Wed, 4 Dec 2002, Elkan wrote:
> Couldn't you set the Mime-Type on the server for the correct extenstion?
>
> Leif K-Brooks wrote:
>
>
On Tue, 10 Dec 2002, Stefan Hoelzner wrote:
> Hi folks,
>
> surely this question has already been answered many times before in
> this ng, but nevertheless: I want to pass variables from one .php to
> another .php script. But I do not want to use either the
> http://localhost/target.php?var1=test
To use the bundled gd just do: --enable-gd
Note that 4.3.0 is the first distro that includes a
bundled GD. Also note that as of 4.3.0 just doing
--with-gd will also use the bundled GD. Before this,
--with-gd (no directory specified) would look for a
local copy. That seems odd yes but theor
anual note you referred to has to do with code
such as (http == remote file):
include 'http://www.example.com/foo.php';
Which would include the output of that url into the
webpage. This is unrelated and remember that parse errors
are always due to syntax problems.
Regards,
Philip Ol
e filename.
Regards,
Philip Olson
On Wed, 11 Dec 2002, Jay (PHP List) wrote:
> Okay, I need to retrieve the output of a php file with variables being
> passed to it. Example:
>
> $calendar_file = "make_calendar.php3?month=$month&year=$year";
> $fp = $fp =
Remove the {braces}, those are only used when
inside "a {$strin['g']}". Also, be sure to
'quote' your array indices.
unset($arr['foo'][$bar]);
Regards,
Philip Olson
On Wed, 11 Dec 2002, Richard Baskett wrote:
> Ok I feel a little sheepish aft
No, GD is only bundled as of PHP 4.3.0.
Regards,
Philip
On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote:
> Hello Phillip, hello Sean,
>
> thank you very much, for answering the question of --with-gd - compiling.
>
> I am not using 4.3 . I did it with php-4.2.3
>
> Did I got it right - to use
lse, we print some useful info out to
debug it. In production, you most likely won't want
to print it out but anyway...
For a more complete example, see:
http://www.php.net/mysql_fetch_assoc
Btw, being that there is a function named mysql_result
I wouldn't create a variable by
is applies to all variables, even web server variables
such as PHP_SELF so you'd use: $_SERVER['PHP_SELF'], etc.
Regards,
Philip Olson
P.s. So you want your query to look more like this:
$sql = INSERT INTO $db_imgCat (catName, subCat)
VALUES ('{$_GET['nafn
Regarding the original
question of this thread, see print_r() as I
blame a typo or something... or maybe it's a
variable scope issue. Your example looks fine.
Regards,
Philip Olson
P.s: Essentially
numerical == numbered keys
associative == worded keys
On Mon, 16 Dec 2002,
sql)) {
echo "Could not run query ($sql) " . mysql_error();
exit;
}
$count = mysql_num_rows($result);
while ($row = mysql_fetch_assoc($result)) {
$rows[] = $row;
}
print "";
print "Returned: " . count($rows) . " and num_rows: $count\n";
pri
Have another look here:
http://www.php.net/list
Note that the list construct only works
on numerical arrays and assumes 0-n. You
may want to use import_request_variables()
or extract() though.
Regards,
Philip Olson
On Wed, 18 Dec 2002, Ns_Andy wrote:
> a.php
>
> list($a
You may want to provide more information like why
is this string being split at these seemingly
random points? Maybe there is a common separator
or could be? But anyway it sounds like you want
substr().
http://www.php.net/substr
Regards,
Philip Olson
On Wed, 18 Dec 2002, Alex Ciurea
d. And checking the number or rows
returned before fetching is a form of error handling
as well as if it equals 0 than there is no data to
fetch. But if one ONLY wants a number of rows count,
doing SELECT count(*)... works great as suggested
below.
Regards,
Philip Olson
On Wed, 18 Dec 2002, lilj
from [table(s)] where [criteria] [whateverelse] limit
> " . (($page*$num)-$num) . ",$num;
>
> James
>
> "Philip Olson" <[EMAIL PROTECTED]> wrote in message
> Pine.BSF.4.10.10212181637090.4483-10@localhost">news:Pine.BSF.4.10.10212181637090.4483-
You want explode(), something like:
list($a, $b) = explode('|', $string);
Regards,
Philip Olson
On Wed, 18 Dec 2002, Jeff Bluemel wrote:
> I have a string that will look like the following;
>
> data1|data2
>
> now - I need to put data1 in a variable, and
How about:
if (!$conn = mysql_connect($host, $user, $pass)) {
include 'static_html.inc';
exit;
}
print "Welcome, yes the database is connected";
exit ends the script, nothing after its use is executed.
Regards,
Philip Olson
On Thu, 19 Dec 2002, Beaufo
For the record, variables are case sensitive so it's
$_SESSION not $_session.
And if you're going to use $_SESSION (which you should),
do not use session_register().
Regards,
Philip
On Thu, 19 Dec 2002, Mike Hillyer wrote:
> I have recieved a private response, it appears my system had
> regis
on't care if 'email' comes from GET, POST,
or COOKIE ... you could use $_REQUEST['email']. Or,
import_request_variables() is another option. For
example:
import_request_variables('p', 'p_');
print $p_email;
See the manual for details, and have fu
This faqt answers your question:
http://www.faqts.com/knowledge_base/view.phtml/aid/8583
Regards,
Philip Olson
On Fri, 20 Dec 2002, conbud wrote:
> Hi.
> Lets says I have 8 links stored in a database, extracting those links is
> no problem. Now lets says I have 2 columns, how
ting it this way:
> >
> > function check_banlist($banlist, $_POST['email']) {
> >
> > Maybe you could also point me to the lesson that needs to be learned
> > here. Is it that it is an array? or syntax?
> >
> > Thanks for the assistance!
> >
No, but you can do this:
$arr2 = array_values($array);
print $arr2[0]; // VALUE1
Regards,
Philip Olson
On Fri, 20 Dec 2002, Alexander Guevara wrote:
> How can i do for printing the value of an array given the numeric key for
> example i have this code:
>
> $array = array (
He is referring to a question that is answered here:
http://www.php.net/manual/en/faq.html.php#faq.html.encoding
Spoiler: htmlspecialchars() -> http://www.php.net/htmlspecialchars
Regards,
Philip Olson
On Sat, 21 Dec 2002, Justin French wrote:
> on 21/12/02 2:00 PM, Alexander G
Use is_numeric()
http://www.php.net/is_numeric
See also the ctype functions which can
be read about here:
http://www.php.net/ctype
And yes, regular expressions are another
option but aren't needed here.
Regards,
Philip Olson
On Sat, 21 Dec 2002, Beauford.2002 wrote:
> Hi,
&g
ynamically, that would be ideal.
Regards,
Philip Olson
On Sun, 22 Dec 2002, Tony Earnshaw wrote:
> >I have a site hosted at JTL Networks, and I'm looking into setting up
> > a spell checker for my message boards. The problem is, JTL doesn't have
> > pspell compil
or similar instead for
reasons described here:
http://www.php.net/variables.external
Regards,
Philip Olson
On Sat, 21 Dec 2002, Beauford.2002 wrote:
> Thanks for the info, but . is_numeric does not appear to accept
> variables i.e. is_numeric($num) and ctype gives me the foll
This tutorial lists many oop tutorials:
Know of any basic tutorials on PHP Classes and OOP?
---
http://www.faqts.com/knowledge_base/view.phtml/aid/7569
Regards,
Philip Olson
On Mon, 23 Dec 2002, Wee Keat wrote:
>
> >
Another good one:
fudforum:
http://fud.prohost.org/
Regards,
Philip
On Tue, 24 Dec 2002, [windows-1254] Fatih Üstündað wrote:
> do you know freeware forum in php I can easly use?
>
> thanks.
> fatih ustundag
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, vis
I've heard that RH8 decided to disable short tags
in their default php.ini If this is true, the people
at RedHat deserve a good spanking. Talk about being
irresponsible!
Regards,
Philip
On Tue, 24 Dec 2002, Tom Woody wrote:
> I have found this to be very true with RedHat 8 (includes Apache2.
On Sun, 5 Jan 2003, thkiat wrote:
> Do you kow how can I upgrade the PHP 4.1.1 in PHPTriad to PHP 4.3.0?
> I need PHP 4.3.0. as it includes a version of gd (GD Library) as "standard
> equipment."
GD is not "standard equipment", a "special" version
is just bundled in PHP source now. It sounds li
> Which part of $_ is the REQUEST_URI be found from?
It's a web server predefined variable so only lives
in $_SERVER.
http://www.php.net/variables.predefined
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Everyone from this thread needs to reread this:
http://www.php.net/variables.external
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> How do I access $DOCUMENT_ROOT when register_gobals is set off? I think
> there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't
> find it in the documentation.
http://www.php.net/variables.predefined
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To
> >
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Read:
http://www.php.net/variables.scope
Also note that $_SERVER is an autoglobal.
Regards,
Philip
On Sun, 26 Jan 2003, @ Nilaab wrote:
> Hello Everyone,
>
> I am a little confused. Why do predefined variables like $PHP_SELF or
> $DOCUMENT_ROOT not process within a class, in the methods se
Whenever you get a segfault, try the latest
stable release and during compile be sure to
use --enable-debug
:
http://snaps.php.net/
If the segfault exists here, write a bug report
and include the backtrace:
http://bugs.php.net/how-to-report.php
http://bugs.php.net/
This will be of great h
On Sun, 26 Jan 2003, Beogradjanin wrote:
> Zdravo php-general,
>
> Hi I have setup PHP Apache MySql.
> I;m new in this stuff where can I learn hot to make web pages in
> PHP...???
Go here:
Learn HTML
http://www.w3schools.com/html/
Learn SQL
http://www.w3schools.com/sql/
http://
On Mon, 27 Jan 2003, Wei Weng wrote:
> Is there any environment/Global variable in PHP that indicates whether the
> server port you connect to is SSL port?
$_SERVER['HTTPS']
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 27 Jan 2003, George E. Papadakis wrote:
> Hello,
>
> Has anyone noticed strange behaviour in strap_tags @ php 4.3?
> We did upgrade to the latest snap yet the problem remains. For some reason
> strip_tags acts weird..
Please be specific with a short self-contained example
that demonstrat
On Mon, 27 Jan 2003, Guru Geek wrote:
> Hello,
>
> I'm a recent convert from CGI/Perl and so am still getting my feet wet
> in PHP.
>
> Here's my code:
> $filename = "http://www.myserver.com/include/sometext.txt";;
> $handle = fopen ($filename, "rb");
> $contents = fread ($handle, filesize ($fi
On Mon, 27 Jan 2003, Guru Geek wrote:
> Sorry, here is the code now ( I need a nap )
>
> $filename
> ="/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/include/text.txt";
> $handle = fopen ($filename, "r");
> $contents = fread ($handle, filesize ($filename));
> fclose ($handle);
> echo $conte
Regarding keeping . as . and not _ in variables:
This isn't going to happen as it seriously breaks
BC. This also would affect functions such as
import_request_variables() and extract(). There
is no worthy benefit here, this will never happen.
Regards,
Philip
--
PHP General Mailing L
One too many $'s in your code, use:
$_REQUEST['my_passed_variable']
This is how all arrays work, autoglobals are the same.
See also:
http://www.php.net/variables.external
http://www.php.net/variables.predefined
Regards,
Philip
On Wed, 29 Jan 2003, CF High wrote:
> Hey all.
>
> T
> You never answered if this was in a function or class
> method. Is it? Did you say whether it was Apache 1 or 2?
Also, to check what the register_globals setting really
is, make a call to phpinfo() as it will tell you the
true setting. Sometimes the wrong php.ini is edited
or the web server
[snip]
> I assume i could use solution "A" above, and parse the _x out of the "name"
> value .. but this seems pretty hoaky and it's my understanding soultion B is
[snip]
This is how it's done. If this is set, the button
was clicked. For example:
if (isset($_REQUEST['thebuttonname_x'])) {
On Thu, 30 Jan 2003, Chris Hayes wrote:
> At 12:18 30-1-2003, you wrote:
> >sure this would work but it'd be VERY inefficient in my application. It's a
> >file browser application so i have hundreds of folder icons on a page .. the
> >'submit' element will pass back the name of the button clicked
On Thu, 30 Jan 2003, Cesar Rodriguez wrote:
> Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera
> Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that
> after testing different scripts, php is working, except when I make an MySQL
> call like mysql_co
On Fri, 31 Jan 2003, Tracy Finifter Rotton wrote:
> Change the name of your checkboxes in your HTML to something like:
>
> name="DeleteIDs[]"
>
> This will make it an array, and you can access all the elements like
>
> $_POST['DeleteIDs'][0]
>
> etc.
>
> (This should really be in a FAQ somew
On Fri, 31 Jan 2003, Weston Houghton wrote:
>
> All,
>
> I seem to be getting a silly error on Solaris when trying to do a PHP
> 4.3 make. I get an error that looks to me like the liner arguments are
> just too long. to be honest, I'm a bit stupified as to why this is
> happening or how to
On Sat, 1 Feb 2003, Beauford.2002 wrote:
> Hi,
>
> Is there a way to pass a variable to a PHP script without using a form? I
> want to put several links on my main page that when clicked on goes to a PHP
> script - depending on what link was selected, will determine what part of
> the PHP script
> I am studying on php. And the book say, when the server see php extension it
> is running php file and giving results to the visiting browser.
>
> But as I see related directories are normal directory, doesn' t like cgi-bin
> directories.
>
> Is there any change to see php file source such as f
On Sat, 1 Feb 2003, CF High wrote:
> Hey all.
>
> In cold fusion I was able to define a default value with the "test" default = "myValue"> tag
>
> When I passed the variable "test" via a form or query string, it would over
> ride the parameter value.
>
> How can I do this in PHP? I looked in
On Sat, 1 Feb 2003, Sunfire wrote:
> if i do this:
> /*all the mysql login stuff here*/
>
> $query=mysql_query("select * from members");
> while($new=mysql_fetch_array($query)){
> echo "$new['company']";
> /*so on through the field list*/
> }
> on output all i get is the title with a submit butt
t;select * from members where company like 'test'");
> while($row=mysql_fetch_array($result)){
> print("\n\n");
// Try this instead, see also: htmlspecialchars()*
print "";
Regards,
Philip
* http://www.php.net/manual/en/faq.html.php#faq.html.encoding
> }
&
On Sun, 2 Feb 2003, Pat Johnston wrote:
> I've read that an include file in each of your pages with the lines below
> should do the trick for you with register_globals OFF..
>
> Not sure if this is a valid way to go though...
>
> extract($_SERVER);
> extract($_ENV);
> extract($_
On Sat, 1 Feb 2003, Karl James wrote:
> Hello guys and gals!!!
>
> can you tell me why i can't get this script to print my
> table
>
> thanks Karl
>
> please check out the code below
> obviously i left my username and passwords blank :-)
>
>
> -
On Sun, 2 Feb 2003, Michael Sims wrote:
> On Sat, 1 Feb 2003 19:59:00 -0800, you wrote:
>
> >PHP keeps track of what line# is being executed, so that when there's an
> >error (say in pg_exec() ) it reports what line the error occured on.
> [...]
> >Is there a function where I can access this in
On Sat, 1 Feb 2003, Hugh Danaher wrote:
> echo("| %s | %s | %s | %s | %s |", $array[id], $array[username],
> $array[password], $array[status], $array[notes]);
>
> try
> echo "| %s | %s | %s | %s | %s |".$array[id]." ".$array[username]."
> ".$array[password]." ".$array[status]." ".$array[notes];
>
On Sun, 2 Feb 2003, Lon Lentz wrote:
>
> Is there a PHP version of the ColdFusion tag ?
Go here:
http://marc.theaimsgroup.com/?l=php-general&s=cfparam
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2 Feb 2003, Davy Obdam wrote:
> Hi ppl,
>
> I have a problem that probably very simple, but i cannot figure it out
> right now
> I need to get the field names of my database. I have a query like select
> * from books and now i wanna have both the result and the field name. I
> have
On Sun, 2 Feb 2003, Sunfire wrote:
> i have a listbox:
>
> //connect to db and get query
> mysql_connect(".");
> mysql_select_db("...");
> $query=mysql_query("select username from users);
> /*finish the listbox*/
> while($account=mysql_fetch_array($query)){
> echo "$account[username]";
> }
>
On Sun, 2 Feb 2003, Øystein Håland wrote:
>
> "Jason Sheets" <[EMAIL PROTECTED]> skrev i meddelandet
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Take a look at the getlastmod() function, an example of the usage would
> be:
>
> $last_mod = date ("F d Y H:i:s.", getlastmod());
>
> Then you c
Read this:
http://www.php.net/features.http-auth
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; in the form. See:
http://www.php.net/variables.external
Debugging101 would have you do: print $sql;
And lastly, posting a TON of code won't get you very
far. I just ignored it and based my response on the
one above.
Regards,
Philip Olson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 3 Feb 2003, Sunfire wrote:
> do this:
> run your php query to get the value of the text box and then do this:
> //connect to db here
> $query=//put your query here
> while($foo=mysql_fetch_array($query)){
> //if you use mysql that is...
> echo "";
> }
> ?>
No offense Sunfire but I don't
On Mon, 3 Feb 2003, Chris Shiflett wrote:
> --- Philip Olson <[EMAIL PROTECTED]> wrote:
> > No offense Sunfire but I don't think you're ready to
> > be answering questions.
>
> Please try to be a little more kind. While his answer does
> have proble
On 4 Feb 2003, Adam Voigt wrote:
> I believe he meant the HTML source of an HTML page.
An example in the manual does exactly this:
http://www.php.net/file
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
> How should I display the page ... the page has a lot of html code and
> trying to write echo " blah blah blah . ";
> will not be a an option. Please suggest a way out .
Use includes:
http://www.php.net/include
And write HTML as HTML:
Greetings
Hello , we hope you
enjoy thi
> I want to display an HTML page if PHP can't load an include
> file or otherwise has an error or just doesn't work.
> How do I do this?
include returns false on failure and here's a hack to
demonstrate. Once you implement your own error
handling, be sure to set error_reporting accordingly
or
On Tue, 4 Feb 2003, The New Source wrote:
> How can I get a certain line from a file?
>
> If I get a file in this way:
>
> $f = fopen("http://www.url.com/index.htm","r";);
>
> How can I get a certain line of the file index.htm?
>
> I would need to get the line number 232, or lines from 232 to
On Tue, 4 Feb 2003, Bob Lockie wrote:
> I don't appear to be able to use this variable in an include directive
> because the variable is empty:
> include "$_SERVER['DOCUMENT_ROOT']
>
> Do I have the syntax incorrect?
Please post the exact syntax as you did not as the
above will provide a seriou
On Tue, 4 Feb 2003, Bob Lockie wrote:
> On 02/04/03 13:16 Philip Olson spoke thusly
>
> > On Tue, 4 Feb 2003, Bob Lockie wrote:
> >
> >
> >>I don't appear to be able to use this variable in an include directive
> >>because the variable
Read this faqt:
The PHP4TS.DLL file is linked to missing export
OLEAUT32.DLL:77 - Please help!!!
---
http://www.faqts.com/knowledge_base/view.phtml/aid/15670/fid/30
If you happen to be using Win95, don't, because PHP does
not s
But, the constant is AUTOglobal so it is. Read:
Variable Scope:
http://www.php.net/variables.scope
c) Constants must be scalar values in PHP4, (so
not arrays, objects, or resources).
d) Constants are cool, variables are cool too.
Regards,
Philip Olson
On Fri, 21 Feb 2003, Chris C
> Does anyone know of any built in functions or options for the US states?
> I want to make a drop down menu and some other things which have the 50
> states in it. Is there any shortcut for this with PHP, or do I need to
> do it all manually in HTML? Please let me know. Thanks.
Here's one:
h
On Wed, 2 Jul 2003, Dennis Verdaasdonk wrote:
>
> Hi there
> i was bussy with installing the PHP package under windows 2003
> when i do it with the CGI bin i ill always get error 404 and ca not find
> that problem
> when i use the ASPI way it's can not be loaded.. any idea please tell
> me.
Ther
:)
You are using an m where you want an i.
Regards,
Philip
On Thu, 3 Jul 2003, Garrick Linn wrote:
> Hello all,
>
> I seem to be running into a problem where the date() function appears not
> to differentiate properly between unix timestamps.
>
> For example, the code:
>
>
> $seconds =
On Fri, 4 Jul 2003, Thomas Hochstetter wrote:
> Hi guys,
>
> This might just be off the topic, but here it goes anyway:
>
> How can one multi select check boxes and pass them through in php,
> without getting mixed up with variables (email multi select style).
Read these faqs:
http://www.php.
You may set the location of php.ini by using the PHPRC
environment variable or during ./configure use the
--with-config-file-path directive. Maybe you should
just copy a php.ini into the directory PHP is looking for
it in, which appears to be C:\WINNIT. If PHP was actually
reading a php.ini, yo
This is already fixed in CVS. The entire example is bogus,
it should not be using filesize($filename) either.
Here's what's in CVS (the manual will be rebuilt sometime
in the next week):
http://www.example.com/";, "rb");
$contents = "";
do {
$data = fread($handle, 8192);
if (strlen($da
use UPDATE
Also, be sure to learn basic SQL before use:
http://www.w3schools.com/sql/
http://www.sqlcourse.com/
http://www.onlamp.com/pub/ct/19
Regards,
Philip
On Sun, 6 Jul 2003, Kevin Fradkin wrote:
> hi...
> i have this secuence to insert data to my db
>
> mysql_query
> ("INSERT INTO my
On Sun, 6 Jul 2003, arnaud gonzales wrote:
> Hi all,
> I am getting crazy, can't understand what i missed!
> Does anybody know?
>
> $champs = array ("titre_art" => "h3" ,"nom" => "bleu",
> "prenom" => "green", "resume" => "bold");
>
> foreach($champs as $key => $value) {
>
> As to which is faster is does not really matter as the speed of echo
> print and heredoc is dictated by the connection speed to the
> requesting client. If this is a factor in your overall operation you
> can use output buffering to save the contents and output them at the end of
> your script.
The only time you want to use {braces} like that is
when you are in a string. None of the suggestions
here are in strings, so the use of {braces} is bogus.
The following is good:
echo "Hello {$there['friend']} is good";
Note how we're in a string. This topic is very much
discussed (with load
On Thu, 10 Jul 2003, Brenton Dobell wrote:
> I know im probibly getting irritating to most of you :P but i thought i may
> ask another thing that is on my mind!
>
> I have a sql query bringing back 200 rows for arguments sake, From this i
> would like an answer to 2 issues i have.
>
> 1) I know
On Thu, 10 Jul 2003, Joe Harman wrote:
> Yeah, me too... LOL... Although, I don't understand the curly
> brackets... I don't see any examples using them in the manual either...
Actually, the manual is pretty clear on this, and with tons
of examples:
http://www.php.net/types.string
http://www
On 10 Jul 2003, Jonathan Villa wrote:
> I've read somewhere about some asptophp convertor/tool/methodology...??
> Don't know what it is, that's why I'm asking.
>
> I've been asked to help out on a project which might include some
> already developed basic ASP code. I would rather do it in PHP.
On Thu, 10 Jul 2003, Seigo wrote:
> Please tell me can users login with the html-page form and
> Basic-authentication?
Chapter 16. HTTP authentication with PHP
http://www.php.net/features.http-auth
Regards,
Philip
--
PHP General Mailing List (htt
On Fri, 11 Jul 2003, CPT John W. Holmes wrote:
> > Is there any php function to pull a query into an array? I know there is
> a
> > way to get the first row of the results in an array, but I'm having to
> loop
> > through each row pushing the row onto an array to get the result I'm
> looking
> >
Hello Michelle-
a) Only enable one GD dll, so use php_gd2.dll.
b) Consider using imagecreatetruecolor() instead but
either will work.
c) When asking support questions, it's important to
say exactly what version, although in this case
we know it's 4.3.0-1 as php_gd.dll was removed in
PH
Here's a faq:
http://www.faqts.com/knowledge_base/view.phtml/aid/15670/fid/30
You need to upgrade your old DCOM.
Regards,
Philip
On Sat, 12 Jul 2003, Arun wrote:
> I have installed Apache 2.0.47 and php 4.3.2 in Windows 98. Downloaded the
> php in the .zip format.
>
> The Apache server wo
On 14 Jul 2003, Chris Blake wrote:
> On Mon, 2003-07-14 at 14:13, John W. Holmes wrote:
> > .
> >
> > You can normally just get a new php.ini from here:
> >
> > http://cvs.php.net/co.php/php4/php.ini-dist
> >
> > but it's giving a 505 error right now. May have to wait a bit.
> >
> > First, cre
This is an IIS issue. The install.txt has specific
information on this topic, have a look. Also, this comes
up a lot and the following bug report is full of newbies
asking bogus questions but it also contains some good info:
http://bugs.php.net/bug.php?id=12061
So it looks like security/permi
> > You'll be waiting a long time, until the end of time :)
> > Because the php4 module is now named php-src, so change
> > that in the url and you'll be set.
>
> Thanks. Someone needs to change the link in the Configuration chapter of the
> manual, too, b/c that's how I always find it. :)
Done,
Your script should work fine, and to fix claims made in
this thread:
a) $HTTP_RAW_POST_DATA is NOT an array, it's a string.
b) It does not live in $_SERVER, or rely on register_globals.
Your code is wrong because you don't provide names for your
fields, so there is no POST data. Assign your
> > > Thanks for all the feedback, guys. Is there an errata page somewhere
> > > lists known bugs in the PHP interpretter?
> >
> > google > php bugs
>
> I appreciate the (rather indirect) pointer to the PHP bug tracking site - I
> didn't know about that. Errata, it seems to me anyway, perform a dif
1 - 100 of 638 matches
Mail list logo