Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0
Hiya Everyone! came up. I kept getting the error message on some files with a Warning: Failed opening '...' for inclusion () in Unknown on line 0. I did some troubleshooting but with no luck. test to see if you don't have a prepend statement around! -- 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, e-mail: [EMAIL PROTECTED]
[PHP] session problems
Hi! I have a problem with sessions. I have an application that runs in a browser and on some menu's it window.opens other windows with the same session. let's say that on the main window I have the interface to a tool to do traceroute to a host. In that main window I enter the host to traceroute to and click submit. The form is submitted to another script in a new window with the PHPSESSID in the url because only authenticated users are allowed to use the tool. The secondary window takes the value of the host from the $_POST and runs traceroute and waits for it to finish to display the output. The problem is if I minimize the secondary window and try to go to another menu on the main window before traceroute finishes... I believe that the main script cannot get a lock on the session file and hangs on session_start(). What could I do to make the second script have read-only access to the session file.. not interrupting the activity of the main script. Thanks, Mihai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file download in IE
Hi! How on earth do I make Internet Explorer to download a file generated with: header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=$fname); include($this-dir . $fname); exit; It works on http but I need it on https and if I try to download it through https Internet explorer says it can't find the website.. after it asks me if I want to save the file. I have checked the page and it works with: netscape under windows and konqueror, galeon, netscape under linux. I have seen reports on the web about this feature of Internet explorer and they all say to download some service pack.. I have updated my internet explorer to the latest 6 version with all the updates on the web but it still does not work! Anyone knows a workaround for this? I don't want to do it with header (Location: somefile) because the file that I want to make available for download is outside the webroot and i want it to be accessible only through my script. Thanks a lot! Eagerly waiting for a response, Mihai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Linux PHP editor
try nedit from nedit.org you can download the patterns from the site to do php syntax highlight.. I have combined it with cervisia from kde 3 and made it look smth like an IDE :) .. and I've been working 4-6 hours per day for about half an year with it with no problems. I also have tried Quanta but it is too huge for nothing... but if you need syntax completion maybe you should take a look at it. Good luck in your open source trip ;) -- Negrea Mihai web: http://www.negrea.net On Friday 09 August 2002 02:11 pm, [EMAIL PROTECTED] wrote: JJ Harrison\ writes: I just switched over to Red Hat Linux from Win2k... Only to find my fav editor only works on windows systems... could someone suggest a good replacement? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php simply vi or vim of pico :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Linux PHP editor
On Friday 09 August 2002 02:29 pm, John Wards wrote: Try Zend studio if you have the mulla it rocks! http://www.zend.com/store/products/zend-studio.php John Wards SportNetwork.net yeah.. and if you have 3-4 netscapes open and xmms for music, kmail for spams, mysql and apache locally you'll also have to buy a two GHertz Computer with only one of RAM ;) i have tried zend also, but on my Intel PIII 750 with 256RAM was not worth. anyway.. everybody takes what it needs.. so evaluate and choose! -- Negrea Mihai web: http://www.negrea.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session not working
echo session_is_registered(uname); echo session_name(uname); ? a href=file2.phpclick here to go to next page/a try here: a href=file2.php??= sid;?click here to go to next page/a -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Adding zeros to date
if you can't do it with date() use substr(0.$month, -2, 2) On Friday 05 October 2001 09:44, Daniel Alsén wrote: Hi, is there a easier way to add zeros to date than the script below? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me. Is it? $date_time_array = getdate (time()); $date = $date_time_array[ mday]; $month = $date_time_array[ mon]; $year = $date_time_array[ year]; if ($month 10) { $month = str_replace(1, 01, $month); $month = str_replace(2, 02, $month); $month = str_replace(3, 03, $month); $month = str_replace(4, 04, $month); $month = str_replace(5, 05, $month); $month = str_replace(6, 06, $month); $month = str_replace(7, 07, $month); $month = str_replace(8, 08, $month); $month = str_replace(9, 09, $month); } if ($date 10) { $date = str_replace(1, 01, $date); $date = str_replace(2, 02, $date); $date = str_replace(3, 03, $date); $date = str_replace(4, 04, $date); $date = str_replace(5, 05, $date); $date = str_replace(6, 06, $date); $date = str_replace(7, 07, $date); $date = str_replace(8, 08, $date); $date = str_replace(9, 09, $date); } $datemonth = $year . $month . $date; echo $datemonth; # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] regarding password in mysql?
Hi dearest friends, while insertion of an employee number and password i am inserting like insert into employee values('$empid',PASSWORD('$passwd')); how to decrypt it while comparision during login. Thanks in advance Regards -Balaji - you get the password from the user login into $loginpasswd; - you do a select * from employee where empid = \$empid\ AND passwd = PASSWORD(\$loginpassword\) if the result is empty the login is incorrect -- Negrea Mihai web: http://negrea.sio.net email: [EMAIL PROTECTED] phone: +4093612495 ICQ: 102093534 -- 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, e-mail: [EMAIL PROTECTED]
[PHP] pcntl_fork
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Does php 4.2.3 support pcntl_fork from the php compiles as module in apac= he? I have configured php with --enable-pcntl and it says: Call to undefined function: pcntl_fork() Thanks, - -- Negrea Mihai http://www.negrea.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9/zkM8hhhNOp8KlQRAt17AJ96DpQKFwlqN+Sl2wN03mFI7UKaKACgjgyx Xs9KP0mSYLY3fyDGeYBw07U= =Fxs2 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pcntl_fork
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 And.. it works from the command line if I use the php binary On Tuesday 17 December 2002 17:33, Chris Hewitt wrote: Negrea Mihai wrote: I have configured php with --enable-pcntl and it says: Either php being used is not compiled with this option (what does phpinfo show? Did you restart Apache)? Call to undefined function: pcntl_fork() Or pcntl_fork() is not a function provided with --enable_pcntl. I can't think of any other possiblities. HTH Chris - -- Negrea Mihai http://www.negrea.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9/0Kx8hhhNOp8KlQRApI5AJkBwsUzB/p1fU/yYgXJ3pCEJs6QUwCfbe0k AVb/78TX1n4ZewT/i2Xn/6o= =HMVZ -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pcntl_fork
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 forgot to say: I have php 4.2.3 On Tuesday 17 December 2002 17:28, Negrea Mihai wrote: My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 And.. it works from the command line if I use the php binary On Tuesday 17 December 2002 17:33, Chris Hewitt wrote: Negrea Mihai wrote: I have configured php with --enable-pcntl and it says: Either php being used is not compiled with this option (what does phpinfo show? Did you restart Apache)? Call to undefined function: pcntl_fork() Or pcntl_fork() is not a function provided with --enable_pcntl. I can't think of any other possiblities. HTH Chris - -- Negrea Mihai http://www.negrea.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9/0ND8hhhNOp8KlQRAkxZAKCAsCJhmSv9pAsmG3JRLBmGvUFrKwCeIOGg fNkYcsz9W5f71rawYmwE9l8= =qhRx -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disable pic copy/save?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There is no client side solution. The only one I see is serverside: to put a text on the image, a bit transparent so that it does not affect very much the image but it can't be used. - -- Negrea Mihai http://www.negrea.net On Thursday 23 January 2003 12:17, Martin Hudec wrote: H it might be done by checking which mouse button is pressed using javascript :) but i think this works only in Iexplore ;)...i used such code on my webpageit shows only copyright etcanyway user does not need to rightclik and save if he knows where is his browser cache located. Martin On Thursday 23 January 2003 10:57 am, Jason Wong wrote: On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote: Hi! A client wants to test market two versions of an advertising but wants to disable the users' ability to copy/save the ads (right click, copy/save). How can this be done in PHP? It can't be done, period. You need to get the data to the browser for it to be displayed. Once it's on the user's browser a determined user will be able to save whatever it is that's being displayed. -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+L8M98hhhNOp8KlQRAgZ8AJsFU+rVYUep9IB/EDzG6XpSyyrsCwCgvE+Z S4pfbI10n0sqjf8buSZ3p9Y= =ADeG -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exclude some results with mysql
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 use like SELECT name FROM users WHERE email not like '[EMAIL PROTECTED]' On Monday 03 February 2003 13:05, Clement Noterdaem wrote: what's wrong in this SQL line?? SELECT name FROM users WHERE email'[EMAIL PROTECTED]' (...) I want every names, except people with an email @domaine.com... - -- Negrea Mihai http://www.negrea.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD4DBQE+PlP88hhhNOp8KlQRAnZJAJdj/txQ/hnxlDTYA7dLW2VcmloCAJ9Px8fN rAC32oNdKnyYx/mcSGrxpg== =LkxR -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php