Re: [PHP] There is an error with SSL support.

2003-09-22 Thread Marek Kilimajer
I should have mention it. ssl support is compiled directly into the dll, so you must comment out extension=php_openssl.dll in php.ini Astron of BrOnX wrote: Thank you for helping me Marek, but it is like puzzle :) Now i got this errors :) Function registration failed - duplicate name

Re: [PHP] Problem's addign a script to my web page.

2003-09-22 Thread Marek Kilimajer
user directory not created!'); } I had to create directory with ftp so I could later open it using opendir(). Because chmod does not work for you you will have to even create files using ftp functions. Stratis Aftousmis wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote:

Re: [PHP] javascript open window and a PHP script...

2003-09-23 Thread Marek Kilimajer
You should use: Add or Update Your Event Propably won't fix your problem but this will help javascript disabled browsers. jsWalter wrote: I have a link on a page... Add or Update Your Event This open the PHP file just fine and passes the vars fine. But I need a new window to

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Marek Kilimajer
Javier Muniz wrote: interface BoardMember { function position(); // used to set board position of board member } interface Employee { function position(); // used to set job title of employee } class BusyBoardMember implements Employee, BoardMember { function position(); // what d

Re: [PHP] php4ts.dll and Win2000 IIS server

2003-09-23 Thread Marek Kilimajer
of BrOnX wrote: Dear Marek Kilimajer and others, I have done all thing that you told me.. In my local (winXP, IIS5.1) SSL is working fine now.. I have replaced php4ts.dll Manuzhai suggested to use php4ts.dll from http://ftp.proventum.net/pub/php/win32/misc/openssl/ and it is okay now.. But

Re: [PHP] bugs.php.net

2003-09-23 Thread Marek Kilimajer
http://cvs.php.net/cvs.php/php-bugs-web?login=2 Amith Varghese wrote: Can anyone tell me where I can download the bug tracking system used for bugs.php.net? I don't see any links on the PHP site (or i'm probably missing something quite obvious) Thanks Amith -- PHP General Mailing List (http://www

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
I bet you don't indent your code either. And all white characters are useless too, they only slow interpreter down. Good coder will understand this at a glimpse: if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_params);$back_url_params=substr($HTTP_GET_VARS['origin'],$pos_p

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Marek Kilimajer
session.gc_maxlifetime integer session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does

Re: [PHP] Php returns wrong content-type (one php, two apaches)

2003-09-24 Thread Marek Kilimajer
This will be some misterios error. I would change more configuration options, namely output log filenames. Well, but this won't help you now. Are you sure the other apache is not runnig? Jan Vitek wrote: Hello, I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine

Re: [PHP] Print current and next three years

2003-09-24 Thread Marek Kilimajer
$current=date('Y'); for($i=0;$i<4;$i++){ echo $current + $i; } Shaun wrote: Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { e

Re: [PHP] Add a leading zero

2003-09-24 Thread Marek Kilimajer
www.php.net/str_pad Shaun wrote: Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? '.$i.''; $i+=15; } ?> Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
Curt Zirzow wrote: cat | realprogrammer | in_a_rush if($p) { $bu = substr( $_GET['o'], 0, $p ); $bup = substr( $_GET['o'], ++$p ); } else { $bu = $_GET['o']; $bup = ''; } This is a real world example of how real programmer in a rush can introduce bugs. Original example did not modify $p (

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
was taken from oscommerce. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with adding text to emails using the date function

2003-09-24 Thread Marek Kilimajer
You are right, the same way as \n is interpreted as a newline. Use single quotes Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Book

Re: [PHP] Select form dynamic creation.

2003-09-24 Thread Marek Kilimajer
Have you considered using multiselect? Jeremy Russell wrote: Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. What I want to do is build a page by first having a selection form. This select state

Re: [PHP] Session info stored on server

2003-09-26 Thread Marek Kilimajer
Lowell Allen wrote: What's actually stored on the server when using sessions? I've built a content management system on a commercial host, PHP 4.3.2, Apache 1.3.28, and use session_save_path() to specify a directory. When someone logs in, I check the username and password against the database, an

Re: [PHP] str_pad

2003-09-26 Thread Marek Kilimajer
No, $line is an object (class instance) and dbranch_no is a property of the object. www.php.net/oop Jeff McKeon wrote: Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the "->" do in: $dbranch = str_pad($line

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Marek Kilimajer
Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); -- PHP General Mailing List (h

Re: [PHP] wml and php

2003-09-27 Thread Marek Kilimajer
Patrik Fomin wrote: Hi, does anyone know how to transfer a variable in wml to php?, i got this script that i made and i cant transfer the wml info to php. the problem is: $latnum2 = "$(nummer)"; if i do a echo $latnum2 it prints out the desired number that was typed in, Does it really? $latnum2 sho

Re: [PHP] mail() and Sender: field

2003-09-28 Thread Marek Kilimajer
Use a class that sends mail by conecting directly to smtp server. For example smtp_message.php in www.phpclasses.org/mimemessage Adam Whitehead wrote: Hi All I'm having a problem using the mail() function of PHP. It seems to vary between platforms (ie. this problem doesn't not occur on my Win32

Re: [PHP] $php_as_cgi == "error";

2003-09-28 Thread Marek Kilimajer
Open the file in a text editor and check if there is any php warning/error showing up. Ms Carlsson wrote: Hello this does not work with apache + suexec and php running like cgi #!/usr/local/bin/php # in top of all php scripts ?> the file downloads but when open i get an error but when i try t

Re: [PHP] PHP coders spare time [OT}

2003-09-29 Thread Marek Kilimajer
Curt Zirzow wrote: And what they do with it... http://zirzow.dyndns.org/html/mlists/php_general/ Curt "CPT John W. Holmes" <[EMAIL PROTECTED]> and "John W. Holmes" <[EMAIL PROTECTED]> is the same address, just a different name (in and out of office ;) John made it to be second. -- PHP Genera

Re: [PHP] restart httpd after php.ini change?

2003-09-29 Thread Marek Kilimajer
I'm not sure if include_path counts for browscap file, I would say no. You should use absolute path. Then restart httpd. David T-G wrote: Hi, all -- We've added a browscap.ini file to our server and I want to 1) make sure it's referenced correctly and 2) know whether or not httpd needs a restart

Re: [PHP] fgets prob... !?

2003-09-29 Thread Marek Kilimajer
I don't think php just comes and changes your output. Check the source html output if it is realy only one #. mArK wrote: H! I have this segment of script... ... $resp = fgets( $sock, 512 ); echo $resp; ... the output must be: [EMAIL PROTECTED] but here came php and take the 3 "#" and convert

Re: [PHP] php and checkboxes.

2003-09-29 Thread Marek Kilimajer
Simple: foreach($_POST['del_checkboxes'] as $id) { $sql="delete from table where id='$id'"; } Checkboxes are created using Angelo Zanetti wrote: Hi all I have a table that is populated from a database which gets the IDs of the records from a php array.Every row in the table has a checkbo

Re: [PHP] General .htaccess question

2003-09-29 Thread Marek Kilimajer
This should not bother you. If you get enough load then .htaccess file is cached in the memory. If your load is moderate then it does not make much difference. And since your webhost enabled this feature they should know what they are doing. Mike Brum wrote: I think I know the answer to this,

Re: [PHP] RE : [PHP] PHP & Rading excel files

2003-09-29 Thread Marek Kilimajer
Given that excel (and generaly any microsoft app/bloatware) puts so much junk into the files that sometimes excel itself cannot read it it is virtualy impossible to write a pure php solution. The easiest path is to use COM and run excel on the server, but this rules out any non windows server.

Re: [PHP] Export resultset

2003-09-29 Thread Marek Kilimajer
I use this class: http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/ DPCMA Metalito wrote: Hi There, New to this list. I would like to know if anybody knows where can I found information about how can I generate an Excel Spreadsheet, with the resulset of an LDAP query that m

Re: [PHP] Central authentication for multiple sites

2003-09-29 Thread Marek Kilimajer
Because the sites are on the same server, it is simple. Use sessions and pass SID in urls to other domains. Fraser Campbell wrote: Hi, Does anyone know of a way to authenticate a person on one site and have that authentication carried through to multiple sites? Basically I'd like to have someo

Re: [PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Marek Kilimajer
Fraser Campbell wrote: Got it. How about this: - every login form sets a session ID - immediately after logging in the user is directed to a page showing that successful login has occurred. The result screen could could have some images (or whatever) such as this: http://www.otherdomain.

Re: [PHP] download queue

2003-09-30 Thread Marek Kilimajer
I would do it this way. Output your files and update bandwith usage: while($out=fread($file, 4096)) { echo $out; UPDATE bandwith_usage SET bandwith_usage = bandwith_usage+1 WHERE second = UNIX_TIMESTAMP() LIMIT 1 if(mysql_affected_rows()==0) { // if this is the first output in this second I

Re: [PHP] WebDAV help

2003-09-30 Thread Marek Kilimajer
http://sk.php.net/manual/en/features.file-upload.put-method.php Oscar F wrote: Hello all, I'm having a problem with PHP/WebDAV. Here's my problem: I am working on a system that keeps track of documents. The documents are stores based on document ids, and the filename is saved on the database

Re: [PHP] newbie about passing value

2003-09-30 Thread Marek Kilimajer
register_globals off? What if you hardcode $id=$_GET['id']; ?? Ben Johnson wrote: Hi, Why is the product_details.php is not getting the id value properly. In the URL it is showing id=1 with along with the correction location and file name. But the page is not getting displayed. On-S

Re: [PHP] download queue

2003-09-30 Thread Marek Kilimajer
5.625 queries per second. Nathan Taylor wrote: Actually, correct that, 200 queries every 8 seconds! It won't just explode, it will create a mushroom cloud while it's at it! - Original Message - From: Marek Kilimajer To: Alex Cc: [EMAIL PROTECTED] Sent: Tuesday, September 3

Re: [PHP] Output data repeatedly more than once

2003-09-30 Thread Marek Kilimajer
Yes, you can. But would not it be smarter to increase the number of copies in the print dialog? [EMAIL PROTECTED] wrote: Hi all, I am creating a simple receipt system whereby user will enter relevant info via a text form and using echo method to output and print the receipt data. I've

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi all, I would like to create a dynamic kinda "Timetable" whereby I can add, del, and modify the data contained in each cell. Besides that, each cell in the table should have its unique colour in which this unique colour can be modified anytime to a different colo

Re: [PHP] Re: regexp: 'a correctly parenthesized substring advanced'

2003-09-30 Thread Marek Kilimajer
Forget regexp and try this function: http://sk.php.net/manual/en/function.token-get-all.php Jaaboo wrote: I give an wrong example. Here is a better one $txt = "func1($par1," 100 (euro)", func2($par2,"(c) by nobody"))"; if (preg_match_all(' / ([a-zA-Z]\w*?) \s* ( \( ( (?>.*?)| .*?(?R)*

Re: [PHP] function mail()

2003-09-30 Thread Marek Kilimajer
Set SMTP setting in php.ini to the smtp server of your provider (and don't forget to restart web server). [EMAIL PROTECTED] wrote: I use mail() function in php, but there's no living mail from my system. MUST be mail() function turn on in some special place (ini file, &...) ?? THANKS. -- PHP Ge

Re: [PHP] An Error Tracking System

2003-09-30 Thread Marek Kilimajer
debug_backtrace() generates a PHP backtrace and returns this information as an associative array. You can use it to find out where the error ocured. Daryl Meese wrote: Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have als

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
ght : 120px; } #mydiv:hover { background-image : url(<a href="http://domain.org/image2.jpg">http://domain.org/image2.jpg</a>); background-repeat : no-repeat; width : 200px; height : 120px; }   David T-G wrote: Marek, et al -- Please excuse this off-topic

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
David T-G wrote: Hmmm... Sounds like I'll have to have a div definition for each of my tabs (about nine), right? Still, it might be worth it if I managed to avoid javascript :-) It does not have to be a div, it can be almost any element. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] if statement

2003-09-30 Thread Marek Kilimajer
if(in_array($k2b, $array)) { ... Steve Buehler wrote: I have an "if" statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b=="/etc/bind/options.conf.wp" || $k2b=="/etc/bind/rndc.conf.wp" || $k2b=="/etc/bind/keys.conf.wp"){ do this1 }els

Re: [PHP] CURL + https

2003-10-01 Thread Marek Kilimajer
Did you compile php with openssl support? Yonatan Ben-Nes wrote: Hi, I'm currently building an e-commerce site and I need to create the connection between the site and the server which validate the credit card. I'm trying to do it with CURL which will post all the information from a secured pag

Re: [PHP] regex/preg_replace() difficulty

2003-10-01 Thread Marek Kilimajer
You can escape the control characters manualy ;) $termWithOptionalBold=str_replace(array('.','\','$' ),array('\.','\\','\$' ), $termWithOptionalBold); [EMAIL PROTECTED] wrote: Regular Expressions: How can I indicate that the contents of a term (user input*) needs to be treated as 'non-

Re: [PHP] PHP_OFFSET_CAPTURE

2003-10-01 Thread Marek Kilimajer
Documentation is little unclear about this, by return means the third argument. Try print_r($hits); Joerg H. Baach wrote: Hi, I have this litte tiny test-script test.php: I would asume that $var would be an array, containing the offsets of the found matches. Instead it is just a simple intege

Re: [PHP] exec command

2003-10-01 Thread Marek Kilimajer
You can use sudo (man sudo), but keep in mind security!!! nabil wrote: hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and shell_exec and system I tried all the following but with no hope exec('useradd -d /home/all -g wahtever -s /b

Re: [PHP] Mail.php help

2003-10-01 Thread Marek Kilimajer
Mentioning your operating system would be helpfull. But try to set SMTP setting in php.ini to your provider's smtp server. Eric Rounds wrote: I have tried numorous email form tutorials, and all have not sent to the recipient. I don't know what is wrong. How do I check to see that sendmail is ins

Re: [PHP] exec shell command from php

2003-10-01 Thread Marek Kilimajer
Did you read my message on sudo? This is how it gets done, so RTFM - http://www.courtesan.com/sudo/man/sudo.html Nabil wrote: hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I want

Re: [PHP] Sort an array of objects

2003-10-01 Thread Marek Kilimajer
Matt Palermo wrote: I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects by either name, size, etc... Please let me know if got

Re: [PHP] Dynamic tables-Change cell colour with drop down menu

2003-10-02 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I do not want to it using javascript as java script can only display data on the client side but not the server side. You can make the data available on the client side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Marek Kilimajer
Current version of PHP cannot forsee the future, this will be worked on when PHP5 is out and stabilized. Untill then you have to make your own judgments, for example if the array you feed into very_slow_func() has more then 1486 elements, your code will time out. Zak Mc Kracken wrote: Hi all,

Re: [PHP] Reloading a specific window

2003-10-02 Thread Marek Kilimajer
Output from action.php: opener.location.reload(); close(); Rich Fox wrote: Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have a main window

Re: [PHP] Reloading a specific window

2003-10-03 Thread Marek Kilimajer
he popup frame and this frame is blank. I am probably doing something very stupid. Marek Kilimajer wrote Output from action.php: opener.location.reload(); close(); Rich Fox wrote: Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, althoug

Re: [PHP] Round a number

2003-10-03 Thread Marek Kilimajer
echo (iny)$number; Shaun wrote: Hi, I have a query that returns a number from culculation in my table. It returns say 4.00, 8.75, 0.00, 12.50 etc. How format the number so that the trailing zeros aer removed i.e. 4, 8.75, 0, 12.5 etc? Thanks for your help -- PHP General Mailing List (http://ww

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Marek Kilimajer
it is virtualy impossible to make the browser forget the credentials. How this is solved is that the logoff link is login.php?logoff=username In login.php you check for $_GET['logoff'] variable, if it is set you will not let the user with the same name ($_GET['logoff']) log in. James D. Stalling

Re: [PHP] str_word_count Broken?

2003-10-03 Thread Marek Kilimajer
str_word_count is available since version 4.3. Check your setup, someone restarted webserver with wrong config directory specified. Steven Walker wrote: I ran into a strange problem this morning. Suddenly I am getting an error that str_word_count is undefined, even though it has been working fo

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
I don't have the sources at hand, but if I remember the width is stored in the class variable 'w'. Scott Fletcher wrote: Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what para

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: Bingo Did a lot of searching and found some code and modify it... --snip-- //Logo $size="100"; //(min 0, max 210; it's for making image big or small, nothing else) $absx=(210-$size)/2; $this->Image('images/Logo.jpg',$absx,5,$size); --snip-- Well,

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Marek Kilimajer
Stephen Craton wrote: So I'm going to have to use a 3rd party script? Is there not a way to make the IP tracker on your own in any way? You can write a script that queries your own ip2geodata database but you would need the database in the first place. -- PHP General Mailing List (http://www.php.

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: I would never guess about the ruler to measure the width because it wouldn't work that way. Why? Because the PDF page can be in any size when I either maximize the Acrobat Reader or use the mouse cursor to make it wider or narrower. This does not help me to measure the actu

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: I don't know what is A4 page. Problem is I don't use PDF very, very often so I'm a newbie on PDF It is a sheet of paper with defined size. Some common sizes: mmin widthheghtwidth heght A4 - 209.90 297.04 8.26 11.69 Lette

Re: [PHP] why does this script mysteriously die?

2003-10-03 Thread Marek Kilimajer
Is safe mode on? Craig Lonsbury wrote: Hi All, I have a script that takes a directory of user uploaded files and resizes them to the required sizes. I was given ~750 test pix to run through, and my solution only sorta works. The problem is that it won't get through the whole batch without dying. I

Re: [PHP] Printer Functions

2003-10-03 Thread Marek Kilimajer
Check the manual. It's windows only extension, you must have php_printer.dll in your extension directory and extension=php_printer.dll must be in php.ini Roger Spears wrote: Hello, I was wondering if anyone has had any level of success with printer functions. I'm trying to get the following co

Re: [PHP] why does this script mysteriously die?

2003-10-03 Thread Marek Kilimajer
Craig Lonsbury wrote: it's not a time limit or safe mode issue, the script is currently running, and has been for about 10 minutes. it's not a fast script =( Craig echo out and flush() each image name you are going to process, the script might be dying on some broken picture. -- PHP General Ma

Re: [PHP] method to prevent multiple logons of same account

2003-10-03 Thread Marek Kilimajer
This has been discused several times befor and the conclusion is that these obstructions are wrong. What if the user loses its credentials and he is still considered loged in. He cannot log in again. If you bind the session to a IP address then you create problems for users behind proxy farms.

Re: [PHP] PHP Notice: Undefined variable

2003-10-04 Thread Marek Kilimajer
Andrew Chernyack wrote: I recommend the next variant if ($_POST["msg"] =="hi") Why? I've created an html file with form's action parameter as info.php that contains phpinfo(). The result was PHP_SELF /~adolf/info.php _POST["a"] dv fdsvz _SERVER["CONTENT_LENGTH"] 10 You see, _PO

Re: [PHP] hotscripts style program

2003-10-04 Thread Marek Kilimajer
You need to create a recursive function: // pseudo code function count_content($cat_id) { SELECT COUNT(*) FROM content WHERE cat_id='$cat_id' $count=sql_result(); SELECT cat_id FROM categories WHERE cat_id='$cat_id' while($cat_id2 = sql_result()) { $

Re: [PHP] $_SERVER['REMOTE_HOST']

2003-10-04 Thread Marek Kilimajer
John Taylor-Johnston wrote: PHP is Open Source. This is the general forum. Here is my suggestion: Create $_SERVER['REMOTE_HOST'] as a variable. $gethost = gethostbyaddr($_SERVER['REMOTE_ADDR']); is getting old. Anyone agree? The problem is that gethostbyaddr is an expesive call, DNS server must

Re: [PHP] stripping comments

2003-10-05 Thread Marek Kilimajer
You will run into more problems and there are many things you need to consider, for example "/*" in a string. But token_get_all() will parse php code for you and will make things much simpler. zzz wrote: I'm trying to strip comments out of my code. I can get it to strip one section of comments

Re: [PHP] Newbie

2003-10-05 Thread Marek Kilimajer
Try http://localhost/phpinfo.php apache serves http requests, you tried opening the file from filesystem. John Hicks wrote: Hi list, I have just installed PHP4.3.3-Win32. I have a book that said create a phpinfo.php ( ) file and place it in my Apache 2 htdocs file. I did this and when I run it

Re: [PHP] null character - file related function

2003-10-06 Thread Marek Kilimajer
You cannot have chr(0) in filenames Martin Straka wrote: Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] IRC

2003-10-06 Thread Marek Kilimajer
Search for "hidden iframe" Paulo Nunes wrote: How can i build a chat using PHP and without refreshing a frame every x seconds? Thanks!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File read and sort question

2003-10-06 Thread Marek Kilimajer
Susan Ator wrote: I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. So far I have been able to put the relevant info from each file into the database t

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Marek Kilimajer
lassname; $test->some_function("Output","Hello World!"); This is not necessery in php. As I know C++ has this feature but only so the class definition can be separated from its implementation. Definition goes to a header file so it can be included in other .cpp files in

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Marek Kilimajer
nces of "needed" objects and using them from others et cetera just as bad/good as not using oop at all. you dont use OOP untill you acctually use classes for more than just embedding functions into them. i hope i make sense? - Original Message - From: "Marek Kilimajer"

Re: [PHP] New to PHP form attributes

2003-10-07 Thread Marek Kilimajer
You should use post method for forms that change state on the server, that way the user gets a warning. And you should redirect after processing the form to another page. if($_GET['action']=='submit') { INSERT INTO table VALUES (NULL, '$_GET[input]' header('Location: ...'); } els

Re: [PHP] Modifying OPTIONS header response

2003-10-07 Thread Marek Kilimajer
Just a wild guess, but try this in apache config: Script OPTIONS /options.php Oscar F wrote: Hello all, I'm working on a php/dav server and I'm having a problem. When the client sends an OPTIONS request to see what methods are allowed, they only get "Allow: GET, HEAD, POST, OPTIONS, TRACE" back f

Re: [PHP] Modifying OPTIONS header response

2003-10-07 Thread Marek Kilimajer
Did you restart apache? It works for me. Before: Allow: GET, HEAD, OPTIONS, TRACE After: Allow: GET, HEAD, POST, OPTIONS, TRACE, PROPFIND, COPY, MOVE, LOCK options.php: header('Allow: GET, HEAD, POST, OPTIONS, TRACE, PROPFIND, COPY, MOVE, LOCK'); ?> Oscar F wrote: Hey Marek, T

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Marek Kilimajer
Ben Edwards wrote: what I don't understand is if $_GET is being used people can just change the URL anyway so why is it an issue? Ben All that it is about that if you have code like this: if($user=='admin' && $pwd=='secretpassword') { $admin=true; } and register_globals on someone can pass

Re: [PHP] GET globals REQUEST the plot thickens

2003-10-07 Thread Marek Kilimajer
Has you mention what php version are you running? Superglobals are available only since 4.1.0 Ben Edwards wrote: From what I have $_REQUEST douse NOT work. As I said vars are being passed on the URL. My code: echo "sec=".$_REQUEST["_section"]."req=$REQUEST_URI"; the output sec= req=/adultdy

Re: [PHP] mysql_fetch_array() not working as expected

2003-10-07 Thread Marek Kilimajer
it works. Anyway to get what I want? Thanks, Chris. As you can see only column names create indexes, not table_name dot column_name. And thus your second id (cc.id) overwrites the first one (c.id) You can make the query: SELECT c.id , cc.id AS ccid , cc.prod_id , p.name and you wi

Re: [PHP] excuting a shell command in linux as root

2003-10-08 Thread Marek Kilimajer
It is questionable if it is really insecure. sudo allows great control over what commands it can run with what parameters. If you combine it with php input checks it gets pretty secure. But that means you HAVE TO know what you are doing. Ryan Thompson wrote: First off a warning repeated many ti

Re: [PHP] session expire

2003-10-08 Thread Marek Kilimajer
Start here: www.php.net/session You should read it from the main heading to the last line of the last comment. redips wrote: I know that if I set a session, by default it will expire when the browser closes. Can I also set a timeout? For example, if the session is idle for 30 minutes it will e

Re: [PHP] trailing carriage return in file

2003-10-08 Thread Marek Kilimajer
trim() Alex Ciurea wrote: hello guys, I don't know how can I eliminate from a file the trailing ? "\n" I have a file that ends-up with one ore more it looks like this: BeginOfFile data here [] end of data EndOfFile after data I have one or more (the file don't ends immediately)

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
safe mode is on, turn it off and restart webserver. Then you can check directory permissions. Chris Blake wrote: Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machin

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Did you edit the right php.ini? Check out phpinfo() output for "Configuration File (php.ini) Path" Chris Blake wrote: On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole bu

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I think that ALL files in other location are parsed, it does not need to be named php.ini Chris Blake wrote: On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for "Configuration File (php.ini) Path" Yep, tried that..

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Then check your httpd.conf for php_(admin_)?(flag|value) Chris Blake wrote: On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Start here: grep -r safe_mode /* ;) Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I thought about it, but safe mode can be set only in php.ini or httpd.conf Burhan Khalid wrote: Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page.

Re: [PHP] configuration class - skeleton code for first OOP adventure

2003-10-08 Thread Marek Kilimajer
ereg_replace('value', 'changed', $contents); will make it: option1 = changed; option2 = changed2; Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving Form Data

2003-10-08 Thread Marek Kilimajer
ONE > TWO checkbox: > You cannot save file input that easily, you have to keep the file on the server and give the user oportunity to change it. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving Form Data

2003-10-08 Thread Marek Kilimajer
PHP wrote: Thanks, I thought of this, unfortuanetly the user uploading the form would have no clue in being able to build the form with the $_POST tags already in it. I lost you. What are you trying to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] session not working in IE 5

2003-10-09 Thread Marek Kilimajer
Binay wrote: Hi all ! My session is not working in IE 5+ but working well with IE 6+. Is there some problem with IE 5+. Please let me know as this being continuous pain for me. Thanks in advance Binay Are you using cookies for storing the session id? Does IE 5 accept this cookie? -- PHP Gene

Re: [PHP] Another file retrieval tact ...

2003-10-09 Thread Marek Kilimajer
Jay Blanchard wrote: Alrighty then, if I cannot get FTP going on the one server then perhaps there is another way to skin the cat that my flu infested mind cannot remember at the moment. I have a server on the network where some files live in some folders that I can retrieve to another server on th

Re: [PHP] Get the name of the form

2003-10-09 Thread Marek Kilimajer
Bertrand Moulard wrote: it is a POST, didn't find anything in the doc about that. I reckon php doesn't handle that as the name is more a html id than part of the form, but need to make sure before telling my work mates to come up with another proposal ;-) You are right, form name is not submited by

Re: [PHP] Am I asking too much?

2003-10-09 Thread Marek Kilimajer
For security reasons mysql_query does not support ; to separate queries. phpmyadmin splits multiple query strings up (PMA_splitSqlFile()) John Taylor-Johnston wrote: $sql1 works, but $sql2 doesn't. Am I asking too much? :=) $sql2 echoes ok. If I copy it and run it in phpmyadmin, it works, but thi

Re: [PHP] Multiple PHP modules

2003-10-10 Thread Marek Kilimajer
Copy the configuration directory to another one, change Listen and Port directive to another port of your choice, set up php and instruct apache to use this configuration: httpd -f /etc/httpd/confPHP5/httpd.conf -DHAVE_PHP5 Ryan Thompson wrote: I thought that might work but the Apache docs

Re: [PHP] form to printer servers w/ip

2003-10-10 Thread Marek Kilimajer
I would execute lpr (man lpr). Louie Miranda wrote: one way i found is, connecting to php socket and going to printer port to send the data. -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Octo

Re: [PHP] Problem :file_exists & japanese filename

2003-10-10 Thread Marek Kilimajer
Is the codepage of filesystem and of the string the same? What do you (Bsee if you list the files in the directory using php? (B (Bumesh wrote: (B (B> Hi Gurus, (B> (B> I am using PHP4 on linux. (B> (B> I am reading the filename from querystring and display it in the browser. (B> Before

<    6   7   8   9   10   11   12   13   14   15   >