Hi Redmond,
Take a look at http://www.opensourcecms.com/
On this site you can see opensource content management systems written
in php in action. I found it to be very usefull.
Best regards,
Davy Obdam
[EMAIL PROTECTED] wrote:
hi all
does anyone have any recommendations for good open
Yes.
I simplified the example for clearance but what I really want is to send a
string as a parameter which includes variable names to be processed inside
the function. eval() works fine, but I'm sure there was another way.
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi!
what's the best to convert xls to pdf (using PHP) ?
maybe there is util (binary executable) xls2pdf i dont know about which
would help me as well
thanks
Jan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone can explain to me why when we use mssql_connect to connect directly
to MSSQL server
mssql_connect ('192.168.0.15:1433' , 'username' , 'password')
it still not communicating thru port 1433 , but it use 445 and some others
protocols ...
And actually I have no idea WHY!!!
Because there is a
Hi,
Friday, July 25, 2003, 1:48:50 AM, you wrote:
AM I am having a problem with uploading a file from a form. I changed the
AM permission on the directory, but I am still getting an error. Here is my
AM error:
AM Copy failed./home/vencel/www/images/apt/company_logo/14Update Failed!
AM It
Hi,
I'm getting a little desperate here, and running out of places to ask.
My hosting company changed - without warning - to PHP Suexec, which
completely broke to sites. They haven't been able to tell me how to
fix it, just vague suggestions, and when I ask for detailed
instructions, they
Hi,
Tuesday, July 29, 2003, 2:40:55 PM, you wrote:
DV If anyone knows how to force the arp table to be current, that would help.
DV Sometimes a machine is on the network, and I *know* for a fact it is, but it
DV doesn't show up in arp -n *grumble*.
DV Follow the link below.
DV
hi
check the size of file and the post_max_size in phpinfo.
you can change the post_max_size in php.ini.
Rosen wrote:
Hi,
I have some problem with uploading files on server with PHP.
The upload is ok, but I must set directory permissions with FULL Access -
but this is not a good idea :((
Have
[EMAIL PROTECTED] wrote:
hi all
does anyone have any recommendations for good open source content
management systems for websites? - preferably, written in php...
http://typo3.com/
/Per
--
Per Jessen, Zurich
http://timian.jessen.ch - an analog report formatter using XSLT.
Hello
I'm making an online game in php and mysql. Can someone tell me how can I add records
to database every 60 minutes (even when i'm not online)
I'm not sure if this is possible in PHP, but Apache's Cron should take
care of this.
-Original Message-
From: phpu [mailto:[EMAIL PROTECTED]
Sent: 29. júlí 2003 09:49
To: [EMAIL PROTECTED]
Subject: [PHP] How can I add records to database every 60 minutes???
Hello
I'm making an online
Jan wrote:
Hi!
what's the best to convert xls to pdf (using PHP) ?
maybe there is util (binary executable) xls2pdf i dont know about
which would help me as well
hi jan,
i don't know, whether there is such a tool.
but for your convertion it depends on what tool you got. as .xls is a
Hi,
i facing a error during uploading a big size file (abt 200 MB). i incred =
upload file size in php.ini and also incred connection time in IIS (web =
server), but i getting again this below written error msg.
any one known abt this...
CGI Timeout
The specified CGI application exceeded the
Hi to all, any one can tell me, what is the correct way to write secure
applications in php and how is the best way to remove or prevent the
backtip operator.
I think what my code is very insecure.
What is the correct way to do this ???
$Myusername = isset($HTTP_POST_VARS['username']) ?
php-general Digest 29 Jul 2003 10:17:09 - Issue 2204
Topics (messages 157252 through 157288):
Re: Parsing MySQL query return
157252 by: Nicholas Robinson
157271 by: Jason Wong
Re: Script Execution Time
157253 by: Petya A Shushpanov
157255 by: Chris W. Parker
This is what I use.. simple.. (someone from this list contributed it)
function stopwatch_init()
{
list($usec, $sec) = explode( , microtime());
return ( (float)$usec + (float)$sec );
}
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original
This *might* work:
At the top of your script that processes the uploaded file try adding this
line:
set_time_limit(0);
This essentially removes any restrictions on the maximum execution time for
a script. For more information visit:
http://www.php.net/manual/en/function.set-time-limit.php
Hope
hello,
I wrote a very simple upload script and it perfectly works for small files. But if the
file is too huge (I tried with 8Mbytes), my browser displays:
The page cannot be displayed
...
Cannot find server or DNS Error
Internet Explorer
instead of uploading the file and submitting the form
Hello,
This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at
10:54, lines prefixed by '' were originally written by you.
I'm not sure if this is possible in PHP, but Apache's Cron should
take
care of this.
Cron is a feature of most unix based OSes rather than a feature of
Apache.
I would suggest you give the ODBTP extension a try:
http://odbtp.sf.net
It's designed to be a replacement for the FreeTDS
MSSQL functions, I haven't experimented with it
much, but so-far it looks stable and well-documented.
On Mon, 2003-07-28 at 13:02, T. Rader wrote:
Thanks for the reply.
it depends on what webserver your provider is running. all they have to do
is add .html to the list of files parsed by php.
Joan McGalliard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I'm getting a little desperate here, and running out of places to ask.
My hosting company
If your connecting from windows, try adding a datasource
and making sure the datasource connects properly, then just
use the name of the datasource as the first parameter.
On Tue, 2003-07-29 at 03:26, Nabil wrote:
Anyone can explain to me why when we use mssql_connect to connect directly
to
Hi there,
I am building a webservice for the first time with php. No I have worked
with xmlrpc and it is almost finished. After moving the service to another
server with different display error settings I am getting loads of
debrecated warnings. I went to the sourceforge site and found a newer
Well for one thing, when possible don't use the EREGI
or REGEXP functions cause they are slower then simple
string functions.
Second, your script will never get to the bottom two
lines, because if those characters do exist, you've
already exited, and if they don't, the those two lines
don't apply
Hi list,
I read through the manual and tried to find something on google, but I
didn't come to anything useful.
It seems that the ereg()-family (I tried ereg(), eregi() and ereg_replace())
can't recognize any special characters such as èéêë etc. I tested this :
?php
print
any one has this file or even know anything about it ?
thanks
--
Nabil Attar
Advanced Web Solutions
/***
Everyone is a beginner once, and no one is an expert at everything.
***/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't suppose you could copy and paste the site into an email and send it
to me could you? I can't seem to access the site.
Thanks..
-Original Message-
From: Joseph Szobody [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Email
I am trying to access a page published on a server - and then using an
anchor - to jump to a specific paragraph on that page.
For instance, if using asp, I could write:
www.thesite.com/thepage.asp?go=here
where here -the value - in the string query would be marked up as:
Use preg_*() functions then? Not that I think they would be much better
but...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Ivo Fokkema [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Hi list,
I read through the manual and tried to find something on google, but I
increase the time limit
http://uk.php.net/manual/en/function.set-time-limit.php
Imran wrote:
Hi,
i facing a error during uploading a big size file (abt 200 MB). i incred =
upload file size in php.ini and also incred connection time in IIS (web =
server), but i getting again this below written
It comes with FreeTDS, after you compile it,
it will be in:
/path/to/freetds/lib
On Tue, 2003-07-29 at 09:01, Nabil wrote:
any one has this file or even know anything about it ?
thanks
--
Nabil Attar
Advanced Web Solutions
/***
Everyone is a beginner once, and no one is an
Well d*mn, why didn't I think of this... It seems to work now! Thanks!
I'm not such an expert on the Perl compatible regexp's so I rarely use
them... Yet another reason to start using them though...
Thanx!
Dvdmandt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Use preg_*()
Anthony Ritter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to access a page published on a server - and then using an
anchor - to jump to a specific paragraph on that page.
For instance, if using asp, I could write:
www.thesite.com/thepage.asp?go=here
where here
Hi,
I was womdering if it is possible to update a MD5 Digest.
No functions seem te refelect this:
(C code)
MD5_Init(md5_ctx);
MD5_Update(md5_ctx, char *data, int);
MD5_Update(md5_ctx, char *data, int);
MD5_Final(char *dst, md5_ctx);
Notice the two updates, the
What? Did it seriously help?
You might be intrested in this regex then:
preg_replace(#[a-z0-9\-\._îÎèéüÜÉÈáàÁÀäÄåÅöÖ]+#i,'a href=YOU
FORMAT',$VARIABLE);
// Should hit most chars you want...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Ivo Fokkema [EMAIL PROTECTED] skrev i
Also... You know, there's a (.*?) command as well.. Might work just about
perfect in your situation...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Ivo Fokkema [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Well d*mn, why didn't I think of this... It seems to work
Ivo:
Why not use :
www.thesite.com/thepage.asp#here
.
Thank you Ivo.
I don't usually use asp but was wondering if the word go in asp like:
www.thesite.com/thepage.asp?go=here
is a _reserved_ word in .asp which acts like the symbol # - serving as
the
anchor.
And if
is a _reserved_ word in .asp which acts like the symbol # - serving as
the
anchor.
Are you sure? ASP is a server-side language, it would have to output HTML
to go to the anchor, and I don't think there /is/ any such html.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Well, I tried that first, but it failed when some user whould list multiple
references. The ereg_replace would then take the two references as one.
{PMID11519736:Müller}, {PMID8789442:Milasin} would result in a link to
Müller named Müller}, {PMID8789442:Milasin instead of two separate
links...
Hi Tony,
I think no server-side application had any effect on the viewing position on
the page, it's totally client side. To use this anyway, you could do this in
PHP :
?php
if ($_GET['go']) {
header(Location: http://; . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']
. # . $_GET['go']);
exit;
The version is PHP Version 4.2.3.
On Tue, 29 Jul 2003, Tom Rogers wrote:
Hi,
Friday, July 25, 2003, 1:48:50 AM, you wrote:
AM I am having a problem with uploading a file from a form. I changed the
AM permission on the directory, but I am still getting an error. Here is my
AM error:
Dear Adam ;
The problem that it doesn't exist even after complilation ..
./configure --prefix=/usr/local/freetds --with-tdsver=4.2 --with-unixodbc=/u
sr/lib
make
make install
the point is that unixodbc came out of the box with redhat 9 so i tried
whereis unixodbc and i then assumed to /usr/lib
Sorry, I don't use UnixODBC, so I have no idea.
On Tue, 2003-07-29 at 10:14, Nabil wrote:
Dear Adam ;
The problem that it doesn't exist even after complilation ..
./configure --prefix=/usr/local/freetds --with-tdsver=4.2 --with-unixodbc=/u
sr/lib
make
make install
the point is that
Hello people,
First: sorry my
weak english. I´m brazilian.
I havethe fallowblob field in my
database:
CREATE DOMAIN DM_TEXT AS BLOB SUB_TYPE 1 SEGMENT
SIZE 5000 CHARACTER SET NONEWhen a try insert text great then 32000 bytes, i
get error.
In the interbase.log, appears the line:
ds__alloc:
this will probably get me into trouble on this list, but...
I'm a big fan of zope. It's not written in php, but I have found it to
be very robust and easy to work with. Opensource.
www.zope.org
Make sure you also check out the Content Management Framework for Zope.
(cmf.zope.org - i think)
On Mon, 2003-07-28 at 19:04, Justin French wrote:
Hi all,
But, it still requires the writer to know a little mark-up
(p,b,h1,h2,i,a,img,etc) in order to create an article with multiple
paragraphs, sections, headings, images, etc, with well structured,
valid mark-up.
I'd be really
Hi everyone,
Am confused about what the @#%# is happening to my scripts because this was
working yesterday, now i restarted my localhost machine and its not working
now moreand its real simple stuff as you see.
if(isset($id))
{
$result = count ($id);
echo $result;
echo $id[0]. .$id[1].
whats the best option to get more information about a failure in your sorce
code ?
whenever i get failures that are situated at the very end of my script how
do i get to know wherer they start?
now i have get from apache + php this return
Parse error: parse error, unexpected $ in
Ryan A wrote:
Hi everyone,
Am confused about what the @#%# is happening to my scripts because
this was working yesterday, now i restarted my localhost machine and
its not working now moreand its real simple stuff as you see.
if(isset($id))
{
$result = count ($id);
echo $result;
These errors are usually caused by an extra or missing brace or
quote/apostrophe/backtick. The best way to find where this is happening is
to use another error.
Start at the bottom of your script and introduce some garbage on a line by
itself. asdf for example. This should cause a parse error
Hi
Try this
$_SESSION[my_session] = array(item_1 = Some Value , item_2 = Some
Value2 , item_3 = Some Value3);
This allow s you to store the array in the session
Pradeep DSouza
Naharonline.com
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: CPT John W. Holmes
Hi Sven,
Thanks for replying.
The problem is I need the values to be placed in seperate variables because
i am doing something like this:
if(isset($id[0]))
{$ppp1=plan_id=.$id[0];}
if(isset($id[1]))
{$ppp2=plan_id=.$id[1];}
if(isset($id[2]))
{$ppp3=plan_id=.$id[2];}
if(isset($id[3]))
When we were doing our search, we were pretty impressed with Typo3
(http://typo3.com/) from a features-and-interface standpoint. It died
here because of lack of contract-able commercial support, but if that's
not a factor in your process I'd say it's worth looking at.
(We wound up selecting
Check semicommas too.
Peter James wrote:
These errors are usually caused by an extra or missing brace or
quote/apostrophe/backtick. The best way to find where this is happening is
to use another error.
Start at the bottom of your script and introduce some garbage on a line by
itself. asdf for
Umm, semicolons?
On Tue, 2003-07-29 at 12:29, Marek Kilimajer wrote:
Check semicommas too.
Peter James wrote:
These errors are usually caused by an extra or missing brace or
quote/apostrophe/backtick. The best way to find where this is happening is
to use another error.
Start
Just forwarding this reply back to the list.
- Original Message -
From: Chris W. Parker [EMAIL PROTECTED]
To: Peter James [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 10:26 AM
Subject: RE: [PHP] debuging and getting mor information about failures
Peter James mailto:[EMAIL PROTECTED]
Peter James mailto:[EMAIL PROTECTED]
on Tuesday, July 29, 2003 9:33 AM said:
Just forwarding this reply back to the list.
Damn that Reply button!!
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A tip on avoiding errors cause by not enough }'s is to close any bracket
immediately after you open it, so if I were writing a block of code:
function foo(){
}
I would write the above first, and then fill in between the {}'s. This
way, when I get to the end of my script, I know I'm at least
Hello,
This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at
16:52, lines prefixed by '' were originally written by you.
now i restarted my localhost machine and its not
working
now more
Sounds like you have made a change in your php.ini file previously
without restarting
On Tuesday 29 Jul 2003 1:39 am, you wrote:
hi all
does anyone have any recommendations for good open source content
management systems for
Having been through exactly this exercise recently, here is our shortlist:
PHP-based
eZ-publish - http://ez.no
Typo3 - http://typo3.com
Aegir -
Dear List,
I am currently working on a UPS Web Service Interface and
was wondering if you thought that I could accomplish such a thing
without the Curl libraries. since unfortunately the server that I am
using did not compile Curl with PHP. what do you think. is this
something that
Yes, you are right. But this depends on your perspective ;)
Adam Voigt wrote:
Umm, semicolons?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can do anything (almost) with fopen() and fsockopen()... but it won't
necessarilybe easy. It depends what you want to do.
--
Peter James
[EMAIL PROTECTED]
php|architect
The Magazine for PHP Professionals
http://www.phparch.com
- Original Message -
From: Steven Kallstrom [EMAIL
Gabriel Guzman mailto:[EMAIL PROTECTED]
on Tuesday, July 29, 2003 9:44 AM said:
A tip on avoiding errors cause by not enough }'s is to close any
bracket immediately after you open it, so if I were writing a block
of code:
Good tip. I do this too.
I would write the above first, and then
Search www.phpclasses.org, I'm sure you'll find an alternative there.
Steven Kallstrom wrote:
Dear List,
I am currently working on a UPS Web Service Interface and
was wondering if you thought that I could accomplish such a thing
without the Curl libraries. since unfortunately the
Hi,
If i am posting something like this from a form:
input type=checkbox name='id[sh1]' value=3
input type=checkbox name='id[sh2]' value=4
How do i get the value of id[]?
eg:
I dont want the sh1 and sh2, i just want the 3 and 4
The reason i dont wan the sh1 and sh2 is those are dynamic and
I think what you want is:
input type=checkbox name=id[] value=3
input type=checkbox name=id[] value=4
Then on your next page, you can just do:
foreach($_POST['id'] AS $row)
echo $row;
Or whatever, and that way you only get what you need.
On Tue, 2003-07-29 at 13:08, Ryan A wrote:
I have a mySQL database containing items that are categorised four
levels deep.
when I'm getting the data out (in a tree structure) I'm nesting SQL
queries inside array traversing loops (select distinct category, while
$row= echo stuff select distinct subcat, while $row= echo stuff etc)
I'm sure
Hey, I've got a weird issue. I have some code, an MySQL statement, that
returns an empty set, like this:
$person = mysql_query(Some Statement Here);
So, then I have an if/else statement:
if (!$person || $person == 0 || $person == '' || $person == '0') { $result =
1; }
else { $result = 4; }
Did you try to print the content of the variable?
What does it contain?
On Tue, 29 Jul 2003 13:29:10 -0400
Mike At Spy [EMAIL PROTECTED] wrote:
Hey, I've got a weird issue. I have some code, an MySQL statement, that
returns an empty set, like this:
$person = mysql_query(Some Statement
[snip]
$person = mysql_query(Some Statement Here);
if (!$person || $person == 0 || $person == '' || $person == '0') {
$result =
1; }
else { $result = 4; }
If the SQL statement returns an empty set, shouldn't $result be equal to
1?
Instead, I'm getting $result = 4.
[/snip]
Actually I think we
Tony Crockford mailto:[EMAIL PROTECTED]
on Tuesday, July 29, 2003 10:23 AM said:
I have a mySQL database containing items that are categorised four
levels deep.
[snip]
can anyone point me to a tutorial that would help me switch from
nested select statements to something more elegant?
Hello,
I am using mySQL and PHP to pull some data into my page.
I have 2 dropdown boxes.
As an example lets say dropbox1 has a list of cars and dropbox2 has a list
of colours.
Here's the thing. The colours for each car vary so I won't know what
colours to populate the 2nd dropbox with until a
Here's the SQL - I tested it via command line and it comes back empty set.
SELECT ID FROM tblItems WHERE number = $place
Does that help?
-Mike
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:31 PM
To: Mike At Spy; [EMAIL PROTECTED]
[snip]
Here's the SQL - I tested it via command line and it comes back empty
set.
SELECT ID FROM tblItems WHERE number = $place
[snip]
$person = mysql_query(Some Statement Here);
if (!$person || $person == 0 || $person == '' || $person == '0') {
$result =
1; }
else { $result = 4; }
[snip]
...lots of stuff...
[/snip]
What I forgot to say is that basically you were testing for query
execution, not the number of rows returned from the database. If you
want to test the number of rows or some other result from the query you
have to go further.
HTH!
--
PHP General Mailing
Hello,
This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at
18:25, lines prefixed by '' were originally written by you.
If the SQL statement returns an empty set, shouldn't $result be
equal
to 1?
Instead, I'm getting $result = 4.
If the query fails, e.g. because you have an
-Original Message-
From: Mike At Spy [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 18:37
$person = mysql_query(Some Statement Here);
Please go back and read the manual page for mysql_query again
(http://www.php.net/mysql_query).
The above returns FALSE if the query is invalid,
I know. I first tested for !$person but got the TRUE result when I should
have received FALSE (empty set).
Why would that be?
I added '0' and such just to see if I wasn't thinking straight. :\
-Mike
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent:
assuming you have a table with colors, and each color has car associated
with it (yes, there might be dup color entries).
This should work (check spellings and case, etc..etc...)
$query=SELECT * from colors;
$results = mysql_query($query) or die (DB ERROR: . mysql_error());
$num =
[snip]
I know. I first tested for !$person but got the TRUE result when I
should
have received FALSE (empty set).
Why would that be?
I added '0' and such just to see if I wasn't thinking straight. :\
-Mike
[/snip]
If the query executes it will return TRUE for $person, so
if(!$person)
Off hand, I would agree. And that is what I would expect.
However, the *exact* same setup on a different server gives me a result of
'FALSE' properly. The other server has php 4.3.3 on it - the one giving the
improper response has php 4.1.2.
Could this be the issue?
-Mike
-Original
[snip]
Off hand, I would agree. And that is what I would expect.
However, the *exact* same setup on a different server gives me a result
of
'FALSE' properly. The other server has php 4.3.3 on it - the one giving
the
improper response has php 4.1.2.
Could this be the issue?
[/snip]
It sounds
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 17:56
[...snip...]
As opposed to the much easier to read (and line up curly
braces) method:
function doit()
{
for()
{
if()
}
I have a function that resizes images. If I put it in the same php file that
calles it it workes fine. Gives a nice thumbnail or whatever size I choose
to display. If I however put it in a seperate file and include it and call
it I get garbage and the following error:
Warning: Cannot modify
* Thus wrote Joan McGalliard ([EMAIL PROTECTED]):
Hi,
I'm getting a little desperate here, and running out of places to ask.
My hosting company changed - without warning - to PHP Suexec, which
completely broke to sites. They haven't been able to tell me how to
fix it, just vague
[snip]
I wonder why the heck the author didn't just go for the alternative
syntax with proper end-tokens and get the added value they deliver.
[/snip]
At the risk of stepping of of the curb into the holy-war that rages
about this the answer Mike is that a lot of PHP coders are what as known
as
These errors are usually caused by an extra or missing brace or
quote/apostrophe/backtick. The best way to find where this is happening
is to use another error.
Alternatively, use a text editor that's syntax-aware. In bbedit for the
mac, finishing a closure or double-clicking on one (parens,
-Original Message-
From: Mike At Spy [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 19:01
Off hand, I would agree. And that is what I would expect.
However, the *exact* same setup on a different server gives
me a result of
'FALSE' properly. The other server has php 4.3.3 on it
I'm new to php and web development in general. I've toyed with ASP a little
and enjoyed using include statements to include my navigation and heading
pages. Does PHP provide a similar statement, or is there something else I
can do to achieve this effect?
--
PHP General Mailing List
I know the braces vs. end-token debate is almost on the scale of a holy war,
and I admit to hating the curly-brace style with a passion, but when I see code
like this:
[snip code]
Yeah, I'd hate curly braces with a passion if I saw code like that, too. How can
anyone *possibly* read that
[snip]
I'm new to php and web development in general. I've toyed with ASP a
little
and enjoyed using include statements to include my navigation and
heading
pages. Does PHP provide a similar statement, or is there something else
I
can do to achieve this effect?
[/snip]
*sigh* RTFM at
[snip]
Off hand, I would agree. And that is what I would expect.
However, the *exact* same setup on a different server gives me a result
of
'FALSE' properly. The other server has php 4.3.3 on it - the one giving
the
improper response has php 4.1.2.
$which_person = mysql_query(SELECT
I did the var_dump and got:
bool(false)
While $vthere (from my previous post) returns 0 (zero) still. :\
But proceeds as if 0 were a false statement when asked if $vthere equals
zero. :\
-Mike
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
[snip]
$which_person = mysql_query(SELECT ID FROM tblItems WHERE number =
$place);
$vthere = mysql_num_rows($which_person);
if ($vthere == '0') { True } else { False }
What should this return? True or False?
[/snip]
If there is one or more rows returned by the
Ford, Mike LSS
on Tuesday, July 29, 2003 11:00 AM said:
I know the braces vs. end-token debate is almost on the scale of a
holy war, and I admit to hating the curly-brace style with a passion,
but when I see code like this:
function doit()
{
for()
{
if()
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
Hi to all, any one can tell me, what is the correct way to write secure
applications in php and how is the best way to remove or prevent the
backtip operator.
You can use escapeshellarg to prevent this...
http://php.net/escapeshellarg
[snip]
I did the var_dump and got:
bool(false)
While $vthere (from my previous post) returns 0 (zero) still. :\
But proceeds as if 0 were a false statement when asked if $vthere equals
zero. :\
-Mike
[/snip]
Is the query executing properly? Try this ...
$sql = SELECT ID from tblItems WHERE
Nothin' wrong with the SQL statement - it executes properly when I enter
values that actually pull something from a table. When I enter values that
are not present in the table, I go on to have the other issue of it looking
like it is false, though it is not. :\
-Mike
-Original
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
Well d*mn, why didn't I think of this... It seems to work now! Thanks!
I'm not such an expert on the Perl compatible regexp's so I rarely use
them... Yet another reason to start using them though...
Its a good thing to learn perl regular
1 - 100 of 214 matches
Mail list logo