VIM? No thanks :-)
:wq
- Original Message -
From: Michael Champagne <[EMAIL PROTECTED]>
To: Martin Cabrera Diaubalick <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 5:13 PM
Subject: Re: [PHP] PHP Editor for Linux
> What about the greatness of VIM?
>
> > Hi th
Hi,
now the problem is that the configure-tool searches the apache-file
"httpd.h".
We use the IBM HTTPServer and its installation-base is not
/../apache.x.x.x what the configure-tool
searches for when using the with-apache-flag but /.../HTTPServer.
Therefore we created a link with the name
Read back a couple of days and you'll probably see multiple answers to this
question.
--
phill
""Martin Cabrera Diaubalick"" <[EMAIL PROTECTED]> wrote in message
005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]">news:005b01c0b92c$8bd3ff80$[EMAIL PROTECTED]...
> VIM? No thanks :-)
>
> :wq
>
>
> - Origi
Sorta, not really. You can turn up the error reporting level so that using a
variable before it is defined will generate a warning. That should get what
you are after. See http://www.php.net/manual/en/function.error-reporting.php
. As usual, be sure to hit the reader comments :)
Kirk
> -Orig
Sebastian Bergmann wrote:
> I'm just thinking about creating a SourceForge Account for a
> "PHP Mode for UltraEdit" project.
Done, see http://sourceforge.net/projects/php4ue/ for details.
Anyone who wishes to contribute to this project: Please e-mail me your
SourceForge ID, so I can add you
Martin Cabrera Diaubalick wrote:
>
> Hi there!
>
> I use bluefish for HTML and PHP coding, but I'm not too happy with it. Do
> you know a good PHP Editor for Linux, besides Emacs and xjed...?
>
Try nedit...
Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
I need an older version of PHP because my pam_auth won't build with
php-4.0.4pl1? With the redesign of the php site, I think they removed older
source files. Can anyone confirm this, or does anyone know where I can get
php-4.0.0 - 4.0.4 source files?
Mike
--
PHP General Mailing List (
With the hope that someone at php.net is listening...
I understand you want to track how many downloads you've got, etc. but
can you make the download more direct somehow? I can't do a wget
against
the php.net site to download the latest version. :( I think it's the ?
in the
URL that gives me
Have you tried writing a wrapper function for mssql_query(), something like:
my_mssql_query( $query, $link_id){
global $php_errormsg;
ob_start();
$result = mssql_query( $query, $link_id );
if( !$result ){
$php_errormsg = ob_get_contents();
Does any body has some code samples on how to use PHP to generate PDF
document?
also any examples on how to use PHP to convert the text of Chinese
Traditional Big5
into Chinese Simplified GB?
Thank You very much!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
"Release Candidate"
elias wrote:
> as for the pl{x} notation, i ask what is the rc{x} notation ?
>
> ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
> 9a04gk$116$[EMAIL PROTECTED]">news:9a04gk$116$[EMAIL PROTECTED]...
> > Hi!
> >
> > Can anyone tell me what the difference with those
zeevFri Mar 30 07:04:19 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/pgsql pgsql.c
Log:
Fix pgsql_set_Default_link()
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.93.2.3 php4/ext/pgsql/pgsql.c:1.93.2.4
--- php4/ext/pgsql/pgs
Hi!
Can I use php to make a login system for users? I don´t have a databas
on my server. I only want to have a few users. When I send variables to
php the string is always cached by IE5.5 and it´s very easy to se the
username and password if you look i cache. Is there a way to get this
done only o
you could use flat files, another words store the user information in a text
file like below:
username|pass|email
bob|fgffsdg|[EMAIL PROTECTED]
foo|bar|[EMAIL PROTECTED]
and then just read and write the file with PHP.
Jon
- Original Message -
From: "Jan Grafström" <[EMAIL PROTECTED]>
You can do this:
require('acces.inc.php');
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && (
$PHP_AUTH_PW == "$st_PASSWORD" )) ) {
header("WWW-Authenticate: Basic entrer=\"Admin Basta\"");
header("HTTP/1.0 401 Unauthorized");
echo "Access in-autorizado...";
exit;
}
wh
there is a header function that can set the document to no chache so that
the browser will not cache it
""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in message
004301c0b934$d7ccb910$[EMAIL PROTECTED]">news:004301c0b934$d7ccb910$[EMAIL PROTECTED]...
> you could use flat files, another words store
try abrialite, is an application for install MySQL, Apache, PHP and Webmin
on a Linux machine, it's free..
luck...
Augusto Cesar Castoldi wrote:
> I'm just installed php4 and apache 1.3 on my linux.
>
> Apache with html files is working fine, but php isn't.
>
> The browser are showing the code.
www.abriasoft.com
luck...
Augusto Cesar Castoldi wrote:
> I'm just installed php4 and apache 1.3 on my linux.
>
> Apache with html files is working fine, but php isn't.
>
> The browser are showing the code.
>
> what I do?
>
> thanks,
>
> Augusto
>
> --
> PHP General Mailing List (http://www.php.
I had now found the problem. The website that have been in use for a
while work pretty well with IE and Netscape Navigator. Until NS6 came,
that's when the website start having some problem.
The website use the login page and any web pages after logging are
controlled by the security check.
Thank You Romeo!
This may be something I can use.
Regards
Jan
Romeo Manzur wrote:
> You can do this:
> require('acces.inc.php');
> if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && (
> $PHP_AUTH_PW == "$st_PASSWORD" )) ) {
> header("WWW-Authenticate: Basic entrer=\"Admin Bas
Correct me if I am wrong, but I thought that using IN needed to be followed
by a comma separated list (with each value individually separated from the
others) like this:
$query="DELETE FROM EmailAddress WHERE Email NOT IN ('value1', 'value2',
., 'value_n')" ;
if you want to use a comma sepa
Hello there,
There is a class at http://phpclasses.upperdesign.com/
Which can read an rtf file easily..i think this will help you
cheers
Viany
christian <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> just wondering is their a way to create word docs from
In a message dated 30/03/2001 17:59:52 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< Correct me if I am wrong, but I thought that using IN needed to be followed
by a comma separated list (with each value individually separated from the
others) like this:
$query="DELETE FROM EmailAddress W
> I need an older version of PHP because my pam_auth won't build with
> php-4.0.4pl1? With the redesign of the php site, I think they
> removed older
> source files. Can anyone confirm this, or does anyone know where
> I can get
> php-4.0.0 - 4.0.4 source files?
The files are no longer av
Hey!
I have just began to look at session, and I have some question.
When I have used session_register('item') and the user navigates further in
the site, how do I know what has been registered?
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote:
> HI all,
> how to compile php without function phpinfo enalbe. so if user call
> phpinfo() it would be false/error. i would like to build a free web
> server with php but i don't like if the user know what are the tools
> in my server 'cous
Hi,
I am trying to find some info on upgrading from php3 to php4.
I can't seem to find any docs about upgrading, just installing. Is this the same thing?
Do I have to re-compile apache just to go from php3 to php4?
Thanks,
Chris.
You might also be interested in Developers Pad
http://www.developerspad.com/
It's free and open source too ;-)
Regards,
- James
Editor, VB Web
==
Web - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ# - 60612011
==
> -Original Message-
> From: al
> > HI all,
> > how to compile php without function phpinfo enalbe. so if user call
> > phpinfo() it would be false/error. i would like to build a free web
> > server with php but i don't like if the user know what are the tools
> > in my server 'couse it's a free server.
> >
> > is it possible
You would probably check against an encrypted file though for more security.
> you could use flat files, another words store the user information in a
text
> file like below:
> username|pass|email
> bob|fgffsdg|[EMAIL PROTECTED]
> foo|bar|[EMAIL PROTECTED]
>
>
> and then just read and write the
avsmFri Mar 30 09:44:09 2001 EDT
Modified files:
/php4/ext/zlib zlib.c
Log:
Send the correct Vary headers, if we negotiate a gzip/deflate session
via Accept-Encoding. This obeys a SHOULD directive in RFC2616
PR: 10070
Index: php4/ext/zlib/zl
Actually, the "lite" only works with versions of Redhat lower than 7 (or
something like that).
The full version is only like 89 bux.
But it is an awesome product, only takes about 5 minutes to install and
works perfect.
Clayton Dukes
Download Free Essays, Term Papers and Cisco Training from htt
Would anyone know of, or could possibly supply, a HOW-TO for installing GD, with Jpeg
and freetype support for php, on a freebsd platform? I'm currently using apache 1.3.19
(just upgraded from 1.3.12), & php 4.0.4pl1 on FreeBSD Release 4.0.
I've been trying for 4 days now to get it working, it'
I have got chop to work for me to remove characters at the end of the
string using something like:
echo $listing_values1 = chop(substr($listing_values['name'],0,4);
echo $listing_values1 ['name'] . '...' . ' ' . "\n";
Works great except for the fact after the name there appears to be a l
hallo people
simply
i am using php 3.0.11 on IIS4
here is a problem
if I use
define ("Rights", "RIGHTS");
define ("rights", "RIGHTS");
end then
echo Rights ."-" . rights / / output : RIGHTS - rights
simply if i have constant Rights i cannot define a new one rights but if i
meke echo of rights i
i had a old manual localy , but now i have found it on net with optional
parametar , sorry
""almir"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9a2ksp$kkm$[EMAIL PROTECTED]">news:9a2ksp$kkm$[EMAIL PROTECTED]...
> hallo people
> simply
> i am using php 3.0.11 on IIS4
> here is a problem
> if I use
Candidates should have experience in PERL, PHP3 and Mysql.
Proficient in PHP programming, implementing relational databases and
E-Commerce with a Linux-Apache platform.
Strong problem resolution skills needed. Ability to prioritize workload and
meet deadlines effectively.
Availability: Immediate
just when I thought , nice I didn't know how does it work i found out that
it is not wroking anyhow if I put
define ("rights", "RIGHTS", X);
define ("Rights", "RIGHTS", X);
echo rights . "->" .defined("rights") ." " .Rights ."->"
.defined("Rights")."";
regardless of X i always get
RIGHTS->1 R
php-general Digest 30 Mar 2001 19:37:41 - Issue 598
Topics (messages 46238 through 46368):
Re: regex help...again
46238 by: elias
46284 by: Christian Reiniger
46299 by: elias
46324 by: Christian Reiniger
Array in Session-Vars?
46239 by: Thomas Häger
Is there a limit to the size of PHP scripts? I'm having a problem in which scriptA.php
is including() scriptB.php, which then requires() scriptC.php. The result is that PHP
itself dies. If I remove some code from scriptA.php to reduce the size of the script,
it works fine. (The code that I'm re
the PHP crypt function uses DES and it only generates a hash based on the
first 8 chars of a string, although it produces a 12-char hash. Md5 can hash
a string of indefinite length, but it produces a much longer hash (34 chars or
so).
I need something that can provide me with a 12-16 char hash o
If there is, I've not found it. I have many pages that include files that
contain class definitions. My average page includes 8 classes and my
average class is 250-400 lines of code.
Have you debugged your individual scripts first before including them in
other pages?
Cal
http://www.calevans.
I'm looking for a PHP mode for XEmacs and really miss c-mode. Do you know
of any packages for it?
Eric
> -Original Message-
> From: Phillip Bow [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 7:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Editor for Linux
>
>
> Read
I guess i have to do something along the lines of
1. cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4/distributions
or
2. cvs -d :pserver:[EMAIL PROTECTED]:/repository co distributions
With Number 1 above i get an error saying
cvs server: warning: new-born php4/distributions has disappear
I am interested in
finding out how to use TAB INDEX. I have a form that I would like to order the
sequence of field selection. The form consist of HTML with embedded PHP commands
that retrieve data from a database to auto populate (or provide) drop down list
boxes for the form. Is the
Greetings!
I have been working on a project that will, in part, use XML to store the
user list and personal info of the application's users.
Here is the general look of a single user node (a single xml file contains n
users)=
site1.com
John Doe
[EMAIL PROTECTED]
100
When
I get the same results as you using PHP4. I can't explain this, since
constants are supposed to be case sensitive by default. They sure don't act
like they are. Looks like a bug to me.
Kirk
> -Original Message-
> From: almir [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 12:44
I have no money, but is someone willing to provide
php-4.0.3pl1.tar.gz or just anything < 4.0.4pl1 and > 4.0.0. Please just
email if possible.
Mike
-Original Message-
From: Krznaric Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 3:03 PM
To: 'James Moore'; '[EMAI
On Fri, 30 Mar 2001, Martin Cabrera Diaubalick wrote:
> Hi there!
>
> I use bluefish for HTML and PHP coding, but I'm not too happy with it. Do
> you know a good PHP Editor for Linux, besides Emacs and xjed...?
I use Quanta+. I was moving from Bluefish to this. And I like it.
But it use KDE lib
i did it for linux.
basically, what i did was to get GD and the other
libraries, 'configure' and 'make' them all
then, go into the PHP directory and tell PHP's
configure script where GD and such reside:
ex: ./configure --with-gd-dir=../gd-1.8.4/ --with-jpeg-dir=../jpeg-6b/
somthing similar to
You can specify taborder by inserting a tabindex attribute into your input
tags
In this example tabing order would be 1, 3, 2
There's also an Internet Explorer only attribute called notab
Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084
http://www.datadrivendesign.com
http://ww
did you compile apache yourself?
try compiling apache yourself and then compiling
PHP as a stanalone-CGI (as opposed to server module)
and see if that helps any of your prob's.
> -Original Message-
> From: Louis Grenzebach [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 11:5
In article <[EMAIL PROTECTED]> you write:
> I have no money, but is someone willing to provide
>php-4.0.3pl1.tar.gz or just anything < 4.0.4pl1 and > 4.0.0. Please just
>email if possible.
http://www.adhesivemedia.com/~philip/php-4.0.2.tar.gz
It will stay there for awhile (ie. until I cle
ohrnFri Mar 30 12:36:19 2001 EDT
Modified files:
/php4/ext/cpdf cpdf.c php_cpdf.h
Log:
Implemented cpdf_set_viewer_preferences (previously a stub).
Added new functions: cpdf_set_font_directories and cpdf_set_font_map_file.
Index: php4/ext/cpdf/cpd
How can I get my PHP/MySQL to recognize dates that are on daylight
savings time?
I have a mysql table with a date field (today would be 2001-03-30).
I convert a date into a unix timetamp using
$thisdaysec=mktime($somedate);
Then, to find a particular date in the database I run a query:
SELEC
Hi ,
My copmany have a website and is hosted on a web server of some web hosting
company .
I want to use PHP to send e-mail on that server .
I use
$result = mail("[EMAIL PROTECTED]" , "E-mail Test" , "this e-mail is sent by php")
;
to do it .
But when I receive the e-mail , the SENDER 's addre
Hello,
I am trying to get php to run on my Apache Redhat server.When I run it I
just get internal server error. This is the error that I get in my error
logs after running my script:
(8)Exec format error???
thanks for any help,
Brandon
--
PHP General Mailing List (http://www.php.net/)
T
When I use this script
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
Next, I browse around and go back one page, the cache does n
You can always add a "From: [EMAIL PROTECTED]" to the fourth field
which includes additional email headers.
However, the real solution is for your provider to fix their setup to change
the address to a proper one as the mail moves through and leaves their
system.
John
> -Original Message---
At 04:03 PM 3/30/01 -0500, Scott Fletcher wrote:
>When I use this script
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
### oops, don't forget to escape these! ^ ^
> header("Cache-Control: no-cach
Hi All,
Is loading a dynamic module (such as php_curl.dll) available only to PHP
in the CGI flavour or can this be done with the apache php module?
I dont seem to be able to make this work on my win32 setup although I
will soon be migrating to a Red Hat linux.
Thanks,
Dave
--
PHP General Mai
The script I'm calling (member.php) is 41K bytes (1,200 lines)
It includes() global.php, which is 8K bytes (300 lines).
That in turn requires() sessions.php, which is 13K bytes (370 lines).
That makes a total code size at execution of about 62K bytes (1,870 lines).
If I just remove some unused c
Is there any reason why I shouldn't run php3 and php4 on the same server?
I have php3 using .php3 files and php4 using .php .phtml and .php4 files.
Thanks,
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
To reiterate Cal's statement, we've not had issues with PHP size, other than speed.
HUGE scripts take longer to compile and parse, but overall we've been fine. I've
got scripts that are in excess of 1500 lines, which also include templates and other
classes, which would often put the combined fil
I have scripts over 150KB running just fine. Maybe it's your execution time
that is too long, try raising it in php.ini and up it from 30 seconds.
- Original Message -
From: "Wally Hartshorn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 4
In an effort to automate things a bit I would like to allow users to
mail a CSV file to a specific address for processing by a PHP script. I
am running RH 7.0, sendmail 8.11 and I am thinking I could use procmail
(im running ver 3.14) recipe to extract from/subject for use in the
script as
> I'm having difficulties with that line:
>
> ./configure --with-openlink=/path/to/openlink/
> --with-iodbc=/path/to/iodbc/
so I've tried every combination I can think of related to "iodbc" and
"openlink", and none of these are compiling. Every one results in "No such
file or director
Dear PHP Helpers,
Can you direct me to a solution for this problem:
How can I eliminate bad (blank or incorrect) fields
from a mysql query? In other words, if someone leaves
a form field blank or enters a value that does not
have a matching entry in the database, how can I
eliminate that variabl
Hi,
I have a question about security with PHP. I'm building a site with PHP
and some of the scripts connect to MySQL. All someone needs to do to get
my MySQL passwords is view the PHP source, right? And the recommended
approach around this is to use Zend, right?
Please correct me if I'm off b
you can put you database connection
in a file below the web root
and include it into the script.
that way it isn't visible in the source.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Origi
Les Neste wrote:
> Hi,
>
> I have a question about security with PHP. I'm building a site with PHP
> and some of the scripts connect to MySQL. All someone needs to do to get
> my MySQL passwords is view the PHP source, right? And the recommended
> approach around this is to use Zend, right?
well, besides the fact that your code is interpreted
and the only data that makes it to the browser is
what you decide to output (or error message, but they
can be turned off/silenced)
i dont see how a surfer could get your PHP source code
via the webserver.
> -Original Message-
> From:
You might check to see if there is some kind of endless loop, it's not like
PHP to just die without a reason. Looks like you got plenty of hardware
there, so it must be your code... ;)
> -Original Message-
> From: Wally Hartshorn [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001
Okay, frustration time under RH7...
I am trying to recompile PHP for use with Oracle. (If you are saying to
yourself, "but Oracle does not work under RH7." then don't go
there. It does but it takes a significant amount of work.)
I have done this before under RH6.2 and it did the same t
Daevid,
It's the path/to/odbcsdk
It's looking for libiodbc.so
:)
Best regards,
Andrew
--
Andrew Hill - OpenLink Software
Director Technology Evangelism
eBusiness Infrastructure Technology
http://www.openlinksw.com
> -Original Message-
> From: Daevid
thanks for replying Andrew, but that's not working for me either.
Also, do I need both "--with-iodbc" and "--with-openlink" or do I just need
one of them?
These are the instructions I've been following:
http://www.iodbc.org/odbc-phpHOWTO.html
so now I've tried:
#--with-iodbc=/
Daevid,
just --with-iodbc or --with-openlink is fine.
you should be using either:
--with-iodbc=/usr/local/openlink/odbcsdk \
or
--with-openlink=/usr/local/openlink/lib \
depending on which you use and where you installed the sdk.
what error are you getting?
Best regards,
Andrew
On 3/30/01 6
Jon Jacob wrote:
> Okay, frustration time under RH7...
>
> I am trying to recompile PHP for use with Oracle. (If you are saying to
> yourself, "but Oracle does not work under RH7." then don't go
> there. It does but it takes a significant amount of work.)
>
> I have done this before und
HTTP_REFERER is set by browser. I treat HTTP_REFERER header as user input, so I
don't trust it. Using HTTP_REFERER can open security hole in your web site.
I suggest to change your authentication code, so that you don't rely on
HTTP_REFERER.
Regards,
--
Yasuo Ohgaki
""Scott Fletcher"" <[EMAIL P
has anyone had trouble compiling PHP and GD on a linux/redhat
machine?? (what baffles me the most is that it compiled
flawlessly on another, almost identical, machine)
could anyone offer suggestions or hints, or perhaps
suggest a good website/discussion/archive that
might address GD-PHP compilati
hey scott,
i compiled php and gd on my redhat 6.2 box a couple weeks ago..took a
little tweaking to make sure i had jpeg installed right, etc, but in the
end its working well...what was your error? maybe that'll shed some
light...
-jack
- Original Message -
From: "..s.c.o.t.t.. [gts
> $p_arr=array("000","050","100");
> $fc_arr=array("high","med","low");
> $ptext_arr("High","Medium","Low");
> for($x=0;$x { $pstr.=" if($priority==$p_arr[$x])
> {
> $pstr.="selected";
> $fcol=$fc_arr[$x];
> }
> $pstr.=">$ptext_arr[$x]\n";
> }
Even better! This l
Does anyone know of a way to stop the user from refreshing a page several
times.
i.e if I add a value to a database using a form and PHP, I don't want the
user to be able to simply press refresh and add the value to the database
again.
Please help,
Dvaid.
---
Fed202 Solution
Thanks for the code. Its not doing exactly what I want, but with a little
modification is is kind of working.
The one problem is that it is putting the Title first and the catagory
second. so it is coming up with:
title1
title2
catagory
title3
title4
catagory1
and the last catagory is droping of
I want to parse a file with the following syntax.
hostname|protocol|number|severity|description
Each record is on it's own line and have the fields delimited by the pipe
character |. The file may have thousands of records and I would like to
bring them into a database for reporting.
Some of you
check the archives...you can use javascript or perform a check off the
data to be inserted to see if its already there...
-jack
David Hynes wrote:
>
> Does anyone know of a way to stop the user from refreshing a page several
> times.
>
> i.e if I add a value to a database using a form and PHP,
Hi Patrick,
@ 9:04:59 PM on 3/30/2001, Patrick Brown wrote:
...
> hostname|protocol|number|severity|description
> Each record is on it's own line and have the fields delimited by the pipe
> character |. The file may have thousands of records and I would like to
> bring them into a database for
Pat,
You could read the file into an array;
$aryNessus = file("/pathtofile/filename", "r");
Each row of the array then has one line from the file;
Get the record count;
$intNumRecs = count($aryNessus);
Now read through the array and extract the values;
for($i=0;$i<=$intNumRecs;$i++) {
$ar
I benched function with and without reference for a relatively large data
(512KB, I think).
I iterated 10,000 or 100,000 times to see the difference. (I posted the result
in this list)
The result is almost the same and should not be worried much about performance,
but function without reference w
Thanks Chris,
That worked great. I didn't know that a file could be read directly into an
array.
--Pat
"Chris Fry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Pat,
>
> You could read the file into an array;
>
> $aryNessus = file("/pathtofile/filename", "r
hi
i have a table named "refer"
I wanna duplicate a table name "refer2" so that i can mess around with it.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
Sorry for the newbie level questions, but I am having more weird install
problems. Its just been so long since I did all this installing crap I
guess I forgot a couple of things..
I have recompiled Apache and PHP according to the instructions in the
INSTALL doc, but when I run it now the doc
> Does anyone know of a way to stop the user from refreshing a page several
> times.
>
> i.e if I add a value to a database using a form and PHP, I don't want the
> user to be able to simply press refresh and add the value to the database
> again.
>
> Please help,
> Dvaid.
Many methods exist,
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Jacob
> Sent: Friday, March 30, 2001 9:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] More questions about installing.
>
>
> Sorry for the newbie level questions, but I am having more weird inst
In article <9a3fme$4hg$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("McShen") wrote:
> i have a table named "refer"
> I wanna duplicate a table name "refer2" so that i can mess around with it.
Have you checked the manual for your DBMS? Something like "create table
refer2 select * from refer" should
Thanks for the code...
I got it to do what I wanted, by modifying it to this
$result = mysql_query ("SELECT * from article ORDER BY catagory");
$temp = "";
while ($r = mysql_fetch_array($result))
{
if (empty($temp)) // will be fired only once!
{
$temp = $r["catagory"]; // get category
Greg Donald wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Jacob
> > Sent: Friday, March 30, 2001 9:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] More questions about installing.
> >
> >
> > Sorry for the newbie level question
If I understand what you are looking for, this should work for you:
$indent_str = ' ';
$qry = 'SELECT * FROM test ORDER BY category';
$result = mysql_query($qry);
$current_category = "";
while ($r = mysql_fetch_array($result)){
if ($r['category'] <> $current_category){
If you don't have errata in your script.
I think you got similar experience as I did. I use PHP4.0.4pl1/Apache DSO/Linux
I had a script that will not include files more than 20. PHP silently fails to
include statement like and no output on browser what so ever.
Note: PHP can include files more th
> Ah, but there my friend is the rub. I did put that in.
>
> .And, all the conditions for the modules are there and
> specifically the
> module for php4 is present and the conditional is there. I tried
> putting the
> line above in the wide open (outside a conditional) but that made narr
101 - 200 of 210 matches
Mail list logo