[EMAIL PROTECTED] propably said:
> I am trying to re-compile php 4.2.2. It seems that the option
> "--enable-trans-sid" is no longer there (but still in the manual).
> The reason for a re-compilation is that I was not able to have SID
> printed out. Here is the code I tried, but SID is empty: se
you could use the command "file -bin your_filename" and capture the output using popen
or exec.
i have found this to work well..
seee below
function mimetype($file)
{
// execute command
$fp = popen("file -bin $file","r");
// determine mimetype to output
if(!$fp)
{
// defaul
this is what i have exactly in my code...
header("Content-Type: application/force-download; name=\"$file\"");
header("Content-Disposition: attachment; filename=\"$file \"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $content_length");
readfile("$file_fullpath"
Hello,
I'm working with Safe mode and I have a big trouble how the PHP is behaved. I have the
web root and under them is directory, where my scripts are. This is my situation:
rwxr-xr-x www www /var/www/htdocs Web root
rwxr-xr-x www www /var/www/htdocs/test
Kramer wrote:
> hi,
>
> I've Apache 2 running fine in my Windows 2000 machine. I installed PHP
> 4.2.3( from the zip-file method ).
> I copied php4apache.dll and php4apache2.dll to /WINNT/system32 and
> /WINNT as well( to be safe ).
>
> In my httpd.conf, either of the following startments are caus
Have you tried this way ?
php -q your_file.php > /path/to/output_filename
"Jean-Christian Imbeault" <[EMAIL PROTECTED]> escreveu na
mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am running a PHP program under Linux on the command line. The problem
> I have is that I get no output to
eval() should work for you
http://www.php.net/eval
You also may want to consider including files coded
something like this:
Then you just set the values for the vars in your code
- include the file.
Josh
--- Hendrik Daldrup <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> i am working with tem
Hi Murat,
You can generate the code above with php and the javascript is a text that
the browser will execute...
PHP has its processes on the server site...ie.: Your webserver
Javascrip has its processes on the browser of any user who wants to access
your webserver
HTH,
Ernani
"Mura
Hi,
i am working with templates, which i put into a string ($user_screen)
and in the end i make the output with
echo $user_screen;
where $user_screen would contain the template file data.
However, if the $user_screen contains any php code it gets echo'ed as
well, instead of parsed.
(ok, that
> From: Alex Shi [mailto:[EMAIL PROTECTED]]
> 1. why PHP changed the way to access submitted vars;
Because if you use a hidden variable like $validuser='yes' inside your
script you probably forgot to check whether the user did this:
www.eol.ca/page.php?validuser=yes
> 2. any good suggestion
I guess I've understood your problem
I have made a class named COutlook and can be found at www.phpclasses.org
It is not intended not to read e-mail adresses from address book of outlook
express...
It reads Inbox and Outbox messages from MS-Outlook, I´ve never tested it
with Outlook Express.
php-general Digest 4 Oct 2002 05:56:45 - Issue 1623
Topics (messages 118775 through 118808):
Is there a difference in this??
118775 by: Roberto Ramírez
Re: no errors ?
118776 by: gamin
Re: Is there a difference in this?
118777 by: Leif K-Brooks
fopen() limit
hi,
I've Apache 2 running fine in my Windows 2000 machine. I installed PHP
4.2.3( from the zip-file method ).
I copied php4apache.dll and php4apache2.dll to /WINNT/system32 and /WINNT as
well( to be safe ).
In my httpd.conf, either of the following startments are causing the Apache
to not start.
Hi,
I am trying to re-compile php 4.2.2. It seems that the option
"--enable-trans-sid" is no longer there (but still in the manual).
The reason for a re-compilation is that I was not able to have SID
printed out. Here is the code I tried, but SID is empty:
However, session_id() does tells the c
Ok, I have removed the http://www.phpdiscuss.com
> >
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am running a PHP program under Linux on the command line. The problem
I have is that I get no output to the screen until the program finishes.
I have lots of echo statements throughout the program to help me debug
but none of them are printed until the program finishes, which is really
a pai
I'd really appreciate it if you masked email address with javascript or
something... or perhaps only showed email address' to logged in and
confirmed users... I already have my email address plastered all over the
marc archives... one more means twice as much spam :)
Justin
on 04/10/02 2:44 PM,
I've seen a few other post on this, and it sounds like there is more then
one of use that is trying this script. I've got it so that I can use the
commands, but I still get errors on the page...
here is what I have done.
I downloaded libmycrpt from
ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmc
readfile() reads 8k blocks at a time and dumps them out. It does not read
the entire thing into ram, so that wouldn't be what was causing you to hit
a memory limit. You must have done something else wrong then.
-Rasmus
On Fri, 4 Oct 2002, christian haines wrote:
> thanks rasmus,
>
> i have tr
Thanks for the help Gamin. I've been reading some posts and have noticed
that lots of people are having the same problem as I. I'm using php 4.1.2
which came with redhat 7.3. I think that there was a bug in 4.1.2 regarding
fopen() and unusually long delays with HTTP files. I may try and compil
Sorry for the ID10T, the address is: http://www.phpdiscuss.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yea - I'm having the exact same problem - trying to use that nice little
piece of encrypt /decript stuff that was posted earlier
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi! I ran through the phpinfo and here's the result. That's expl
thanks rasmus,
i have tried read file but it gave me the same issues as fpassthru.. both cap
on the memory_limit directive withint the php.ini file
any other suggestions maybe?
cheers
christian
Rasmus Lerdorf wrote:
> readfile()
>
> On Fri, 4 Oct 2002, christian haines wrote:
>
> > hi all,
>
On Thu, 3 Oct 2002 14:43:37 -0700 (PDT), you wrote:
>Hello,
>
>I was wondering if anyone has a good example of a way to do this. Kinda
>lame, but like if the time is between 8am and 12pm, say "good morning",
>between 12pm and 6pm, say good afternoon, and so on.
>
>I know this is probably pretty t
What have you tried so far?
Just make your PHP page that shows the message and does the updates...
Then use a META-REFRESH to redirect after 5 seconds...
---John Holmes...
> -Original Message-
> From: Peter Goggin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 10:25 PM
>
Can anyone refer me to the appropriat functions to be used for this?
Thanks in advance
Regards
Peter Goggin
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Peter Goggin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, October 04, 2002 12:17 AM
Subject: R
I have setup a web-frontend to the PHP.net Usenet/Mailing List Groups.
Could anyone take a look and give me some recommendations on enhancements?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sarcasm aside, I do have the script set up (although I didn't note so in the
last response) to not accept files with '.' or '..' in the path. The URL can
accept directories within the one the PHP script is in, but not in a
different path or any directory above its own (i.e., the server files).
--
On 3 Oct 2002 at 12:27, Stephen wrote:
> I've been reading tutorials lately on user authentication in PHP and
> they all are for the HTTP way of authentication. How can I use the same
> system but with forms instead of that ugly pop-up box?
Of course the best solution for this is mod_perl (for t
> I have a page set up that loads the contents of a text file into an
HTML
> template using PHP. (i.e. something.com/page.php?include=1 where "1"
is a
> simple no-extension text file in the same directoy as page.php). Is
there
> a
> way to modify the PHP code in the template page to search for the
Hi, I am pretty lost..
I am trying to create a php thumbnail with php without using any *sql database.this
script was supposed to open a directory then read it resize the images without losing
quality and displays it on screen.
ok, here is what I am trying to do and its now working:
Hello,
On 10/03/2002 07:41 PM, Php List wrote:
> Hi,
> Is it possible to get a mime type of a file?
> I need to be able to attach files, but I won't always know the mime type of what is
>being attached.
> I could look at the extension of the file for a general Idea, but I wouldn't know if
>a .
Hi,
Is it possible to get a mime type of a file?
I need to be able to attach files, but I won't always know the mime type of what is
being attached.
I could look at the extension of the file for a general Idea, but I wouldn't know if a
.jpg file is an image/jpg or image/jpeg.(progressive) and t
PHP can give you the server time, but for this I think it would be better to
have the user's local time, in which case Javascript would provide a better
solution.
-Kevin
- Original Message -
From: "Bryan Koschmann - GKT" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Thur
Thanks! But, are there any others? This doesn't really explain the whole
multiple page part...
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 12:33 PM
Subject: Re: [PHP] HYML
Hello,
I was wondering if anyone has a good example of a way to do this. Kinda
lame, but like if the time is between 8am and 12pm, say "good morning",
between 12pm and 6pm, say good afternoon, and so on.
I know this is probably pretty trivial, but I just wanted to see what
ideas where out there.
To my knowledge you can include as many files as you want.
If by commenting out the clean() function, I'd say you have a syntax error
in that function and you're just not seeing the error message. Turn on
full error reporting and see what happens.
-philip
On Thu, 3 Oct 2002, Matias Silva wrote
This might sound like a dumb question but I just need verification so that
I can convince myself that I'm going insane!
I have this error in which I include 3 files (common_html.inc,
common_db.inc, common_functions.inc)
well I have a clean() function in the common_functions.inc file. But it
seems
"Rusty Small" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for the help. I made the assumption that all data from each page
was
> being downloaded but it is not.
>
> I do have one other question. I've used microtime() to test how long it
> takes to
I wrote in a message:
> Here is the URL to a project that is far as I am concerned was finished.
> http://www.overbrookfarm.myiglou.com
> It is a Flash site that uses PHP for dynamically updating text in some
text
> fields. . There should already be text inside of it.
> I see it. My client can't
Thanks for the help. I made the assumption that all data from each page was
being downloaded but it is not.
I do have one other question. I've used microtime() to test how long it
takes to download each page and have noticed that some pages may take as
long as 45 seconds to download!!! I know
I am trying to create a message board. I setup a windows 2000 server and
installed IIS. In order to setup this messageboard i need to have PHP
installed. I downloaded the PHP installer and tried to run it but i get a
error message stating that there was a missing OCX component and it cant
configur
Hi,
what sort of size limtis does fopen() have on a Linux based system ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try echoing those vars in the loop to see if their values are correct...
Roberto Ramírez wrote:
>I dont get the difference between this two instructions...
>
>
>mail("[EMAIL PROTECTED]", "Subject", "Message") or die("It suck");
>
>
>mail($mailto,$subject,$content) or die("It suck");
>
>
>
>Im jus
GOT IT,
basically in a script like this
php treats these as contants, and issues a notice saying that undefined
constants are being used. The default setting for the php.ini file is :
error_reporting = E_ALL &~E_NOTICE
thus all notices are not displayed. setting error_reporting to E_ALL s
I dont get the difference between this two instructions...
mail("[EMAIL PROTECTED]", "Subject", "Message") or die("It suck");
mail($mailto,$subject,$content) or die("It suck");
Im just getting a server error on the second instruction... I've checked the
vars with the is_string() function an
I have a page set up that loads the contents of a text file into an HTML
template using PHP. (i.e. something.com/page.php?include=1 where "1" is a
simple no-extension text file in the same directoy as page.php). Is there a
way to modify the PHP code in the template page to search for the included
Check out Kevin Yank's article on webmasterbase.com/sitepoint.com
Cheers,
Justin
on 04/10/02 3:27 AM, Stephen ([EMAIL PROTECTED]) wrote:
> Hello,
>
> I've been reading tutorials lately on user authentication in PHP and they all
> are for the HTTP way of authentication. How can I use the same
Hello,
I've been reading tutorials lately on user authentication in PHP and they all are for
the HTTP way of authentication. How can I use the same system but with forms instead
of that ugly pop-up box?
Thanks,
Stephen Craton
I have version 4.2.3 of PHP installed on a Windows server.
I am new to PHP. I did find the function
array odbc_fetch_array ( resource result [, int rownumber])
in the documentation, but it doesn't seem implemented in the version that I
use.
Do you know what I did wrong?
Thanks,
Pascal
--
P
[snip]
I think we're arguing with each other even though we agree on
everything. :)
[/snip]
I prefer to think of it as healthy discussion :^] It is like two quantum
physicists discussing light, with one leaning towards the particle side and
the other leaning towards the wave side. They agree on e
You still can tell members to upload their address books and use this
class to get addresses from the files:
http://www.phpclasses.org/browse.html/package/778.html
Arnaud Castéran wrote:
>Do you think it is possible to export email addresses from Outook Express
>with PHP.
>I looking for a scrip
[snip]
> I agree that COUNT is an optimized return, but for a situation where
you
> are
> retrieving data from the query for whatever use it is more efficient
to
> use
> mysql_num_rows() to return the count of this particular query than it
> would
> be to issue a second query, no?
Yes, it all dep
readfile()
On Fri, 4 Oct 2002, christian haines wrote:
> hi all,
>
> i have successfully created a download script to force a user to
> download, however attempting to download large files causes an error
> saying that the file cannot be found.
>
> my code >
> header("Cache-control: private");
Hi
firstly, magic quotes have something to do with how your php server
interprets the embedded php commands, or at least that's what I took it too
be. I dont really know the details but it is definitely a setting in your
php.ini. Maybe you can research it to your needed detail from that.
Secon
hi all,
i have successfully created a download script to force a user to
download, however attempting to download large files causes an error
saying that the file cannot be found.
my code >
header("Cache-control: private");
header("Content-Type: application/force-download; name=\"$file\"");
Hi,
You could try this query...
$query = "SELECT `d1.code`, `d1.type`, `d1.descr`, `d1.grouptype`, `d1.cusref`,
`d1.stock`, `d1.minstock`, `d1.appmeth` , `d1.supplier`, `d1.suppref`, `d1.leadtime`,
`d1.price`, `d1.reorder`, `d1.code1`, `d1.code2`, `d1.notes`, `d1.usr`, `d1.usr`,
`d1.cusname`, `d
FEI, it works fine on my IE6/WinXP. :) (And NS7.)
> Rebekah,
>
> When I click link to go to the second index (using IE6, WinXP) at
> http://www.overbrookfarm.myiglou.com/index2.html my browser hangs and I
> never get the menus. However it all works fine in Mozilla 1.0 on the same
> platform. (
[snip]
I still think it's more effecient to use two queries in your case. One with
a COUNT(*) to get total records, and one with a LIMIT to just get the 40 you
want. With a smaller table, it may not matter, but with large tables, you
could be using up a lot of resources by selecting everything, bu
Are you _sure_ that's the query you are execting? I'd say you are missing a
comma or quote somewhere...
---John Holmes...
- Original Message -
From: "Mark Colvin" <[EMAIL PROTECTED]>
To: "Php (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 11:11 AM
Subject: [PHP] DATE_FORM
I'm not sure if this is a php or mysql issue but I run the following query
from a php script -
$query = "select d1.code, d1.type, d1.descr, d1.grouptype, d1.cusref,
d1.stock, d1.minstock, d1.appmeth, d1.supplier, d1.suppref, d1.leadtime,
d1.price, d1.reorder, d1.code1, d1.code2, d1.notes, d1.usr,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
Check these three ini settings,
log_errors
display_errors
error_log
My guess is the you have log_errors on, display_errors off, & error_log as
your apache access log.
HTH!
~Pauly
On Thursday 03 October 2002 04:20 am, gamin wrote:
> Yes,
>
>
> I was thinking along the lines that there needed to be a query that
returned
> some results that may also be displayed or used within the script. For
> instance, I use a paging script that queries for certain conditions and
> returns 40 records per page. I also display a line that says, "There a
http://www.nusphere.com/
On 10/3/2002 4:51 PM, Ray, James A wrote:
> Other then Abriasoft, is there another complete software package that
> contains PHP, MYSQL, APACHE and PERL for Windows?
>
> Thank you
>
> Jim
>
--
////
// Scott Houseman
Hi! I ran through the phpinfo and here's the result. That's explain why
I'm unable to get most of the mcrypt functions to work. Features like
"mcrypt_module_open", "mcrypt_list_algorithms", "mcrypt_get_block_size",
etc. So, what's the problem here? PHP bugs? Please spill your gut out on
this
[snip]
> $result = mysql_query("SELECT * FROM tbl");
> $number_of_rows = mysql_num_rows($result);
>
> You don't have to do the count in the SQL, as John said earlier a SELECT
> COUNT(*) FROM tbl will always return one row, even if the value of the row
> is 0. Of course you could always test for th
Other then Abriasoft, is there another complete software package that
contains PHP, MYSQL, APACHE and PERL for Windows?
Thank you
Jim
There is something out there called FXPHP which might fill your needs:
http://www.iviking.org/
on 10/3/02 11:23 AM, Webmaster MBTRADINGCO at [EMAIL PROTECTED]
wrote:
> I ran yesterday into a company that wants me to implement a solution
> with PHP and File Maker. I don't even know if it is poss
Arnaud CastéRan wrote:
> Do you think it is possible to export email addresses from Outook Express
> with PHP.
> I looking for a script using COM but i only found exemples for MSOutlook.
> What i want to do is an address book for each members of my site
> (www.universemail.net a directory of emai
Hi,
there a way to determine if the uploaded image is a standard jpeg or a progressive
image?
I'm looking at the GD documentation but i can't find anything
--
---
Alessandro Crugnola [sephiroth]
Flash | PHP Developer
http://www.sephiroth.it
Team Macromedia Volunteer for Flash
http://www.macrom
Jen,
Don't use eregi_replace when str_replace will do.
$contents = str_replace($matches[0][$i], $blah, $contents);
Also the dots should be escaped or gif and jpg without
dots before them will be matched.
preg_match_all('{\/*[A-z0-9_/-]+(\.gif|\.jpg)}', $contents, $matches);
I saw on Google search result about PHP and mcrypt. I read the manual on
http://php.net/mcrypt and it spoke about downloading libmcrypt and use the
php configure option, "--with-mcrypt=" for libmcrypt-2.x.x. So, on the
Google search result, one of hte posting talk about using both the libmcrypt
I ran yesterday into a company that wants me to implement a solution
with PHP and File Maker. I don't even know if it is possible, so I was
wondering:
A) Does anyone has any experience with filemaker?
b) Can PHP save data from internet via ODBC to a database (other than
the ones it supports) in a
> $result = mysql_query("SELECT * FROM tbl");
> $number_of_rows = mysql_num_rows($result);
>
> You don't have to do the count in the SQL, as John said earlier a SELECT
> COUNT(*) FROM tbl will always return one row, even if the value of the row
> is 0. Of course you could always test for that.
>
>
> First of all, what exactly is get/set_magic_quotes_runtime? (I know what a
> get/set function does, and I know what magic_quotes does, but I'm unclear
> about what magic_quotes_runtime is as opposed to _gpc). Does it get the
> magic_quotes setting at runtime, before anything has been
> set_magic
> I want to transfer from a web page to a transient page to display a
message
> and carry out some database updates and then transfer back to the original
> page after a pause of 5 seconds. Is this possible using php?
Yes
---John Holmes
http://homepages.tesco.net/~J.deBoynePollard/FGA/ques
> Question:
> Does PHP4 code have to be written differently for Windows servers? If so,
is
> there a code resource describing the differences?
> (the only information I can find is on installation on Win servers)
No, not really. There are a few functions that won't work on windows because
they ac
Hello everyone.
Does anyone know of PHP scripts dealing with dynamically displaying
parts of forms?
For example:
A user chooses option 'C' of question 2, which then instructs the user
to continue with question 5 (skipping questions 3 and 4).
This being the case, the user does not need to see
I ran the query in PhpMyAdmin. It work fine. It still doesn't work
when I try to run it in another script.
Frank wrote:
>
> Hi,
>
> it's a great tip to install PhpMyAdmin - or phpPgAdmin for PostgresSQL -
> this will only take you at most half an hour even for a newcomer.
>
> You can then
I think this is what you'll want.
<>
You need to be careful that you haven't output anything beforehand or you'll
get an error message. Even having a blank line before the http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
please how to redirect from one page to an onther in php ? ( like it is in ASp :
redirect("../index.asp")
exemple
switch (condition1) {
case "1";
go to page page1.php;
case "2";
go to page page2.php;
}
thanks in advance
<>
I thought there might be a way to compare the pixel height of the output (??
Hey, why not?) to the screen resolution returned by some setting (Browscap
setting? I'm still looking into it). Hope so...!
<>
Yeah, that's not exactly as pinpoint as I would have hoped.
--
PHP General Mailing Lis
Speaking form experience, get ready for a few headaches on this.
edit /usr/informix/etc/sqlhosts and have it look like this:
demo_on onipcshmon_hostname on_servername
demo_se seipcpipse_hostname sqlexec
archives1 setlitcp archives1.mdah.state.ms.us sqlexec
wher
<>
What's an example error message that you're getting? As said, it may just be
a difference in versions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Run a small phpinfo() script on both servers... take note of the version
numbers being used, and take not of the config setting "register_globals" on
both... my guess is that register_glabals is set to OFF on your local
machine, being a newer install.
If it isn't that, it may be an issue with the
Hello,
I don't know if I'm in the right place to ask for help or not...
First...I am not a hardcore coder...I'm a designer - so I'm still trying to
learn "the other side". :)
I am being hosted on a Windows 2000 server. It supports PHP. I have a simple
script (refer a friend) on a Linux server tha
I have php 4.1.2 running on a linux 7.2 box. I want to make a connection to
an Informix 7.2SE database running on a HP-UX 10.2 box. My issues are as
follows -
1) Do I need informix software of any description running on the linux web
server?
2) Can I configure the php informix modules into and up
An alternative way is to add a primary or unique key and make the code
snippet like this:
mysql_query("INSERT ignore into AuthNum (FirstNum, LastNum, NextNum, KeyField) VALUES
(1,2,3,1)",$dblink);
mysql_query("Update AuthNum Set FirstNum = 1, LastNum = 2, NextNum = 3",$dbLink);
If there is a r
I want to transfer from a web page to a transient page to display a message
and carry out some database updates and then transfer back to the original
page after a pause of 5 seconds. Is this possible using php?
Regards
Peter Goggin
--
PHP General Mailing List (http://www.php.net/)
To unsubs
on 03/10/02 10:55 PM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> Secondly, is there any way of counting how long in pixels my page runs?
> Basically, my situation is this: I want to know if my page runs more than a
> screen and a half (or so... still deciding) of the user's screen so that I
>
After calling unlink for a specific file in a directory on a Linux system,
the file is deleted but subsequent calls to readdir return
old directory listing until the script finishes. The next time
I execute the script, it does not list the deleted file.
But I need to reread directory just after ca
First of all, what exactly is get/set_magic_quotes_runtime? (I know what a
get/set function does, and I know what magic_quotes does, but I'm unclear
about what magic_quotes_runtime is as opposed to _gpc). Does it get the
magic_quotes setting at runtime, before anything has been
set_magic_quotes_ru
Well, that's just a typo...of course there should be a () to make it call a
function...
The whole point to my postings is that I can't get the darn variable to stay
in place!!! Look where it says "Prints NOTHING".
Does anyone know why it doesn't print "Hello World"???
::Lewis
"Mike Ford" <[EM
[snip]
Or another way if you don't want a result when it's zero.
$rslt = mysql_query("SELECT count(*) as cnt FROM tbl having cnt > 0");
[/snip]
$result = mysql_query("SELECT * FROM tbl");
$number_of_rows = mysql_num_rows($result);
You don't have to do the count in the SQL, as John said earlier a
[snip]
It is a Flash site that uses PHP for dynamically updating text in some text
fields.
If I can direct you to the Stallions menu---pick a horse.
A page should load that has a picture of a horse on the left hand side and a
green box on the right. The box on the right is dynamic text field. Th
> -Original Message-
> From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]]
> Sent: 03 October 2002 09:39
>
> Here's a simplier version...and I'm still having a problem
> with it. It's
> driving me insane!!! :)
>
> class MySQL
> {
> function SET ( )
> {
> $this->MYVAR = "Hello World!"
Look into the logs, they should be more verbose. How did you install the
three.
BB wrote:
>I seem to have a php-mysql problem on my new Sun Qube3 (RH Linux).
>php works fine, mysql works fine, apache works fine, only the combination of
>the three seems troublesome.
>php does not recognize comma
On Thursday 03 October 2002 15:00, Rusty Small wrote:
> I have written a script in which the main purpose is to download html pages
> from multiple web servers. I'm using the fopen() function to download
> these pages. I would like to be able to download only the source (text)
> and no binary da
"SELECT CURDATE() - 14" ... this isn't doing what you think it's doing.
The CURDATE() function returns a string like "2002-10-03".
Subtracting 14 from that gets you "20020989" as a result from MySQL.
Pretty useless, right? If that ever worked for you, it was a total
coincidence.
Try this instea
hi all
have a really simple query:
$twowksworth = @mysql_query("SELECT updates.MODELCODE, updates.SETNO,
updates.FRPICNO, updates.TOPICNO, updates.CPOSTDATE, updates.ZIPFILENAME,
updates.TOTPICS, models.MODELNAME FROM updates LEFT JOIN models ON
updates.MODELCODE = models.MODELCODE WHERE updates
1 - 100 of 122 matches
Mail list logo