php-general Digest 10 Aug 2002 19:17:09 -0000 Issue 1517
Topics (messages 111932 through 111970):
Re: Problem with output buffering in PHP 4.0.6 and Apache/1.3.20
111932 by: Lars Olsson
How to create basic LOGIN procedure
111933 by: Kristoffer Strom
111940 by: Justin French
111950 by: Kristoffer Strom
cgi error
111934 by: radio x
and this is the script
111935 by: radio x
Re: mysql_result
111936 by: Marcel Besancon
Re: E-commerce site issue?
111937 by: Justin French
Re: Sending automatically mail
111938 by: Justin French
Re: special characters
111939 by: Justin French
Shelling out to Aspell: Linux gurus please
111941 by: Geoff Caplan
PHP Errors - someone please take a look
111942 by: Christopher J. Crane
classes and references in session
111943 by: gianpaolo racca
Re: Pictures and sound in MySQL and access via PHP
111944 by: danny
Re: security concern with curl
111945 by: Daniel Tryba
111946 by: andy
HTTP authentication - de authentication
111947 by: vic
111951 by: Matt
Re: Thumb nail of a web page
111948 by: Julio Nobrega
Save ability... Duplicate DB entries
111949 by: JJ Harrison
111953 by: DL Neil
111963 by: Mark Charette
PHP form port
111952 by: Daniel Guerrier
111954 by: Matt
111956 by: John Wards
111959 by: Matt
Re: Two version of php in the same system
111955 by: Analysis & Solutions
111958 by: Breno Cardoso Perucchi
Newbie question about UNIX command-line directives
111957 by: Al
is this possible ...
111960 by: M.E. Suliman
111967 by: Julio Nobrega
records in db
111961 by: Tyler Durdin
weird urls
111962 by: XoXGrimreaper.netscape.net
111964 by: Chris Knipe
111965 by: César Aracena
111966 by: Julio Nobrega
checkbox => POST => array??
111968 by: PeterV
111970 by: Jason Stechschulte
Re: Win PHP Editor...
111969 by: Randy Johnson
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Ing.Martin prášek wrote:
> Hi..
> I have found a strange problem. I try to use php output buffering, but I found this
>problem.
> Working with small amount of data everything is fine. But If I set example script
>like this:
>
> <?
>
> function callback($buffer)
> {
> return do_something_with($buffer);
> }
>
>
> ob_start("callback")
> .
> .
>
> do_something_that_produce_big_output() // more than 1.5 MB
> .
> .
> .
> ob_end_flush();
>
> ?>
>
> Everything works fine when $buffer < approx 1.5 Mb, but if the size of the output,
>that need to be bufered exceeded some strange limit aprox 1593400 bytes, buffer is
>cut to that length and rest of the output is lost(!). I look in docs and manuals,
>but found nothing about it. Is it posssible to set large size for the output
>buffering operations or this strange limit is hard coded and cant be exceeded ??? I
>try to play with PHP.INI or add swapspace and DIMs memory with no effect..... Please
>help.
>
>
> ---
> Odchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.381 / Virová báze: 214 - datum vydání: 2.8.2002
Hi!
I don't think that should be considered a problem for PHP output
buffering. Du you know ANY user that would that would wait for a 1.5MB
page to display? And if you're transferring large binary files to the
browser (a LARGE bitmap for example) you could get around this problem
by doing
1. Open the file
2. Read a reasonable amount of data (say, 100000 bytes)
3. use ob_flush to sende the data to the browser
4. Repeat step 2 and 3 until all of file is read
5. Use ob_end_flush to send the rest of the buffer
6. Close the file
Hope this helps
/lasso ([EMAIL PROTECTED])
--- End Message ---
--- Begin Message ---
This PHP stuff is still pretty new to me (still prefer IBM's NetData), so I
need help to create a login procedure for a website.
The point being to make sure only authenticated people can access the admin
pages and post/edit news items and stuff. Should be simple, huh?
Anyways, the three objectives are:
1. Login that checks the username and password with a user defined table in
a MySQL database. Not actual authentication for the database!
2. Store the username and load the e-mail for that user from that table and
store them both as a session variable.
3. Make sure that none of the pages in that directory works unless you're
athenticated
Help? Is there some ready function for all of this that I haven't found?
So far I've only run across the actual database authentication, but I don't
wanna add users to the database.
/Kristoffer (from www.NataliePortman.com)
--- End Message ---
--- Begin Message ---
Check out Kevin Yank's article "restricting page access with php & mysql"
(or something like that!) on webmasterbase.com / sitepoint.com.
Justin French
on 10/08/02 7:19 PM, Kristoffer Strom ([EMAIL PROTECTED]) wrote:
> This PHP stuff is still pretty new to me (still prefer IBM's NetData), so I
> need help to create a login procedure for a website.
> The point being to make sure only authenticated people can access the admin
> pages and post/edit news items and stuff. Should be simple, huh?
>
> Anyways, the three objectives are:
> 1. Login that checks the username and password with a user defined table in
> a MySQL database. Not actual authentication for the database!
> 2. Store the username and load the e-mail for that user from that table and
> store them both as a session variable.
> 3. Make sure that none of the pages in that directory works unless you're
> athenticated
>
> Help? Is there some ready function for all of this that I haven't found?
> So far I've only run across the actual database authentication, but I don't
> wanna add users to the database.
>
> /Kristoffer (from www.NataliePortman.com)
>
>
--- End Message ---
--- Begin Message ---
Found it:
http://www.webmasterbase.com/article/319/95
Thanx!
One more problem, then we're ready to go....
/Kris
> Check out Kevin Yank's article "restricting page access with php & mysql"
> (or something like that!) on webmasterbase.com / sitepoint.com.
>
> Justin French
>
> on 10/08/02 7:19 PM, Kristoffer Strom ([EMAIL PROTECTED]) wrote:
>
> > This PHP stuff is still pretty new to me (still prefer IBM's NetData),
so I
> > need help to create a login procedure for a website.
> > The point being to make sure only authenticated people can access the
admin
> > pages and post/edit news items and stuff. Should be simple, huh?
> >
> > Anyways, the three objectives are:
> > 1. Login that checks the username and password with a user defined table
in
> > a MySQL database. Not actual authentication for the database!
> > 2. Store the username and load the e-mail for that user from that table
and
> > store them both as a session variable.
> > 3. Make sure that none of the pages in that directory works unless
you're
> > athenticated
> >
> > Help? Is there some ready function for all of this that I haven't found?
> > So far I've only run across the actual database authentication, but I
don't
> > wanna add users to the database.
> >
> > /Kristoffer (from www.NataliePortman.com)
--- End Message ---
--- Begin Message ---
I receive this when I try to send an e-mail.
All works fine until yesterday and my script is the same.
Could u tell what is the problem?
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP
headers. The headers it did return are:
--- End Message ---
--- Begin Message ---
$fp = fopen("msg1.dat", "r");
while (!feof($fp))
{
$data = fgetcsv ($fp, 4096, ":");
$subiect_email="Important to all my users!!!";
$design="<html>
<head>
<title>blaaaaa</title>
</head>
<body><br>bla....blaaa";
@mail ($data[4],$subiect_email, $design, "From: [EMAIL PROTECTED]\n");
}
fclose ($fp);
--- End Message ---
--- Begin Message ---
Hi Sascha,
just use the modulus-operator (%).
It's the best way.
Bye Marcel
--
registered Fli4l-User #00000388
Answer to the newsgroup please ........
"Sascha Braun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c23f29$760a22e0$a48a07d5@billsgate">news:001201c23f29$760a22e0$a48a07d5@billsgate...
I need some help!
I am getting a result out of my link Database an want it to Display the
result in two
collums like this:
+---------------------+--------------------+
+ Result 1 + Result 2 +
+---------------------+--------------------+
+Result 3 + Result 4 +
+---------------------+--------------------+
and so on please help!
Thanx
--- End Message ---
--- Begin Message ---
on 10/08/02 12:05 AM, The Gabster ([EMAIL PROTECTED]) wrote:
> Thanks a lot...
> Hmm... I gues for the beginning I would go and process the purchases
> manually. Later on if the purchases increase, than I would opt for
> proccesing credit cards via the server.
So initially you would just store/transmit the credit cards securely (a
whole other can of worms!!), and process them manually offline. I'd
recommend this for any start-up e-commerce site, because it cuts down some
development, start up costs and saves the margins that an online credit-card
merchant takes.
When and if you decide to automate the credit card process (authorising and
charging the card), it's done through a merchant. This will totally depend
on your circumstances and budget, but you basically pass the details to a
third party that specialises in this stuff, like authorise.net (and hundreds
of other similar business'), a bank or financial institution etc etc.
All of them will have different procedures and code, but you basically pass
them the details, they pass back a "success" or "failure", charge the credit
card, take their % cut (everything from a flat fee like $1, through to 3% or
5%), and pass on the rest to you.
There are further options above and beyond this, but they'd be out of
reach/budget of almost any small-medium e-comm site.
--- End Message ---
--- Begin Message ---
Depending on your OS, you would set up some sort of cron job to run at
certain intervals.
If that can't be done, Windows-type OS' can run a schedule to launch URLs
into browser, so if your desktop machine was on at the time, it could launch
a URL on the server which sends the emails for you...
if you can set up a cron with your host, that'd be the way to go.
Justin French
on 10/08/02 3:03 AM, Jan Souman ([EMAIL PROTECTED]) wrote:
> I would like my php-script to send a mail every day automatically, without
> anyone opening my site.
>
> Is this possible and if yes can anyone tell how to do this?
>
> Kind regards,
>
> Jan
>
>
--- End Message ---
--- Begin Message ---
Have a look at htmlspecialchars() as well.
If these don't meet your needs, you might have to start building your own
function to extend what htmlspecialchars() and htmlentities() do.
Justin French
on 10/08/02 4:58 AM, Jeb A. Scarbrough (home) ([EMAIL PROTECTED])
wrote:
> Is there a way to have PHP to either:
>
> a) strip out any non-standard ascii characters (like the TM or copyright
> symbol)
>
> b) have PHP encode all these symbols.
>
> I know about htmlentities, but it not catch everything.
>
> Thanks!
>
--- End Message ---
--- Begin Message ---
Hi folks
There is a lot on the web suggesting that the PHP pspell functions are
buggy.
So I am trying to use aspell to check single words by shelling out of
PHP using backticks via the bash shell on Linux. The problem is that
this is a two stage process. First, you launch aspell with "aspell
-a". Aspell then returns an identification message, and waits for a
word to be supplied from standard input. For each misspelled word, it
returns a delimited string of suggestions. But my *nix skills are
limited and I can't figure out how to send the word in the second
command using the backticked string.
The aspell manual page for the -a option is here:
http://aspell.net/aspell-man/6_Writing.html#SECTION00720000000000000000
Also, how to ensure that I don't create orphan aspell processes if for
some reason the request is interrupted?
I know that this is a bit OT and more of a Unix question that a PHP
question, but I am under time pressure and any tips would be much
appreciated.
--
Geoff Caplan
Advantae Ltd
mailto:[EMAIL PROTECTED]
http://www.advantae.com
--- End Message ---
--- Begin Message ---
I get the following errors when I run my script. It works fine with only 20
records, but at 100 I get errors.
"PHP has encountered an Access Violation at 00DA088E Warning: Unknown list
entry type in request shutdown (2) in
c:\www\htdocs\demos\ct.org\directory.php on line 0"
or
"PHP has encountered an Access Violation at 00DA088E "
Basically, I have a CSV file with about 3500 records (lines). I have a while
statement that goes through the file line by line. I am using fgetcsv().
While on a line I also open another file and search for a matching field
(CustomerID) and if it matches print the information on that line unless a
field in that file is set to "1".
This was initially tried using a query since this data is in a database.
That did not work. I exported the data into csv files. It worked in testing
limiting the amount of records to be displayed to less than 30. I just tried
it with limit set to 100 and that's when I got the problem.
Here is the code;
<?PHP
/* INFORMATION:
__ __
__/_/________________________________________\_\__
__|_ _|__
(___O) (O___)
(_____O) Christopher J. Crane (O_____)
(_____O) Web Designer (O_____)
(__O) I N X D E S I G N (O__)
| http://inxdesign.com |
| [EMAIL PROTECTED] |
| |
|__________________________________________________|
This script was created to help prepare the directory information, for the
Connecticut Technical Council for the Year 2002.
My Material - Please do not copy or modify it with checking with me first.
([EMAIL PROTECTED])
Please leave the INFORMATION banner in place.
*/
file://==Global Definitions
file://====================
define('SCRIPT_NAME', 'Connecticut Technology Council Directory Maker');
define('SCRIPT_VERSION', 'v1.0');
define('SCRIPT_CREATOR', '<a href="mailto:[EMAIL PROTECTED]">Christopher
J. Crane</a>');
define('CREATE_DATE', '08/06/02');
define('REVISED_DATE', '08/06/02');
$TestingMode = "On"; file://On or Off
$ShowCount = "10";
$row = 0;
print "<a name\"Top\"></a><b>Company Directory 2002</b><br>";
print "T e s t i n g M o d e - ";
if($TestingMode == "On") { print "On<br>Only Showing The First $ShowCount
Records.\n"; }
else { print "Off\n"; }
print "<a href=\"#end\">End</a>";
print "<hr align=\"left\" width=\"400\" hieght=1 noborder>\n";
file://==C o m p a n y D a t a O u t p u t
file://=======================================
$Data1 = fopen("Final.csv","r");
while ($Line1 = fgetcsv($Data1, 1000, ",")) {
$CompanyID = $Line1[0]; $CompanyName = $Line1[1]; $MemberTypeID =
$Line1[2];
$RevenueID = $Line1[3]; $Ownership = $Line1[4]; $NoPubRevenue =
$Line1[5];
$YearEstablished = $Line1[6]; $Exchange = $Line1[7]; $TotalEmployees =
$Line1[8];
$ConnEmployees = $Line1[9]; $Ticker = $Line1[10]; $Email = $Line1[11];
$Website = $Line1[12]; $IndustryID = $Line1[13]; $AddressTypeID =
$Line1[14];
$AddressLine1 = $Line1[15]; $AddressLine2 = $Line1[16]; $City =
$Line1[17];
$State = $Line1[18]; $Zip = $Line1[19]; $CountyName = $Line1[20];
$Profile = $Line1[21];
if($row != 0) {
print " <font size=4><b>$CompanyName</b></font><br>\n";
if($AddressLine1 != "") { print "$AddressLine1<br>\n"; }
if($AddressLine2 != "") { print "$AddressLine2<br>\n"; }
print "$City, $State $Zip<br>\n";
file://==P h o n e D a t a O u t p u t
file://===================================
$Data2 = fopen("PhoneTable.csv","r");
while ($Line2 = fgetcsv ($Data2, 1000, ",")) {
$CompanyID2 = $Line2[0]; $PhoneType = $Line2[1]; $AreaCode = $Line2[2];
$Prefix = $Line2[3]; $Suffix = $Line2[4];
if($CompanyID2 == $CompanyID) {
if($PhoneType == "Office") {
print "<b>Phone:
</b>($AreaCode)$Prefix-$Suffix "; }
}
}
fclose($Data2);
file://==F a x D a t a O u t p u t
file://===================================
$Data3 = fopen("PhoneTable.csv","r");
while ($Line3 = fgetcsv ($Data3, 1000, ",")) {
$CompanyID3 = $Line3[0]; $PhoneType = $Line3[1]; $AreaCode = $Line3[2];
$Prefix = $Line3[3]; $Suffix = $Line3[4];
if($CompanyID3 == $CompanyID) {
if($PhoneType == "FAX") {
print "<b>Fax:
</b>($AreaCode)$Prefix-$Suffix "; }
}
}
fclose($Data3);
print "<br>";
file://==W e b s i t e / E m a i l D a t a O u t p u t
file://==================================================
if(($Website != "") || ($Email != "[EMAIL PROTECTED]")) {
if($Website != "") { print "<b>Website: </b>$Website<br>\n"; }
if($Email != "[EMAIL PROTECTED]") { print "<b>E-Mail: </b>$Email<br>\n"; }
}
file://==O w n e r s h i p D a t a O u t p u t
file://===========================================
print "<b>Ownership: </b>";
if($Ownership == "1") { print "Private "; }
if($Ownership == "2") {
print "Public ";
if(!($Exchange == "OTHER" or $Exchange == "")) { print "($Exchange:
$Ticker) "; }
}
if($YearEstablished != "0") { print "<b>Est. </b>$YearEstablished"; }
print "<br>";
file://==E m p l o y e e D a t a O u t p u t
file://=========================================
print "<b>CT Emp: </b>";
if(($ConnEmployees >= 1) && ($ConnEmployees <= 9)) { print
"1-9 "; }
elseif(($ConnEmployees >= 10) && ($ConnEmployees <= 50)) { print
"10-50 "; }
elseif(($ConnEmployees >= 51) && ($ConnEmployees <= 100)) { print
"51-100 "; }
elseif(($ConnEmployees >= 101) && ($ConnEmployees <= 250)) { print
"101-250 "; }
elseif(($ConnEmployees >= 251) && ($ConnEmployees <= 500)) { print
"251-500 "; }
elseif($ConnEmployees >= 501) { print
"500+ "; }
if(($TotalEmployees >= 1) && ($TotalEmployees <= 50)) { print "<b>Tot Emp:
</b>1-50"; }
elseif(($TotalEmployees >= 51) && ($TotalEmployees <= 100)) { print "<b>Tot
Emp: </b>51-100"; }
elseif(($TotalEmployees >= 101) && ($TotalEmployees <= 500)) { print
"<b>Tot Emp: </b>101-500"; }
elseif($TotalEmployees >= 501) { print
"500+ "; }
print "<br>";
file://==R e v e n u e D a t a O u t p u t
file://=======================================
if($NoPubRevenue == 0) {
print "<b>Annual Revenue: </b>";
if($RevenueID == 1) { print "under 1 Million"; }
elseif($RevenueID == 2) { print "under 1 Million"; }
elseif($RevenueID == 3) { print "1-10 Million"; }
elseif($RevenueID == 4) { print "10-50 Million"; }
elseif($RevenueID == 5) { print "50-100 Million"; }
elseif($RevenueID == 6) { print "100-500 Million"; }
elseif($RevenueID == 7) { print "500 Million - 1 Billion"; }
elseif($RevenueID == 8) { print "1+ Billion"; }
else { print "NotAvailable"; }
print "<br>\n";
}
file://==I n d u s t r y D a t a O u t p u t
file://=======================================
print "<b>Industry: </b>";
if($IndustryID == 1) { print "Aircraft and Parts"; }
elseif($IndustryID == 1) { print "Aircraft and Parts"; }
elseif($IndustryID == 3) { print "Electronics and Components"; }
elseif($IndustryID == 4) { print "Electrical Equipment"; }
elseif($IndustryID == 5) { print "Other"; }
elseif($IndustryID == 6) { print "Measuring & Control Devices"; }
elseif($IndustryID == 7) { print "Medical Instruments"; }
elseif($IndustryID == 11) { print "Photonics/Optics/Imaging"; }
elseif($IndustryID == 12) { print "Advanced Materials and Chemicals"; }
elseif($IndustryID == 13) { print "Industrial Machinery and Appliances"; }
elseif($IndustryID == 14) { print "Application Integration & Middleware"; }
elseif($IndustryID == 15) { print "Application Software Development"; }
elseif($IndustryID == 16) { print "Application Service Provider"; }
elseif($IndustryID == 17) { print "Collaborative Commerce/Market Places"; }
elseif($IndustryID == 18) { print "IT Hosting/Infrastructure Mgmt"; }
elseif($IndustryID == 19) { print "Computer Office & Equipment"; }
elseif($IndustryID == 20) { print "Programming, Custom Dev., Professional
Services"; }
elseif($IndustryID == 22) { print "Multi-media, Online Marketing"; }
elseif($IndustryID == 23) { print "Customer Relationship Management"; }
elseif($IndustryID == 25) { print "Hardware and Devices"; }
elseif($IndustryID == 26) { print "Information Storage, Retrieval,
Security"; }
elseif($IndustryID == 28) { print "Prepackaged Software"; }
elseif($IndustryID == 29) { print "Retail and Information Services"; }
elseif($IndustryID == 30) { print "IT Consulting and Systems Design"; }
elseif($IndustryID == 31) { print "Safety Products"; }
elseif($IndustryID == 32) { print "Web Site Design"; }
elseif($IndustryID == 33) { print "Biotechnology"; }
elseif($IndustryID == 34) { print "Drugs/Pharmaceutical"; }
elseif($IndustryID == 35) { print "Research and Testing"; }
elseif($IndustryID == 36) { print "Cable, Communications Equip, Phone
Systems"; }
elseif($IndustryID == 37) { print "HR, Search, Training"; }
elseif($IndustryID == 38) { print "Internet Service Provider"; }
elseif($IndustryID == 39) { print "Wireless and Mobile"; }
elseif($IndustryID == 40) { print "Communications Services"; }
elseif($IndustryID == 41) { print "Business/Strategy Consulting"; }
elseif($IndustryID == 42) { print "Legal"; }
elseif($IndustryID == 43) { print "PR/Marketing"; }
elseif($IndustryID == 44) { print "Finance and Accounting"; }
elseif($IndustryID == 45) { print "Financial Services"; }
elseif($IndustryID == 46) { print "NFP, Association, State Agency"; }
elseif($IndustryID == 47) { print "Engineering Services"; }
elseif($IndustryID == 48) { print "Academic"; }
elseif($IndustryID == 49) { print "Energy"; }
print "<br>\n";
file://==C o n t a c t D a t a O u t p u t
file://=======================================
print "<b>Management:</b><br>\n";
$Data4 = fopen("CompleteContact.csv","r");
while ($Line4 = fgetcsv ($Data4, 1000, ",")) {
$CompanyID4 = $Line4[0]; $FirstName = $Line4[1]; $LastName = $Line4[2];
$DisplayTitle = $Line4[3]; $NoPubcontact = $Line4[4];
if($CompanyID4 == $CompanyID) {
if($NoPubcontact == "0") { print "$FirstName $LastName,
<i>$DisplayTitle</i><br>\n"; }
}
}
fclose($Data4);
file://==P r o f i l e D a t a O u t p u t
file://=======================================
if($row != 0) {
if($Profile != "") { print "<b>Profile:</b><br>$Profile<br>\n"; }
}
file://==End of Loop!
file://=======================================
}
$row++;
print "<br>\n";
if($TestingMode == "On") { if($row == $ShowCount) { break; } }
}
fclose($Data1);
print "<pre>
===============
---- Done! ----
===============
</pre>
<b>Script Name:</b> " . SCRIPT_NAME . " " . SCRIPT_VERSION . "<br>\n
<b>Script Created By:</b> " . SCRIPT_CREATOR . "<br>\n
<b>Created On:</b> " . CREATE_DATE . "<br>\n
<b>Revised On:</b> " . REVISED_DATE . "\n";
print "<pre>
__ __
__/_/________________________________________\_\__
__|_ _|__
(___O) (O___)
(_____O) Christopher J. Crane (O_____)
(_____O) Web Designer (O_____)
(__O) I N X D E S I G N (O__)
| http://inxdesign.com |
| [EMAIL PROTECTED] |
| |
|__________________________________________________|
</pre><a name=\"End\"></a><a href=\"#Top\">Top</a>\n\n";
--- End Message ---
--- Begin Message ---
I have some unclear (to me) behaviour in using classes and references to
session.
I submit you this code:
<?php
//some dummy classes
class A{
var $score;
function A(){
$this->pippo = "pluto";
}
function echoname(){
echo (get_class($this)."\n");
}
}
class B {
var $score;
function B(){
//assigning by value cause istances
//to be istances of a (same of $_SESSION[recorded])
//but non reference is made, so it's a copy
$this = $_SESSION["recorded"];
}
function echoname(){
echo (get_class($this)."\n");
}
}
class C {
var $score;
function C(){
//assigning by reference cause istances
//to be istances of c and not the same of $_SESSION[recorded]
$this = &$_SESSION["recorded"];
}
function echoname(){
echo (get_class($this)."\n");
}
}
session_start();
//new object stored in session.
$_SESSION["recorded"] =& new A();
echo "<pre>";
echo "session[\"recorded\"] classname: ";
$_SESSION["recorded"]->echoname();
$_SESSION["recorded"]->score = 99;
echo "test_var classname: ";
$test_var = new B();
$test_var->echoname();
$test_var->score = 100;
echo "test_var2 classname: ";
$test_var2 = new C();
$test_var2->echoname();
$test_var2->score = 200;
print_r($test_var);
print_r($test_var2);
print_r($_SESSION);
echo "</pre>";
?>
This three classes ar equal, except in the constructor. The problem is
explained in the comments, but essentially is this:
How do I create an istance of a class that has is a reference to another
istance previuously stored in session?
During this day of coding I finally (I hope) wrote a test that explains what
I can't do.
I really appreciate any help.
gianpaolo
--- End Message ---
--- Begin Message ---
thank you,
If i understand the best way would be to place the MP3's in a seperate
directory and giving each MP3's a unique id? In the database every record
has already a unique idea. If i name my mp3 something like this: record
ID=10, name MP3 = MP3_10.mp3.
I already have about 200 little MP3's with the prononciation of the words in
a dictionary. Is there a way to automate this task? So changing the
original name of the MP3 ex.. "komen.mp3" in "MP3_10.mp3"?
Lallous <[EMAIL PROTECTED]> schreef in berichtnieuws
[EMAIL PROTECTED]
> Personally I wouldn't store BIG files (like .mp3) into the database.
>
> If you insist checkout the mysql LOAD_FILE()
>
> Elias
>
> "Danny" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > hi,
> >
> > I already posted this message but the time on my computer was wrong
(26/07
> > so i post it again).
> >
> > I am new on MySQL and PHP.
> > I'm making a on-line dictionary. I use PHP and a MySQL Database.
> > Now I want to add audio-streaming (MP3) and pictures (JPG) to the
database
> > and retrieve it true PHP. Can sombody help me out with a little
> > example-code?
> > The database is working well (only text).
> >
> > Danny
> >
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
On Fri, Aug 09, 2002 at 10:10:28PM +0200, Andy wrote:
[curl]
> So I fear that someone would be able to tranfer files on / off my server.
>
> Has anybody some experiance on that, or can give a comment on that?
Ehhh, PHP already has enough capabilities to transfer files to/from your
server from/to the rest of the world without using curl. Or are you
(healthy) paranoied about oasis?
--
Daniel Tryba
--- End Message ---
--- Begin Message ---
> > So I fear that someone would be able to tranfer files on / off my
server.
> >
> > Has anybody some experiance on that, or can give a comment on that?
>
> Ehhh, PHP already has enough capabilities to transfer files to/from your
> server from/to the rest of the world without using curl. Or are you
> (healthy) paranoied about oasis?
well it is just that I have to install an aditional pice of software and it
does something I am not familar with it.
All I want to know if this could be security issue and a reason not to
install oasis. How about oasis itself? This pease of SW will run on my
server and could do anything what php is allowed to do (maybe delete some
files or transfer them, open a gateway to some other user to take over my
server, send spam over my server and so on)
Are there any rummors about oasis, or is this a reputable software? Right
now I just know what the site is telling me.
Thanx for all your comments on that.
Andy
--- End Message ---
--- Begin Message ---
How does one logout from such an authentication? I know that through a
HTTP status code, but how exactly? Everything I tried allows the browser
to view the page info after "logout" if the user hits the back button.
The only way I found it works if the user closes the browser window, but
I can't make sure they do, so *how do I make sure they do?*
Is there a script to better de-autheticate from such an authentication
method, or to make the browser close the window?
// _______________ AUTHENTICATION SCRIPT _________________
$auth = false;
if (isset($PHP_AUTH_USER) && isset($PHP_AUTH_PW)) {
// Connect to MySQL
mysql_connect( 'xxx', 'xxx', 'xxx' )
or die ( 'Unable to connect to server.' );
// Select database on MySQL server
mysql_select_db( 'xxx' )
or die ( 'Unable to select database.' );
// Formulate the query
$sql = "SELECT * FROM xxx
WHERE user_id = '$PHP_AUTH_USER'
AND password = PASSWORD('$PHP_AUTH_PW')";
// Execute the query and put results in $result
$result = mysql_query( $sql )
or die ( 'Unable to execute query.' );
// Get number of rows in $result.
$num = mysql_numrows( $result );
// A matching row was found - the user is authenticated.
if ( $num != 0 ) {
$auth = true;
// End do the check
}
//____________STOP AUTHETICATION SCRIPT EXAMPLE ______________
//_____________ LOGOUT SCRIP EXAMPLE ____________________
// the "logout" link would look like:
//<a href="<?php echo($PHP_SELF);?>?logout=1">Logout</a>
if (isset($logout)) {
header('status: 401 Unauthorized');
header('WWW-Authenticate: Basic realm="Private"');
header('HTTP/1.0 403 Forbidden');
echo ('You have successfully logged out.');
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<?php
exit();
}
- Vic
______________________________________________________________________
Post your ad for free now! http://personals.yahoo.ca
--- End Message ---
--- Begin Message ---
>From: "vic" <[EMAIL PROTECTED]>
> Sent: Saturday, August 10, 2002 11:24 AM
>Subject: [PHP] HTTP authentication - de authentication
> How does one logout from such an authentication?
There's no way to logout. Use a session based authentication.
--- End Message ---
--- Begin Message ---
> This would be a major task. You would have to write a complete HTML
renderer
> in PHP.
Perhaps you can cheat and let other programs do all the work ;-)
Open a page with the browser and take a "screenshot", all using php's
exec(). Then trim the browser's border and toolbars using the gd module. The
problem is getting to know if (and how much) you need to scroll down to see
the rest of the content...
--
Julio Nobrega
Pode acessar:
http://www.inerciasensorial.com.br
"Jason Wong" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday 10 August 2002 05:03, Henry wrote:
> > Hi All,
> >
> > Just out of interest, does anyone know of a way to generate a thumb nail
of
> > a web page given a URL?
>
> This would be a major task. You would have to write a complete HTML
renderer
> in PHP. Maybe some clever soul could write a library that interfaces to
> Mozilla's gecko engine.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Nothing matters very much, and few things matter at all.
> -- Arthur Balfour
> */
>
--- End Message ---
--- Begin Message ---
i have this code snippet:
if(isset($_POST['save'])){
$query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].',
'.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\',
'.$_POST['cat'].', \''.$_POST['text'].'\', 0)';
$result = mysql_query($query) or die("Query failed: $query<br>" .
mysql_error());
echo 'you saved your work.';
} elseif(isset($_POST['pub'])) {
$query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].',
'.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\',
'.$_POST['cat'].', \''.nl2br($_POST['text']).'\', 0)';
echo 'you published your work.';
}
Which has a save or a publish option. I only want to keep one copy of each
article in the DB. This adds a new one each time. I know about updates in
SQL but the file may or may not already be in the db. Does anyone have a
good way to go about this?
--- End Message ---
--- Begin Message ---
JJ,
> i have this code snippet:
>
> if(isset($_POST['save'])){
> $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].',
> '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\',
> '.$_POST['cat'].', \''.$_POST['text'].'\', 0)';
> $result = mysql_query($query) or die("Query failed: $query<br>" .
> mysql_error());
> echo 'you saved your work.';
> } elseif(isset($_POST['pub'])) {
> $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].',
> '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\',
> '.$_POST['cat'].', \''.nl2br($_POST['text']).'\', 0)';
> echo 'you published your work.';
> }
>
> Which has a save or a publish option. I only want to keep one copy of each
> article in the DB. This adds a new one each time. I know about updates in
> SQL but the file may or may not already be in the db. Does anyone have a
> good way to go about this?
First perform a SELECT to establish previous existence (can lock row at this
point, if using suitable RDBMS), then decide to INSERT or UPDATE, save or
publish.
Regards,
=dn
--- End Message ---
--- Begin Message ---
Or, of course, a selection of fields as a unique key. The insert will fail
if there is an exisiting record with that key; you can interrogate the error
and report on the exisitence of a duplicate record.
The select/lock method is used for update purposes ('select for update' et
al.), not to keep duplicate records out of the DB.
--- End Message ---
--- Begin Message ---
How do i execute a form post with php?
I want to validate CCard info etc.. then perform the
post with no furtheraction from the user.
Basically If not valid stay here and show whats wrong
ELSE post form to process.php
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--- End Message ---
--- Begin Message ---
>From: "Daniel Guerrier" <[EMAIL PROTECTED]>
>Sent: Saturday, August 10, 2002 12:14 PM
>Subject: [PHP] PHP form port
> How do i execute a form post with php?
http://www.php-faq.com/postToHost.html
--- End Message ---
--- Begin Message ---
either do this
$your vars = value
include process.php;
or
header "process.php?your_var=value&your other stuff";
or
$url = http://www.yourserver.com/process.php?your_var=value&etc;
$contents = file($send);
This will execute your php file and return into $contents the html that is
outputed. You don't need to use the html if you don't want to.
John Wards
SportNetwork.net
----- Original Message -----
From: "Daniel Guerrier" <[EMAIL PROTECTED]>
To: "php user group" <[EMAIL PROTECTED]>
Sent: Saturday, August 10, 2002 5:14 PM
Subject: [PHP] PHP form port
> How do i execute a form post with php?
> I want to validate CCard info etc.. then perform the
> post with no furtheraction from the user.
>
> Basically If not valid stay here and show whats wrong
> ELSE post form to process.php
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
>From: "Daniel Guerrier" <[EMAIL PROTECTED]>
>Sent: Saturday, August 10, 2002 12:14 PM
>Subject: [PHP] PHP form port
> How do i execute a form post with php?
> I want to validate CCard info etc.. then perform the
> post with no furtheraction from the user.
>
> Basically If not valid stay here and show whats wrong
> ELSE post form to process.php
Sorry, I mis-understood your question. PHP is server-side, so you have to
post the form to validate. The way I handle the situation you have is to
have the same script process the form for both the initial request
(method=get) and the form post (method=post).
If 'POST' == $_SERVER['REQUEST_METHOD'], then validate.
If validation passes, process the transaction, and redirect with header()
to a new page.
if it fails, make use the prior supplied data in input values so you
retain the input from the person using your form.
Example:
<?php
if ('GET' == $_SERVER['REQUEST_METHOD'])
$name='';
$location='';
}
if ('POST' == $_SERVER['REQUEST_METHOD']) {
$errors = validate();
if (empty($errors()) {
process_form();
redirect();
}
$name = trim($_POST['name']);
$location = trim($_POST['location']);
}
?>
<form method="post" action="<?php echo {$_SERVER['PHP_SELF']}; ?> ">
<input type="text" name="name" value="<?php echo $name; ?> ">
<input type="text" name="location" value="<?php echo $location; ?> ">
<input type="submit" name="submit" value="Submit">
</form>
HTH
--- End Message ---
--- Begin Message ---
On Sat, Aug 10, 2002 at 02:34:30AM -0300, Breno Cardoso Perucchi wrote:
> It have some order for installation of the versions of PHP?
> First 4.03
> Second 4.22
>
> or
>
> First install 4.22
> Second 4.03
Does not matter.
> You showed as installing version of php for Windows ?
> That go work with system Linux and FreeBSD ?
Does not matter.
> Below this configuration of systems Linux and FreeBSD
>
> AddType application/x-httpd-php .php .php4 .php3 .phtml
So, change that, and the other things I said, to what I said in my first
email.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
--- End Message ---
--- Begin Message ---
This It is command for installing in another directory. You think this is
correct ?
./configure --prefix=/usr/local/php/ver403 --with-config-file-path=/usr/loca
l/php/ver403/etc --with-exec-dir=/usr/local/php/ver403 --with-mysql --with-m
ysql=/usr/local/mysql
Sorry to inconveniencing
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Sat, Aug 10, 2002 at 02:34:30AM -0300, Breno Cardoso Perucchi wrote:
> > It have some order for installation of the versions of PHP?
> > First 4.03
> > Second 4.22
> >
> > or
> >
> > First install 4.22
> > Second 4.03
>
> Does not matter.
>
>
> > You showed as installing version of php for Windows ?
> > That go work with system Linux and FreeBSD ?
>
> Does not matter.
>
>
> > Below this configuration of systems Linux and FreeBSD
> >
> > AddType application/x-httpd-php .php .php4 .php3 .phtml
>
> So, change that, and the other things I said, to what I said in my first
> email.
>
> --Dan
>
> --
> PHP classes that make web design easier
> SQL Solution | Layout Solution | Form Solution
> sqlsolution.info | layoutsolution.info | formsolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
--- End Message ---
--- Begin Message ---
I'm on a virtual host without a shell account and need execute a UNIX
command.
ln -s ../afile.php index.php
Is there some way to do this [e.g., with a htaccess file]?
What happens when you execute UNIX commands like the one above? Does it
make a file, change the config?
Thanks....
--- End Message ---
--- Begin Message ---
Hi
I need the contents of a form to be emailed as an attached Excel file or
html file. Is this possible using PHP. I think comma delimited files open
in Excel. Can anyone advise.
Thanks in advance
Mohamed
--- End Message ---
--- Begin Message ---
Yes, it's possible. You concatenate the form variables with the html,
transform it to a file and attach to the email.
--
Julio Nobrega
Pode acessar:
http://www.inerciasensorial.com.br
"M.E. Suliman" <[EMAIL PROTECTED]> escreveu na mensagem
000701c24097$044a1b00$9fb71fc4@b1s0n2">news:000701c24097$044a1b00$9fb71fc4@b1s0n2...
> Hi
>
> I need the contents of a form to be emailed as an attached Excel file or
> html file. Is this possible using PHP. I think comma delimited files
open
> in Excel. Can anyone advise.
>
> Thanks in advance
>
> Mohamed
>
--- End Message ---
--- Begin Message ---
If I have a field in my DB that can have 4 different answers, lets say a,b,c
and d. How can I count the number of each in that field. So if there are 4
a's 1 b 0 c's and 12 d's how can I get php to count this?
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---
How come some URLs have all these questions marks and stuff like that? Below:
source.php?url=/index.php
__________________________________________________________________
Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay only $2.99
shipping and handling. http://cd.netscape.com/promo_one/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
--- End Message ---
--- Begin Message ---
Erm, because that's the way it works?
Regards,
Chris Knipe
Cell: (072) 434-7582
MegaLAN Corporate Networking Services
/-------
| This email is confidential and may contain legally privileged information.
| If you are not the intended recipient, you must not disclose or use
| the information contained in it. If you have received this email in error,
| please notify us immediately by return email and delete the document.
\-------
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 10, 2002 7:56 PM
Subject: [PHP] weird urls
> How come some URLs have all these questions marks and stuff like that?
Below:
>
> source.php?url=/index.php
>
> __________________________________________________________________
> Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay only
$2.99 shipping and handling. http://cd.netscape.com/promo_one/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
That's because PHP detects whatever it's after that question marks as
variables so it's able to process them in requests you make in your
scripts. The one you quote means that there is a variable being passed
from one page to another named $url which has the value /index.php.
So, if you call (in the incoming page) a script which need to know what
is the value of $url that was passed, the script will know that is
/index.php.
C.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 10, 2002 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] weird urls
>
> How come some URLs have all these questions marks and stuff like that?
> Below:
>
> source.php?url=/index.php
>
> __________________________________________________________________
> Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay
only
> $2.99 shipping and handling. http://cd.netscape.com/promo_one/
>
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Well, it's a GET parameter, not a server file. Probably the file
"source.php" has a command to include the file "/index.php".
if (isset($_GET['url'])) {
// Security check, prepend filesystem or webserver root and
include($url);
}
--
Julio Nobrega
Pode acessar:
http://www.inerciasensorial.com.br
<[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How come some URLs have all these questions marks and stuff like that?
Below:
>
> source.php?url=/index.php
>
> __________________________________________________________________
> Pre-order the NEW Netscape 7.0 browser. Reserve your FREE CD and pay only
$2.99 shipping and handling. http://cd.netscape.com/promo_one/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
--- End Message ---
--- Begin Message ---
I,
I don't have my books here and it's been a while since I did PHP, and
google isn't helping:
How do I code a bunch of checkboxes with id's, and then loop trough the
result as an array after POSTing it?
What I have now:
<input type='checkbox' id='45' name='topic[]' value='45'>
doesn't return an array $topic??
Thanks,
Peter
--- End Message ---
--- Begin Message ---
On Sat, Aug 10, 2002 at 02:56:48PM -0400, PeterV wrote:
> What I have now:
> <input type='checkbox' id='45' name='topic[]' value='45'>
> doesn't return an array $topic??
Probaby due to register_globals. It should exist in $_POST['topic']
--
Jason Stechschulte
[EMAIL PROTECTED]
http://www.ypisco.com
--
I am a bookaholic. If you are a decent person, you will not sell me
another book.
--- End Message ---
--- Begin Message ---
I noticed they have not come out with a new version in quite a long time and
do not answer their emails? anybody else heard about any future releases
of editplus?
Randy
----- Original Message -----
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>; "PHPlist"
<[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 9:38 PM
Subject: Re: [PHP] Win PHP Editor...
> Well, I still believe the best editor for windows is Editplus
> (www.editplus.com)
>
> Small, fast, stable, tonnes of features and it supports a lot of file
type.
> If it doesn't give you colour coding for a particular language, say Cold
> Fusion, go to the homepage and download the plugin.
>
> It's only 800K to download, give it a shot. It's uninstall program
actually
> gets rid of it aswell, completely. so if you don't like it, no sweat :-P
>
> Just my 2 cents...
>
> Liam
>
>
>
> ----- Original Message -----
> From: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>
> To: "PHPlist" <[EMAIL PROTECTED]>
> Sent: Saturday, August 10, 2002 3:42 AM
> Subject: [PHP] Win PHP Editor...
>
>
> > Just have to add one little fine piece of free software that nobody's
> > mentioned yet, Crimson Editor (http://www.crimsoneditor.com )
> >
> > No code completion, but it's got every other feature of the big
commercial
> > beasts... definitely check it out - I just switched over, and it's
great.
> >
> >
> > From the site:
> > ----------
> > Edit multiple documents
> > - switch between documents using file selection tab
> > - pressing Ctrl+Tab brings the last accessed document to top
> >
> > Syntax highlighting
> > - configurable via custom syntax files
> > - preconfigured for more than 50 computer languages
> >
> > Multi-level undo / redo
> > - all editing actions are recorded from the opening of a file
> > - unlimited undo and redo buffers
> >
> > Find & Replace
> > - replace specified text one by one, or as a whole
> > - support regular expression
> >
> > Natural word wrapping
> > - word wrapping does not affect syntax highlighting
> > - configurable wrapping indentation (easer to understand the syntax)
> >
> > Spell checker
> > - around 100000 words were added in the dictionary
> > - users can register new words in their own dictionary
> > (InstallDir/user.dic)
> >
> > User tools and macros
> > - execute external programs with proper arguments
> > - compile, execute and test your code
> > - ease your fingers with key stroke recording (record & replay)
> >
> > Directory tree view window
> > - click to open documents
> > - filter to display only selected file class
> >
> > Edit remote files directly using built-in FTP client
> > - open, edit, and save documents in remote FTP servers
> > - save account information (encoded) for automatic logon
> >
> > Print & Print preview
> > - configurable page header and footer
> > - print with line numbers
> > - print with syntax highlighting (used in color printer)
> > - true type font selection for printer
> >
> > Other useful features
> > single instance / multiple instances, ability to detect changed
files,
> > bookmark & go to, highlight active line, highlight matching pairs,
> > multi-byte support with integrated IME (for eastern languages),
> > auto indent, wheel mouse support, copy & paste, line numbers,
> > configurable line spacing, option to save files in Unix format,
> > option to set working directory
> >
> >
> >
> >
> > Very nice little IDE, and the price is right! Nothing!
> >
> > Dave
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
----- Original Message -----
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>; "PHPlist"
<[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 9:38 PM
Subject: Re: [PHP] Win PHP Editor...
> Well, I still believe the best editor for windows is Editplus
> (www.editplus.com)
>
> Small, fast, stable, tonnes of features and it supports a lot of file
type.
> If it doesn't give you colour coding for a particular language, say Cold
> Fusion, go to the homepage and download the plugin.
>
> It's only 800K to download, give it a shot. It's uninstall program
actually
> gets rid of it aswell, completely. so if you don't like it, no sweat :-P
>
> Just my 2 cents...
>
> Liam
>
>
>
> ----- Original Message -----
> From: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>
> To: "PHPlist" <[EMAIL PROTECTED]>
> Sent: Saturday, August 10, 2002 3:42 AM
> Subject: [PHP] Win PHP Editor...
>
>
> > Just have to add one little fine piece of free software that nobody's
> > mentioned yet, Crimson Editor (http://www.crimsoneditor.com )
> >
> > No code completion, but it's got every other feature of the big
commercial
> > beasts... definitely check it out - I just switched over, and it's
great.
> >
> >
> > From the site:
> > ----------
> > Edit multiple documents
> > - switch between documents using file selection tab
> > - pressing Ctrl+Tab brings the last accessed document to top
> >
> > Syntax highlighting
> > - configurable via custom syntax files
> > - preconfigured for more than 50 computer languages
> >
> > Multi-level undo / redo
> > - all editing actions are recorded from the opening of a file
> > - unlimited undo and redo buffers
> >
> > Find & Replace
> > - replace specified text one by one, or as a whole
> > - support regular expression
> >
> > Natural word wrapping
> > - word wrapping does not affect syntax highlighting
> > - configurable wrapping indentation (easer to understand the syntax)
> >
> > Spell checker
> > - around 100000 words were added in the dictionary
> > - users can register new words in their own dictionary
> > (InstallDir/user.dic)
> >
> > User tools and macros
> > - execute external programs with proper arguments
> > - compile, execute and test your code
> > - ease your fingers with key stroke recording (record & replay)
> >
> > Directory tree view window
> > - click to open documents
> > - filter to display only selected file class
> >
> > Edit remote files directly using built-in FTP client
> > - open, edit, and save documents in remote FTP servers
> > - save account information (encoded) for automatic logon
> >
> > Print & Print preview
> > - configurable page header and footer
> > - print with line numbers
> > - print with syntax highlighting (used in color printer)
> > - true type font selection for printer
> >
> > Other useful features
> > single instance / multiple instances, ability to detect changed
files,
> > bookmark & go to, highlight active line, highlight matching pairs,
> > multi-byte support with integrated IME (for eastern languages),
> > auto indent, wheel mouse support, copy & paste, line numbers,
> > configurable line spacing, option to save files in Unix format,
> > option to set working directory
> >
> >
> >
> >
> > Very nice little IDE, and the price is right! Nothing!
> >
> > Dave
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---