[PHP] Date class

2005-04-18 Thread Devraj Mukherjee
Everyone, Do you know of any decent Date/Time handling classes? We require the following functionality 1. Date's prior to 1970 handled (not reliant on the PHP date) 2. add/subtract days to/from a date 3. subtract two dates returning number of days Any pointers are welcome. Thanks for your time in

Re: [PHP] How to unset a post variable (SOLVED)

2005-04-18 Thread Mario de Frutos Dieguez
Richard Lynch escribió: On Mon, April 18, 2005 9:42 pm, Chris Kay said: unset($_POST['buttonNew']); wont work? Sure it "works" It's just not useful in the context of this thread :-) How do you know to unset it the second time when they hit "refresh" (aka "reload") though? I should have said

Re: [PHP] How to unset a post variable

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 9:42 pm, Chris Kay said: > > unset($_POST['buttonNew']); > wont work? Sure it "works" It's just not useful in the context of this thread :-) How do you know to unset it the second time when they hit "refresh" (aka "reload") though? I should have said "won't solved that sp

Re: [PHP] Tomcat and php in Suse 9.2

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 2:30 am, Andreas Persson said: > I have installed tomcat and added php-support with help of the php-servlet > but it seem like php cant find any of the extensions installed. Like > mysql. I have the php4-mysql package installed. > > If i run php -i from the commandline its te

Re: [PHP] Insert Chars into a string

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 10:53 am, PartyPosters said: > Hello, > I have a variable that contains a filename, I want to be able to insert > the date and time just before for the ".jpg" > for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th > of January 2003 05:51:38 AM.jpg (or if

Re: [PHP] header()

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 7:54 am, Martín Marqués said: > I'm having a bit of a problem understanding how the header() sends the > HTTP > headers. > > Here's what I want to do: > > 1) Send a PDF file which will be printed in the client (the client will > read > it and print it if he wants to. > 2) Red

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 12:40 pm, J J said: > I have a case where video files (mov, flv, etc) have > been stored in a MySQL database as blobs. Doc: Don't do that. > I'm loading them into a flash video player and > everything works fine except it takes longer it seems > and it doesn't allow streami

Re: [PHP] How to unset a post variable

2005-04-18 Thread Chris Kay
unset($_POST['buttonNew']); wont work? CK On Mon, Apr 18, 2005 at 08:25:04PM -0700, Richard Lynch wrote: > On Fri, April 15, 2005 5:08 am, Mario de Frutos Dieguez said: > > I have another little question hehe :D, i have a page with a form where > > the user insert data and can click in a new,edi

Re: [PHP] Storing password in cookie

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 1:57 pm, [EMAIL PROTECTED] said: > On 14 Apr 2005 Chris Shiflett wrote: > >> When a user enters a credit card number, there may likely be a >> verification step before the actual purchase is made. It's better to >> keep this number on the server (in the session data store) th

Re: [PHP] php and linux shell script

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 11:52 pm, Balwant Singh said: > 1) first of all i would like to inform you that i have made a PHP script > which also have some amount of > linux shell script in it for converting emails from EVOLUTION to MOZILA > THUNDERBIRD just by executing > this script. if anybody need

Re: [PHP] How to unset a post variable

2005-04-18 Thread Richard Lynch
On Fri, April 15, 2005 5:08 am, Mario de Frutos Dieguez said: > I have another little question hehe :D, i have a page with a form where > the user insert data and can click in a new,edit or delete button. I've > make that when a button is clicked the page refresh and in the head of > the page i hav

Re: [PHP] cant get data

2005-04-18 Thread Richard Lynch
On Fri, April 15, 2005 5:14 am, kyriacos sakkas said: > Hi all, > I have a problem getting the data from a post request. I have tried > $_POST and $HTTP_RAW_POST_DATA and they appear to be completely empty. > the always_populate_raw_post_data directive is set to on. > > Below is the incoming

Re: [PHP] processing email

2005-04-18 Thread Richard Lynch
On Fri, April 15, 2005 7:17 pm, Florin Andrei said: > I want to write an application that's almost like a webmail, but not > quite. It must receive emails from several mailing lists, store them in > a database, allow making annotations, provide some kind of accounts with > passwords, etc. It's quit

Re: [PHP] forwarding email messages directly from a maildir

2005-04-18 Thread Richard Lynch
On Sat, April 16, 2005 4:37 am, mbneto said: > I'd like to make a script that opens my maildir > (~login/Maildir/.Junk/cur) and forwards all messages to a specific > address in order to train the spam engine. > > Any tips about this ? http://php.net/imap -- Like Music? http://l-i-e.com/artists.h

Re: [PHP] Another array sorting Problem

2005-04-18 Thread Richard Lynch
Use SQL in your query that looks like: ORDER BY kat, Rowid in the first place? On Sat, April 16, 2005 5:51 pm, Webmaster said: > Hi, > > I have a multidimensional array looking linke this > > Rowid title kat > 123 nr1 3 > 442 nr2 2

Re: [PHP] mysql insert function

2005-04-18 Thread Richard Lynch
On Sun, April 17, 2005 10:56 am, Dasmeet Singh said: > I regularly need to insert data into MySQL.. and instead of writing > Insert query everytime i wrote this function... and it works well.. > > Please see and tell is it a good idea using this..or there might be > problems with it? It's not a Ba

Re: [PHP] Localhost not working with cookies

2005-04-18 Thread Richard Lynch
On Sun, April 17, 2005 1:05 pm, Proudly Pinoy said: > I've read from php.net/setcookie and codecomments.com that using localhost > won't work with cookies and neither are IP addresses. So how do I test > cookies on local system? Works for me. Maybe doesn't work with specific broken browsers or so

Re: [PHP] Php + flash, need some help making a small .FLA

2005-04-18 Thread Richard Lynch
On Sun, April 17, 2005 2:15 pm, Matt Babineau said: > Does anyone have any experience with integrating php + flash? Or know of > any > good tutorial sites? Basically what I want to do is have an animated > loading > screen, and then pull pictures from a database and display text from a > database,

Re: [PHP] ldap_connect error

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 2:43 am, Steve Turnbull said: > I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, > and > MySQL 4. > > When I installed php, I used apt-get, and included in the list of modules > was libapache2_mod_php4 php4 php4-ldap ... > > PHP works fine, and a test

Re: [PHP] stripping of the last character

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 5:11 am, Chris Kay said: > > use substr($recipients,0,1); > to remove the last char > > and ereg_replace(","," ,",$recipients); > to add the spaces If the list is *REALLY* large, http://php.net/str_replace might be a bit faster. For sure, there's no need to haul out the

Re: [PHP] explode a string

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 4:34 am, Sebastian said: > $string = '4:gaming,5:hardware,3:software,8:security'; $idcats = explode(',', $string); while (list(, $idcat) = each($idcats)){ list($id, $cat) = explode(':', $idcat); echo "\$id = $id\n"; echo "\$cat = $cat\n"; } > what is the best way to e

Re: [PHP] mysql blob datatype for documents

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 5:40 am, Bosky, Dave said: > Would it be better to store uploaded pdf, word, or excel documents in a > MySql blob field rather than keeping them in a directory? > > I really want to secure the documents and limit document access to > specific users. It shouldn't be significa

Re: [PHP] RHES 3 - PHP 5.0.x - freetype

2005-04-18 Thread Richard Lynch
You may want to define "does not work" a bit more fully. Does it crash PHP? Generate error messages? Not display the text? Catch your computer on fire? Post back to the list only -- I probably won't know the answer. On Mon, April 18, 2005 5:52 am, Sasha Dolgy said: > (this post has been made

Re: [PHP] Single SQL-statement in PHP to order...

2005-04-18 Thread Richard Lynch
select ... from ... ORDER BY (IDCategory = 4) DESC, IDCategory = 4 will return 1 or 0, for 4 or not 4. 1 is bigger than 0, in most countries. :-) On Mon, April 18, 2005 2:50 pm, Gustav Wiberg said: >> Hi there! >> >> I guess this is off-topic? but I want to know if this is possible. (If >> the

RE: [PHP] XSL problem

2005-04-18 Thread Jared Williams
> === > Problem: can't retrieve the "1" from the ERRORCODE tag. > > I've narrowed down the source to the xmlns attribute inside > the FMPXMLRESULT tag. Still can't figure out how to code it > to grab the "1" though. Any ideas? I've tried: > > /ERRORCODE > FMPXMLRESULT/ERRORCO

[PHP] Single SQL-statement in PHP to order...

2005-04-18 Thread Gustav Wiberg
Hi there! I guess this is off-topic? but I want to know if this is possible. (If there's anyone out there that have a solution, I would appreciate it though) I want to know if there is anyway of showing tables in PHP in an order like this in a single SQL-statement... Table is like this: IDCate

[PHP] XSL problem

2005-04-18 Thread Jeremy Reynolds
I'm very new to XML and XSL and feel very helpless about a problem I am having. I've tried several message boards with no luck. The problem I am having is this... === Problem: can't retrieve the "1" from the ERRORCODE tag. I've narrowed down the source to the xmlns attribute in

AW: [PHP] Apache - IIS Migration

2005-04-18 Thread Webmaster
Hi, abolutly right. I never had problems with migrating from Apache to IIS or vice versa. Best Regards Mirco Blitz -Ursprüngliche Nachricht- Von: Pablo D Marotta [mailto:[EMAIL PROTECTED] Gesendet: Montag, 18. April 2005 23:09 An: php-general@lists.php.net Betreff: [PHP] Apache - IIS Mi

[PHP] Apache - IIS Migration

2005-04-18 Thread Pablo D Marotta
Hi there.. I´m using Apace 1.3.31 and PHP 4.3.8 in a Windows 2000 enviroment. I´ll have to migrate the whole site to Windows 2003 enviroment, using IIS 6.0.. Should there be any problem about that, or not? I mean, should it all go fine, or is it possible for the code to fail in some parts? Just

Re: [PHP] trying to send mail via localhost

2005-04-18 Thread Brent Baisley
That's a relay error. It's actually a good thing. If your server is setup to allow sending email without logging in, that's generally called an open relay. That's where spam comes from. You can configure your mail server to allow relaying from only the local machine. Then you wouldn't have to l

Re: [PHP] Re: Barcodes [Solved]

2005-04-18 Thread Mike Smith
On 4/18/05, Eric Wood <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "Mike Smith" > I'm using a script to generate the barcodes (3 of 9 or Code39): > http://www.sid6581.net/cs/php-scripts/barcode/ > > This script seems to limit the input barcode to 15 characters... um... > -eric

[PHP] Re:Php + flash, need some help making a small .FLA

2005-04-18 Thread I Poop Rainbows
Check out: http://www.sephiroth.it/index.php --- you don't really need to use the ming lib for something like this---there are a couple different ways to do this, depending on which version of flash you're using: Flash5---use loadvariables...check documentation FlashMX--use the loadVars o

Re: [PHP] PHP and Sessions

2005-04-18 Thread The Disguised Jedi
yes, set the cookie expiration to 0. Can be done in php.ini, or with the function mentioned. use ini_set() or change the value. On 4/18/05, Petar Nedyalkov <[EMAIL PROTECTED]> wrote: > > On Monday 18 April 2005 05:22, Reynier Perez Mira wrote: > > Hi list: > > > > I have this code that Works

RE: [PHP] Question regarding PDF creation

2005-04-18 Thread Chris W. Parker
Mário Gamito on Monday, April 18, 2005 3:01 AM said: > I'm using FPDF (http://www.fpdf.org/) to create a... PDF. First of all thanks for asking this question because I was in need of building PDFs and lo and behold FPDF works great so far! > $pdf->Cell(60,10,'Powe

Re: [PHP] Re: Barcodes [Solved]

2005-04-18 Thread Eric Wood
- Original Message - From: "Mike Smith" I'm using a script to generate the barcodes (3 of 9 or Code39): http://www.sid6581.net/cs/php-scripts/barcode/ This script seems to limit the input barcode to 15 characters... um... -eric woo -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: php-general Digest 18 Apr 2005 08:44:11 -0000 Issue 3404

2005-04-18 Thread DuSTiN KRySaK
check out amfphp (opensource php/flash remoting): http://www.amfphp.org/ good tutorials here: http://www.sephiroth.it/tutorials.php AMFPHP allows you to return info from PHP classes as an actionscript object in flash. d On 18-Apr-05, at 1:44 AM, [EMAIL PROTECTED] wrote: From: "Matt Babineau" <[EM

[PHP] Re: Barcodes [Solved]

2005-04-18 Thread Mike Smith
On 4/15/05, Mike Smith <[EMAIL PROTECTED]> wrote: > I just ordered a CueCat from eBay to play with reading Barcodes. Of > course we'll use a Symbol or some other reader when we implement this > in production, but I thought this would be a start. There are several > classes at phpclasses.org > (http

Re: [PHP] Windows and Query String

2005-04-18 Thread Greg Donald
On 4/18/05, Chris Ramsay <[EMAIL PROTECTED]> wrote: > No doubt a lesson is contained herewith...if you are working on a > windows machine now, grab yourself a free copy of Textpad from Helios > (google for it) and use their wonderful search and replace function - > you'll get it done sooner than yo

Re: [PHP] Windows and Query String

2005-04-18 Thread Armando Afá
See the register_global my friend maybe it is set off - Original Message - From: "Greg Deckler" <[EMAIL PROTECTED]> To: Sent: Monday, April 18, 2005 10:10 AM Subject: [PHP] Windows and Query String > I have searched for this in the FAQ's, News Archives and Googled for it > and cannot se

Re: [PHP] Windows and Query String

2005-04-18 Thread Chris Ramsay
Thus, I am stuck having to get this to work until I can find about 50,000 hours to conver all of the code. No doubt a lesson is contained herewith...if you are working on a windows machine now, grab yourself a free copy of Textpad from Helios (google for it) and use their wonderful search and re

Re: [PHP] Windows and Query String

2005-04-18 Thread John Nichel
Greg Deckler wrote: I have searched for this in the FAQ's, News Archives and Googled for it and cannot seem to find the answer. Please help. Should have checked the manual. http://us4.php.net/register_globals I have a script that simply echo's a query string variable to the screen. This works on a

[PHP] Windows and Query String

2005-04-18 Thread Greg Deckler
I have searched for this in the FAQ's, News Archives and Googled for it and cannot seem to find the answer. Please help. I have a script that simply echo's a query string variable to the screen. This works on a previously configured linux box with PHP4.0, but not on a newly created Windows 2003 bo

[PHP] Re: Session variables are not stored when set in implicitly called constructor!??

2005-04-18 Thread Jason Barnett
Adam wrote: > Hallo everybody, > hope I am writing to correct mailinglist(^_^*)... Absolutely! > I have troubles with sessions and descructor in php5. Can not set session > variable in destructor when it's called implicitly. Do You know solution > please? > I think problem is that session is stor

Re: [PHP] Re: CFP: DLS05: ACM Dynamic Languages Symposium

2005-04-18 Thread Rory Browne
There are times when cross-posting is approperate, and times when it isn't. In this case it's approperate. In the case of replying to his cross-posting it isn't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Please update your account information

2005-04-18 Thread Jason Barnett
I guess Mailman fell asleep? :P -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download

[PHP] Re: CFP: DLS05: ACM Dynamic Languages Symposium

2005-04-18 Thread Jason Barnett
Please, do not cross-post. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?

Re: [PHP] PHP and Sessions

2005-04-18 Thread Petar Nedyalkov
On Monday 18 April 2005 05:22, Reynier Perez Mira wrote: > Hi list: > > I have this code that Works perfectly: > > File: index.php > > > session_start(); > > echo "Close session"; > > ?> > > File: logout.php > > > session_unset(); > > session_destroy(); > > ?> > > > > When user click link all

Re: [PHP] explode a string

2005-04-18 Thread Petar Nedyalkov
On Monday 18 April 2005 14:34, Sebastian wrote: > $string = '4:gaming,5:hardware,3:software,8:security'; > > what is the best way to explode then loop this string after its taken > apart. > > output should be something like: > > $id = 4 > $cat = gaming > > etc.. > > im just looking for the best/fas

[PHP] Re: mysql_result()

2005-04-18 Thread Greg Donald
Oops. Silly Gmail hotkeys. What are you guys using instead of mysql_result() when using MySQL 4.1 and the 'improved' MySQL functions? mysql_result() went away and the next best thing I can find is mysqli_fetch_array() with a little iteration. Thoughts? -- Greg Donald Zend Certified Engineer

[PHP] mysql_result()

2005-04-18 Thread Greg Donald
-- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] putting the results of a query inro an array

2005-04-18 Thread Jay Blanchard
[snip] The only fields are 'name' and 'email' $query = "SELECT * FROM contacts"; $result= mysql_query($query); $number= mysql_num_rows ($result); [/snip] Using * in a query like this is bad formspell it out while($row = mysql_fetch_array($result){ $arrayName[] = $row['name'];

[PHP] putting the results of a query inro an array

2005-04-18 Thread Ross
how can I put the results from the following query into two arrays? The only fields are 'name' and 'email' $query = "SELECT * FROM contacts"; $result= mysql_query($query); $number= mysql_num_rows ($result); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Re: Question regarding PDF creation

2005-04-18 Thread Jason Barnett
Mário Gamito wrote: ... > > $pdf->Cell(40,10,'CV de ' . $full_name . ',' . 0,0 . ',C'); > If I break down this argument to a simpler form, you are using: $pdf->Cell(40,10,'CV de Mario Gamito,0,0,C'); You aren't supplying the last 3 arguments! What I *think* you're going for instead here is:

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
Dan Rossi wrote: already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) That means you are using PHP5, so you can use second argument to set_error_handler() On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi t

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Matthew Weier O'Phinney
* Dan Rossi <[EMAIL PROTECTED]>: > already have i was hoping to avoid the if's. E_STRICT was throwing a > heap of suggestions for pear packages code ;) So turn off error reporting for those levels: error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE); > On 18/04/2005, at 6:44 PM, Marek Kilimajer

[PHP] RHES 3 - PHP 5.0.x - freetype

2005-04-18 Thread Sasha Dolgy
(this post has been made to php-install aswell) Hi Everyone. I'm having a little problem here. Was wondering if anyone else had encountered this. Currently I'm building PHP 5.0.4 (issue is with .3 aswell) and it's being built on a RHES 3 update 3 machine. The following freetype rpm's come inst

[PHP] Re: mysql blob datatype for documents

2005-04-18 Thread Satyam
"Dave Bosky" <[EMAIL PROTECTED]> wrote in message Would it be better to store uploaded pdf, word, or excel documents in a MySql blob field rather than keeping them in a directory? I really want to secure the documents and limit document access to specific users. Curious Dave -

[PHP] mysql blob datatype for documents

2005-04-18 Thread Bosky, Dave
Would it be better to store uploaded pdf, word, or excel documents in a MySql blob field rather than keeping them in a directory? I really want to secure the documents and limit document access to specific users. Curious Dave HTC Disclaimer: The information contained in this message m

[PHP] explode a string

2005-04-18 Thread Sebastian
$string = '4:gaming,5:hardware,3:software,8:security'; what is the best way to explode then loop this string after its taken apart. output should be something like: $id = 4 $cat = gaming etc.. im just looking for the best/fastest way to do this. the string can grow to 200 or so bytes, maybe mo

Re: [PHP] stripping of the last character

2005-04-18 Thread Chris Kay
use substr($recipients,0,1); to remove the last char and ereg_replace(","," ,",$recipients); to add the spaces Hope this helps CK On Mon, Apr 18, 2005 at 12:05:42PM +0100, Ross wrote: > I have a large group of email addesses serperated by commas. I need to trim > off the very last comma > >

Re: [PHP] stripping of the last character

2005-04-18 Thread Sebastian
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],'; echo str_replace(',', ', ', substr($recipients, 0, -1)); - Original Message - From: "Ross" <[EMAIL PROTECTED]> > I have a large group of email addesses serperated by commas. I need to trim > off the very last comm

[PHP] stripping of the last character

2005-04-18 Thread Ross
I have a large group of email addesses serperated by commas. I need to trim off the very last comma $recipients = [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED], Also how would I add a space after every comma? to give [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] many thanks

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Dan Rossi
already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors.

[PHP] Question regarding PDF creation

2005-04-18 Thread Mário Gamito
Hi, I'm using FPDF (http://www.fpdf.org/) to create a... PDF. I'm trying to use a variable inside an instruction, but i'm getting errors or malformed PDFs and i can't figure how to overcome them. This instruction $pdf->Cell(60,10,'Powered by FPDF.',0,1,'C'); inserts a line in the PDF, starting

[PHP] ldap_connect error

2005-04-18 Thread Steve Turnbull
Hi I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, and MySQL 4. When I installed php, I used apt-get, and included in the list of modules was libapache2_mod_php4 php4 php4-ldap ... PHP works fine, and a test phpinfo() brings up all of the expected parameters (at least I

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors. E_NOTICE and E_STRICT are still triggering this callback method, so i have to make a check that the code is not one of these. I have error_reporting to ignore both of t

Re: [PHP] Setting permissions such that file can be included but not open directly

2005-04-18 Thread Dasmeet Singh
Kim Madsen wrote: -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 9:43 PM To: 'Dasmeet Singh'; php-general@lists.php.net Subject: RE: [PHP] Setting permissions such that file can be included but not open directly directly to private/includefile.php can