php-general Digest 30 May 2004 07:00:08 -0000 Issue 2792

Topics (messages 187202 through 187217):

Re: PHP Coding Standards
        187202 by: Michael Nolan

Re: CVS web front end
        187203 by: Johan Holst Nielsen
        187205 by: lists
        187212 by: Brian V Bonini
        187213 by: Brian V Bonini

Re: How to obtain MAC address of server where PHP is running
        187204 by: Andrei Verovski (aka MacGuru)

cookies malfunctioning moving from windows to linux
        187206 by: Ryan Schefke
        187207 by: Daniel Clark
        187216 by: Ryan Schefke

Text file wont' have newlines?
        187208 by: Ashwin Purohit
        187209 by: Torsten Roehr
        187211 by: Daniel Clark
        187215 by: Ashwin Purohit

RewriteUrl + open_basedir
        187210 by: Markus Post

Link Management Software
        187214 by: Matt Palermo

Re: ColdFusion / SQL > PHP / mySQL HELP!
        187217 by: Burhan Khalid

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 --- charles kline wrote:
Hi all,

I was having a conversation with a friend and talking about coding standards in the open source community (focusing on PHP). I seem to remember there being a document out there that sort of laid it out pretty well.

Anyone know where I might find a copy?


PEAR has a page in their documentation about coding standards:

http://pear.php.net/manual/en/standards.php

HTH,

Mike
--- End Message ---
--- Begin Message ---
Lists wrote:

<<As far as I can see, it have nothing to do with an web frontend?>>

you're so right. I meant to send the link for horde

http://www.horde.org/chora/

Are you able to check out files? check in etc.? As far as I can see - it is just a web cvs viewer?

The request was "Not just a file/project
browser..."

Anyway - thanks for the link to tcvs :D I have downloaded it and I like it :D

--
Johan Holst Nielsen
Freelance PHP Developer
http://phpgeek.dk

--- End Message ---
--- Begin Message ---
ah, well I sent the tortoise link because that's what I use to check in/out
files but it's a local application and you're right, chora is a web browser,
not checkin/out. i wasn't paying close enough attention to the request.
Sorry.

I don't know that there is a web-based check in/out system. It seems like
there would be some security issues around that and my gut tells me that the
way cvs flags documents would be more complex (no data to back that
intuition up though)

-----Original Message-----
From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 29, 2004 12:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] CVS web front end


Lists wrote:

> <<As far as I can see, it have nothing to do with an web frontend?>>
> 
> you're so right. I meant to send the link for horde
> 
> http://www.horde.org/chora/

Are you able to check out files? check in etc.?
As far as I can see - it is just a web cvs viewer?

The request was "Not just a file/project
browser..."

Anyway - thanks for the link to tcvs :D I have downloaded it and I like 
it :D

-- 
Johan Holst Nielsen
Freelance PHP Developer
http://phpgeek.dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
On Sat, 2004-05-29 at 13:49, lists wrote:
> tortoise is nice
> 
> http://www.tortoisecvs.org/

So is Cervisia but not sure what that has to do with the original
question... ;-)


--- End Message ---
--- Begin Message ---
On Sat, 2004-05-29 at 15:01, Johan Holst Nielsen wrote:
> Lists wrote:
> 
> > <<As far as I can see, it have nothing to do with an web frontend?>>
> > 
> > you're so right. I meant to send the link for horde
> > 
> > http://www.horde.org/chora/
> 
> Are you able to check out files? check in etc.?
> As far as I can see - it is just a web cvs viewer?
> 
> The request was "Not just a file/project
> browser..."
> 
> Anyway - thanks for the link to tcvs :D I have downloaded it and I like 
> it :D


Since a web based CVS front-end is looking slim how about a
recommendation on a web based file sharing app.? (possibly with some
sort of primitive version control.)

-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

--- End Message ---
--- Begin Message ---
Hi, Gerard,

Thanks a lot !

On Saturday 29 May 2004 08:09 pm, Gerard Samuel wrote:
> On Saturday 29 May 2004 12:35 pm, Andrei Verovski (aka MacGuru) wrote:
> > Hi, Gerard,
> >
> > Can you please be so kind to post your code snippet you have described
> > below?
>
> <?php
>
> ob_start();
>
> passthru('/sbin/ifconfig | grep ether');
> $dump = ob_get_contents();
> preg_match('/[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:
> [A-F0-9]{2}/i', $dump, $mac);
> $mac_address = $mac[0];
>
> ob_end_clean();
>
> ?>

--- End Message ---
--- Begin Message ---
Hi, I developed a Poll system that uses cookies. It works fine under Windows
(Apache and MySQL), but it does not work properly under Linux. - I
transitioned my site from my windows based server to a linux machine.

Cookies does not work properly when I use the system under Linux (Apache and
MySQL).

I already checked php.ini and can't seem to find what is wrong.  The only
difference is the "session.save_path = /tmp" on the Linux box and on the
windows box it was "session.save_path = c:/windows/temp" 

Could you help me ?

Thank you!
Ryan


--- End Message ---
--- Begin Message ---
Apache must have read and write privs on the tmp directory.

>>Hi, I developed a Poll system that uses cookies. It works fine under Windows
>>(Apache and MySQL), but it does not work properly under Linux. - I
>>transitioned my site from my windows based server to a linux machine.
>>
>>Cookies does not work properly when I use the system under Linux (Apache and
>>MySQL).
>>
>>I already checked php.ini and can't seem to find what is wrong.  The only
>>difference is the "session.save_path = /tmp" on the Linux box and on the
>>windows box it was "session.save_path = c:/windows/temp" 
>>
>>Could you help me ?
>>
>>Thank you!
>>Ryan
>>
>>

--- End Message ---
--- Begin Message ---
I don't think that is it.  I believe session.save_path is only for sessions,
not cookies.  I'm only using cookies in the application. 

Can someone please help?

Thanks,
Ryan

-----Original Message-----
From: Daniel Clark [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 29, 2004 5:55 PM
To: Php-General-Help; Ryan Schefke
Subject: Re: [PHP] cookies malfunctioning moving from windows to linux

Apache must have read and write privs on the tmp directory.

>>Hi, I developed a Poll system that uses cookies. It works fine under
Windows
>>(Apache and MySQL), but it does not work properly under Linux. - I
>>transitioned my site from my windows based server to a linux machine.
>>
>>Cookies does not work properly when I use the system under Linux (Apache
and
>>MySQL).
>>
>>I already checked php.ini and can't seem to find what is wrong.  The only
>>difference is the "session.save_path = /tmp" on the Linux box and on the
>>windows box it was "session.save_path = c:/windows/temp" 
>>
>>Could you help me ?
>>
>>Thank you!
>>Ryan
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi everybody,

I have this script in a file that allows users to upload files, and I want to know who submitted what so I write $userfile_name and $credit1(their name) to CREDIT.txt in the same directory like so :

$credit = $userfile_name.':     '.$credit1."\n";
$fp = fopen('CREDIT.txt','a');
fwrite($fp, $credit);
fclose($fp);

But every new submission ends up on the same line, there is never a line break in the text. Any suggestions?

Thanks,
AMP

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

--- End Message ---
--- Begin Message ---
"Ashwin Purohit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi everybody,
>
> I have this script in a file that allows users to upload files, and I want
> to know who submitted what so I write $userfile_name and $credit1(their
> name) to CREDIT.txt in the same directory like so :
>
> $credit = $userfile_name.':     '.$credit1."\n";
> $fp = fopen('CREDIT.txt','a');
> fwrite($fp, $credit);
> fclose($fp);
>
> But every new submission ends up on the same line, there is never a line
> break in the text. Any suggestions?


Try "\r\n" or chr(10):

$credit = $userfile_name.':     '.$credit1."\r\n";
$credit = $userfile_name.':     '.$credit1.chr(10);

Regards, Torsten

--- End Message ---
--- Begin Message ---
Needs a new line and return.

fwrite($fp, ($credit . "\n\r") );

>>Hi everybody,
>>
>>I have this script in a file that allows users to upload files, and I want 
>>to know who submitted what so I write $userfile_name and $credit1(their 
>>name) to CREDIT.txt in the same directory like so :
>>
>>$credit = $userfile_name.':     '.$credit1."\n";
>>$fp = fopen('CREDIT.txt','a');
>>fwrite($fp, $credit);
>>fclose($fp);
>>
>>But every new submission ends up on the same line, there is never a line 
>>break in the text. Any suggestions?
>>
>>Thanks,
>>AMP
>>
>>_________________________________________________________________
>>FREE pop-up blocking with the new MSN Toolbar  get it now! 
>>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>



--- End Message ---
--- Begin Message ---
Ok, thanks much! It works now.

Needs a new line and return.

fwrite($fp, ($credit . "\n\r") );

>>Hi everybody,
>>
>>I have this script in a file that allows users to upload files, and I want
>>to know who submitted what so I write $userfile_name and $credit1(their
>>name) to CREDIT.txt in the same directory like so :
>>
>>$credit = $userfile_name.': '.$credit1."\n";
>>$fp = fopen('CREDIT.txt','a');
>>fwrite($fp, $credit);
>>fclose($fp);
>>
>>But every new submission ends up on the same line, there is never a line
>>break in the text. Any suggestions?
>>
>>Thanks,
>>AMP
>>
>>_________________________________________________________________
>>FREE pop-up blocking with the new MSN Toolbar  get it now!
>>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>




_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/

--- End Message ---
--- Begin Message ---
Hello everybody,

I want to use RewriteUrl and open_basedir-restriction in a virtual
host-directive together.

1) RewriteUrl

DocumentRoot /srv/www
RewriteRule ^/(.*)/(.*)$                /$1/$2

This redirects the request http://domain.de/dir1/dir2 to the local files
/srv/www/dir1/dir2/ and works fine.

2) Then I want use the open_basedir-restriction like
"php_admin_value open_basedir /srv/www/dir1"

To use it dynamically I want to use the content of the variable $1 in
the open_basedir-restriction. It would be sth. like this:
"php_admin_value open_basedir /srv/www/$1", but it doesn�t work. The
variable $1 won�t parsed.

Do you know any other way?

Thanks,
   Markus

--- End Message ---
--- Begin Message ---
Hey everyone.  I just wanted to say thank you to everyone who has helped me
out with various questions on here.  I appreciate your help.  I have just
finished the first version a new PHP script called TotalLinker.  This is a
link management submission/management systems and has many more built in
features.  To show my appreciation for everyone who helps out on here, I am
giving away 5 free copies to the first 5 people who email me and want it.
You can view the full description of the software as well as view screen
shots and a live demo by visiting this link:

http://sweetphp.com/nuke/modules.php?name=Script_Preview&script=4

It will be on sale for half price over the next week or two, but you can get
a free copy by being one of the first 5 people to email me for it.  Thanks
again for all your help!

Matt Palermo
http://sweetphp.com

--- End Message ---
--- Begin Message --- Curt Zirzow wrote:
* Thus wrote Chris Jernigan ([EMAIL PROTECTED]):

Hi everyone,



What's the problem? I have one week to do this. Oh, and did I mention that I
know VERY little about PHP / mySQL. I know NOTHING about ColdFusion or
MSSQL. And to top it off, the site in question contains over 300 .cfm files!

Does anyone have any idea how I could pull this off?


rename all files to .php and set the web server to parse .php files
as coldfusion.

lmao @ that one.

--- End Message ---

Reply via email to