Re: [PHP] Open a PDF in the mode https://....

2004-09-23 Thread Marek Kilimajer
Andre wrote: Yes I am using sessions? Use session_cache_limiter('private_no_expire'); IE needs it. -Original Message----- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 23 de Setembro de 2004 18:28 To: Andre Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Open a PDF i

Re: [PHP] Any idea how this is done?

2004-09-23 Thread Marek Kilimajer
Mag wrote: Hi, I was just looking at the demo of Comus Thumbs at http://nibbi.net/scripts/comus_thumbs.php and I see he has an option there to lighted/darken/sharpen/resize/thumb images dynamically on the page (the image gets lightened etc without reloading the page) any idea how? its listed

Re: [PHP] Any idea how this is done?

2004-09-23 Thread Marek Kilimajer
Marek Kilimajer wrote: He also has an option to thumb an image, where you click on the image and a rectangle appears, then when you accept it, it cuts the image exactly according to the rectangleI am not too familier with imagemagik..is this easy to do? DHTML should be able to do this. I just

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Hi, I am a newbie to php so pls be gentle. I am having problems while downloading a file via this script. I am sending the following headers and then a call to readfile function in the swcript. This leads to opening of a download popup but the file name being shown is the

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Hi there, I am (again) trying to download a file from off the server and force it to use the download dialog box. I have been trying pclzip.lib for compression and used my own headers (as depicted below). This version did zip nicely and the files were intact in the tmp

Re: [PHP] New Line Character while downloading a file!

2004-09-24 Thread Marek Kilimajer
Divick Kishore wrote: Indeed you figured it right. I do have a new line at the top of the Do you have header('Content-Disposition: attachment; filename=' . $relative_file); or header('Content-Disposition: attachment; filename=' . $fileName); ? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] HTML in Download data?

2004-09-24 Thread Marek Kilimajer
Thomas Hochstetter wrote: Should I redirect after the reading of the file? This somehow does not make much sense ... I first need to let the user decide to download the file or not. No, you should output a html page containing: download Then, in downloadzip.php send the headers, build the zip and

Re: [PHP] php upload script problems

2004-09-25 Thread Marek Kilimajer
AMC wrote: Hi, I have the following php page. The page just opens up blank and I assume I made an error I cannot see. I'm new to php and any help would be greatly appreciated: What is your register_globals and display_errors setting? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Parse Error... can not find cause of error....

2004-09-25 Thread Marek Kilimajer
GH wrote: Greetings... I am getting a parse error (line 45) and I do not know what is causing it... since I have the same code with minor changes nyc_ renamed to fed_ and it works... can someone please assit. code is also available at http://www.phpaste.com/536 File: /var/www/html/cert/mod/nyc

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: Hi folks. I've recently moved my site to a shared host, and this is the first time I've had to set up my site in a really restrictive environment, and I'm running into problems getting smarty installed. Using the basic example set up from the Smarty docs, when I run the file I g

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: I tried that and got the same error. I'm trying to place the smarty directories outside my webroot to minimize security risks, however given my experiences thus far, I don't really see that being possible. It should not matter, unless open_basedir is in effect, but that would be

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: Hello, I need to use FTP to upload a local file to a server. The uploads must be done through FTP and not HTTP. Unfortunately, the example in the manual is not working for me. If someone has any suggestions I would really appreciate it. Not much information. There is not error chec

Re: [PHP] Problems installing smarty on a shared host

2004-09-25 Thread Marek Kilimajer
Pablo Gosse wrote: [snip] It should not matter, unless open_basedir is in effect, but that would be another error. I would check if the directories are right, you can start by using relative path. [/snip] Just the relative path from smarty.php, ../../../home/pablogosse/smarty/Smarty.class.php An

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: i am trying to get a file from my local c drive to my server using something other than a form. Hmm, you can run an ftp server on your local machine and use php script on the server to retrieve the files. http server will work just as well. Is this what you want? thanks, julian "J

Re: [PHP] ftp_put Problems

2004-09-25 Thread Marek Kilimajer
Julian wrote: well, i suspect i am at a dead end. here is the layout of things. we want to put up an internet kiosk at certain thoroughbred auctions to allow people to send ecards as well as contact associates. we have a web cam on the kiosk and a partner came up with the idea of letting them sen

Re: [PHP] OT - HTML Terminal ?

2004-09-26 Thread Marek Kilimajer
Dave Restall - System Administrator,,, wrote: Hi, this is severely off topic so please feel free to ignore it :-) I have an intranet application that currently is accessed using a browser, no problems there, however I have been asked if I can get rid of the browser so that the user's are not encour

Re: [PHP] Conceptual ?: using 'multi-purpose' form for validation

2004-09-26 Thread Marek Kilimajer
Whil Hentzen wrote: I can get a single form to call itself again if there's nothing fancy going on. This code will prompt the user for their mail if it doesn't already exist, and if the email does exist, provides some data out of database. $email = (isset($_POST['email']) ? $_POST['email'] : '')

Re: [PHP] What's going on?

2004-09-26 Thread Marek Kilimajer
Phpu wrote: For the last 2 days i haven't received emails. What's going on with this mailing list? It might have something to do with the fact your clock is 2 days behind. Have you been time travelling? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] GLOBAL reserved word

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: Dears,We can introduce a external variable to our function with GLOBAL reserved word.same following : $n=3 function nn() { global $n; echo $n; }//end of func ?> But i need to introduce a array.Name of my array is month. I typed "global $month;".But it didn't wo

Re: [PHP] php security on shared hosts

2004-09-26 Thread Marek Kilimajer
Tim Traver wrote: Chris, I believe that is the reason that the PHP group came up with the open_basedir directive. The open_basedir prevents you from looking into anything higher than a particular directory tree using PHP. So, a combination of safe_mode and open_basedir should prevent your scri

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: You should use XML files,But XML files will be lock when you want to multiuser read it. It's not necessery to lock files for reading. Also arrays is having overhead for your server.Best way is using databses. Yours,Mohsen. --- Victor Spång Arthursson <[EMAIL PROTECTED]>

Re: [PHP] Version Controlling

2004-09-26 Thread Marek Kilimajer
Stephen Craton wrote: This is slightly off topic, but I feel it's a little something that's worthy of discussion here. I've been interested in running CVS for a while now, but being on a Windows machine is holding me back somewhat, and I'm not entirely sure CVS is even something I need. Basically,

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Marek Kilimajer
Pahlevanzadeh Mohsen wrote: Dear,I mean that you can't read XML file in multiuser mode. Can you elaborate? And what about other files? Are they different? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: hi again all, I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) mucho grassy arse.. What kind of response? If the server is alive, if t

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared I cant find any functions that might help me test the response of a proxy server b4 attempting to use it. Do i need to use exec() with ping? Anyone know how to do that? (if that's the case...) What kind of response? If the server is

Re: [PHP] PHP Counter?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: Hi all, I have a script that at the present just outputs '$count .''' after each iteration of a foreach() loop. I have set implicit_flush so that this works. That's clearly monkey poo though eh? :-) Do I have to get into unkown waters and try and make PHP talk to JS to achieve

Re: [PHP] Testing Response of A Proxy with PHP?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared OPTIONS * HTTP/1.0 More at http://www.freesoft.org/CIE/RFC/2068/63.htm oookay... i think i understand the page, but how would i imlement that $fp = fsockopen ("proxy.server.net", 8080, $errno, $errstr, 30); if (!$fp) { ech

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Marek Kilimajer
Jordi Canals wrote: On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven <[EMAIL PROTECTED]> wrote: Why use fpassthru? I just use readfile, is there a difference? The main difference is with fpassthru you never show to the user the exacr location of the file, so must use the script to download it. In ex

Re: [PHP] Safe mode & imagecreatefromjpeg

2004-10-13 Thread Marek Kilimajer
Paulo JF Silva wrote: Hi, I have PHP 4.3.5 and safe mode on. When I create a new image with imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user. [this is in a shared host]. I would like to know if there is any way to create the image with my user... I can workaround mkdir & st

Re: [PHP] Best way to figure out whether a query returns RESULT or NON-RESULT

2004-10-16 Thread Marek Kilimajer
Karam Chand wrote: Hello, mysql_query() returns non-false even if there was an UPDATE statement and the query was successful. But if I put the $result variable in mysql_num_rows() it returns an error, $result in invalid handle. I was asking how to know that where its an UPDATE statement so I dont

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file This is a line\nThis is another line This is another string\nw

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file

Re: [PHP] poor image quality in php

2004-09-27 Thread Marek Kilimajer
Mike wrote: hi! I have a problem with the imagejpeg() function - or related. I must specify that I'm a newbie with image handling with php and that a piece of advice would really help me right now. The deal is that I want to create a (smaller) resized copy of a certain image using this code: $vech

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Marek Kilimajer
% operator: http://www.php.net/operators Nick Wilson wrote: hi everyone, I have a simplified bit of code below: What i'd like to do is have a count inside that loop that will trigger some action every 20 iterations of the foreach. Like this: How might i do that? Much thanks... -- PHP General Ma

Re: [PHP] Escaping Regex Chars with addcslashes()

2004-09-29 Thread Marek Kilimajer
Nick Wilson wrote: Hi all, If i want to find a url on a page, there are some chars i need to escape right? like '/' and '?' do i also need to escape '.'? Are there any other things that might pop up in a url that I can escape with addcslashes()? Much thanks Don't use posix regexp, but use per

Re: [PHP] splitting string into array

2004-09-29 Thread Marek Kilimajer
blackwater dev wrote: How can I take a string and create an array? Example, A12B05C45D34 I need to split this into chunks of three A12,B05,C45..etc? Thanks! $chunks = preg_split('/(.{3})/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Input to PHP from Java

2004-09-29 Thread Marek Kilimajer
Rajesh Batchu wrote: Hi, I have a page with SSL enables as below. https://email.website.com/usrfolder/one.php For this page, my customer is posting some XML data using a java output stream as below. ( pseudo code) URL url = new URL(_url); _httpsConnection= (HttpsURLConnectio

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
blackwater dev wrote: Hello all... I finally have an upload script partly working but am not running into this problem. I have this code which executes when the user visits the image upload page: if (!file_exists("../images/property_$id")){ mkdir("../images/property_$id", 0700);} $upload_dir =

Re: [PHP] safe mode?

2004-09-29 Thread Marek Kilimajer
n Wed, 29 Sep 2004 21:48:05 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: blackwater dev wrote: Hello all... I finally have an upload script partly working but am not running into this problem. I have this code which executes when the user visits the image upload page: if (!file_exists

Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] how to make my page refresh automaticly? Can i use PHP function? what is it? [/snip] You cannot do it with PHP, you use a meta refresh tag (http://www.w3.org) Or header refresh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Test - Is the list working?

2004-09-30 Thread Marek Kilimajer
Jay Blanchard wrote: Odd stuff this morning. I think it's overloaded with unsubscribe requests. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would li

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-09-30 Thread Marek Kilimajer
e_path. On Thu, 30 Sep 2004 18:27:52 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Marek Kilimajer
Ed Lazor wrote: -Original Message- Not Really. Are you sure? http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html Stored procedures and functions are a new feature in MySQL version 5.0. That means you can only experiment with them, not realy use them in your projects. -- PHP Genera

Re: [PHP] list of Months

2004-10-01 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?> $i "; } ?> What about dumping the $month_names array and using strftime()? -- PHP General Mailing List (http://w

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Olaf van der Spek wrote: Hi, What is the PHP policy regaring crashes and fatal errors? Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? No -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Christophe Chisogne wrote: Olaf van der Spek wrote: Are scripts allowed to cause a crash or fatal error of Apache/PHP itself? Oh yes, at least with php4 as an apache module :( On a Debian Woody server, php4 (4.1.2) sometimes crashes at logrotate time (with apache doing gracefull restart) with the

Re: [PHP] Re: PHP (anti) crash policy?

2004-10-01 Thread Marek Kilimajer
Manuel Lemos wrote: Hello, On 10/01/2004 11:44 AM, Olaf Van Der Spek wrote: But this does mean the policy does allow scripts to crash the engine/server. The way I see it, calling exit() is not a crash. If the code was Indeed, I should've added "or fatal error". But from the script's point of v

Re: [PHP] set multiple variables

2004-10-01 Thread Marek Kilimajer
Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") { header("Location: http://www.google.com/search?&q=huzzah";); Redirect browser exit; } But I want to specify multiple IPs. What's the best recommended way for doing that? There was one request

Re: [PHP] Detecting Mysql server is running

2004-10-02 Thread Marek Kilimajer
barsalou wrote: I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some cases, I wouldn't have passwords, so a mysql_connect wouldn't work. I'm sure, at any given time, there is a mysql server running somewhere

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: This (header() function) works only if this is the first output sent to browser so later in the script this doesnt work anymore, i've tried that. After that you get error messages like: "Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: Ok, i can live with it, include works but this doesnt replace the whole running script, only the rest of the script (what is still coming), so if a few things have been written in "a.php", when "include('b.php') is executed, this "b.php" does not replace all the (allready written) out

Re: [PHP] Including function libraries

2004-10-03 Thread Marek Kilimajer
Jasper Howard wrote: it seems possible that this is the problem, you called it, "checkLoggedIn()" in your script then tried to call, "checkloggedin()". Notice the caps aren't there when you tried to call it. Case does not matter for functions. Only for variable names. -- PHP General Mailing List (h

Re: [PHP] Retrieving large results from a database ends in memory error.

2004-10-03 Thread Marek Kilimajer
Use mysql_unbuffered_query() RaTT wrote: Hi Guys I am trying to retrieve over 5000 rows from a mysql database, i have to use a "SELECT *" query as i am required to use all the fields for display. Everytime i try to run the code below i get a Allowed memory size of 10485760 bytes exhausted (tried

Re: [PHP] How to install php5 on Fedora Core2

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: I have some difficulties when installing php5.0.2 on FC2 I used the default settings: ./configure --with-apxs2=/usr/sbin/apxs build build install The installation is complete but when I test phpinfo() in a .php file from browser, the browser says "Can't find the server" Can't find

Re: [PHP] How to install php5 on Fedora Core2

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: Finally I succeeded on the installation. Just manually add all --with-EXTENSIONS and remove all unvailable ones. The procedure is too completed. I hope there should be some scripts which automatically check the availability of each extension and generate the configuration file. Any

Re: [PHP] Why my browser always chooses UTF-8 charset?

2004-10-03 Thread Marek Kilimajer
Teng Wang wrote: Although I have included charset (GB2312) information in my html/php files. And my browser has "Auto-select" settings. How to make the browser select charset correctly, W3C: Conforming user agents must observe the following priorities when determining a document's character enc

Re: [PHP] session timeout

2004-10-04 Thread Marek Kilimajer
Philip Thompson wrote: Hi all. I have users log into my site to perform certain actions. However, I want to create a timed session so that it automatically logs them out after a certain amount of time. I am using `session_set_cookie_params()` to create the amount of available time that the user

Re: [PHP] objects - is that possible at runtime in php4 or php5 ?

2004-10-04 Thread Marek Kilimajer
Alawi Albaity wrote: I want to create and defined variables of an object in runtime , is that possible ? I can do that with arrays but I want the access it as variable from obbject it self and not like member of an array are defined on object before I load it ! What about trying it before asking? -

Re: [PHP] Session.gc_maxlifetime?

2004-10-04 Thread Marek Kilimajer
Suhas wrote: Hello, I just want to make sure that I understand this concept. When i read thr' docs, session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up and default value is 1440. My guess is : A. 1440 seconds from last visit to the page

Re: [PHP] Can anyone help me with Attachments?

2004-10-04 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I'm trying to send Attachments via a mail script... The only problem is, my attached files go corrupted or damaged, and I don't understand why! Can anyone help me? I've already made 2 posts earlier with my code and all and no one responded. Really need some help here. View th

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements["chkmodels[]"]; The above should work. Is it really the first form on the page? -- PHP General Mailing L

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
] document.forms['formName'] thank again. Angelo Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 1:52:02 PM >>> Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = d

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php warnings anywhere.. When I open the pdf in a text editor. Send a text file as an attachement, it will be easier to spot the error. You can th

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server is

Re: [PHP] Saving non-english text into database problem !!

2004-10-06 Thread Marek Kilimajer
Dre wrote: Hi I have a strange problem that I can not figure out how to solve .. I'm trying to save some data into a regular mySQL database table by using a normal php insertion script but I'm trying to save "Arabic Text" and here comes the problem .. When I'm performing the insertion by writing th

Re: [PHP] mysqli -> mysql

2004-10-06 Thread Marek Kilimajer
http://bugs.php.net/bug.php?id=29860 Whitehawk Stormchaser wrote: Hi! I have a trouble with building MySQL and MySQLi support together with PHP... Basically my config says: ../configure --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config (and other switches) but I get this: /usr/lib/mysql/li

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-07 Thread Marek Kilimajer
PHPDiscuss - PHP Newsgroups and mailing lists wrote: he problem is that SOMETIMES, my SID gets embedded in the URL, although at the begining of every page I have this code: ini_set(session.use_only_cookies, "1"); The above sets sessionuse_only_cookies to 1. I did not miss a dot, session and use_on

Re: [PHP] getting rid of NOTICE

2004-10-07 Thread Marek Kilimajer
Roger Thomas wrote: I dont know how to explain this but when you work with an ldap attribute, they are case sensitive. jpegPhoto was what the schema was written with. However when you retrieve that into PHP, you accessed them with all lower case. So accessing userPassword attribute in ldap will b

Re: [PHP] Re: [PHP5] How to knwo object class name in a function called statically

2004-10-07 Thread Marek Kilimajer
M. Sokolewicz wrote: Frédéric hardy wrote: Hello - I have this code : abstract class foo { private __construct() {} public static getInstance() { static $instance = null; if (is_null($instance) == false) return $instance; else { $class = __CLASS__;

Re: [PHP] Page cannot be displayed after form submission

2004-10-07 Thread Marek Kilimajer
Philip Thompson wrote: Hi all. I have a form that calls the same page whenever it is submitted. It does some error-checking to make sure that all the appropriate fields were filled in by the user. So, if there's an error, it stays on the same page and lets the user know what they need to fill in

Re: [PHP] function.filetime in PHP5

2004-10-08 Thread Marek Kilimajer
Nunners wrote: Does anyone know what function.filetime has been replaced by in PHP5? no such function ever existed. Choose one of the following: filemtime filectime fileatime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be session.gc_divisor. And you need to start at least one other sessi

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend= 100 Should be

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Graham Cossey wrote: [snip] If you are right, then this is a severe design bug. Depends on your point of view. It is a sideeffect of loading current session (and thus accessing it) before the session gc is called. So the question is, should the session module give up on current session just because

Re: [PHP] Quotes """ in form textarea fields

2004-10-08 Thread Marek Kilimajer
Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is "high" Submitted to FROM2.php we get: Bob is \"high\" In a hidden field in FROM2.php we store the value: So it looks: (hope this is what you meant) You forgot ending quote, but that does no

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
Hendrik Schmieder wrote: Marek Kilimajer schrieb: Hendrik Schmieder wrote: Anyway , if the apache service is stopped (I am not speaking about a crash) all session files must be deleted. Why? Why should users loose their sessions just because I need to restart web server? OK, good point. So I

Re: [PHP] URL verification

2004-10-08 Thread Marek Kilimajer
Bruno Santos wrote: Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user i

Re: [PHP] Sessions not destroyed

2004-10-08 Thread Marek Kilimajer
M. Sokolewicz wrote: Hendrik Schmieder wrote: Ok, I think you're all missing a few points here... First of all, every time a session is started/accessed/written to/whatever, PHP makes a check, it calculates , using gc_probability/gc_divisor, if it should run the gc (Garbage Collector) on this cal

Re: [PHP] read aspx files

2004-10-08 Thread Marek Kilimajer
celso andrade wrote: hi all, how do i setup a apache+php server to read aspx files as php files? i need it to parse aspx files. Find this line in httpd.conf: AddType application/x-httpd-php .php Add aspx extension and restart apache -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: hi all, Im getting an http 411 error when trying to post data with php's cURL functions. The spec says ***The message for this error code is "Length Required." The server refuses to accept the request without a defined Content- Length.*** Im confused on 2 points: * Is it the

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Nick Wilson declared * and then Marek Kilimajer declared * How to resolve this? header('Content-Length: ' . strlen($data_you_are_posting)); Ok, im with you Marek but how/where do i put it in my curl function? Not with CURL_POSTFIELDS for sure..

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Nick Wilson wrote: * and then Marek Kilimajer declared Opps! CURLOPT_HTTPHEADER I go play with it now ;-) Sorry, I got it mixed :) But you figured it out. do you know if the lenght includes the args? like this strlen("val=$var

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Opps! CURLOPT_HTTPHEADER I go play with it now ;-) Sorry, I got it mixed :) But you figured it out. do you know if the lenght includes the args? like this strlen("val=$var&val2=$var2"); This one. Don't forget to urlenc

Re: [PHP] CPU usage @5% during 2 minutes

2004-10-20 Thread Marek Kilimajer
Janke Dávid wrote: 2004-10-20, sze keltezéssel 00:19-kor Ed Lazor ezt írta: How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. You're creating a form with o

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-10-20 Thread Marek Kilimajer
failed to open stream: Operation not permitted in /var/www/garyhotko.com/html/Test/test.php on line 2 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear') in /var/www/garyhotko.com/html/Test/test.php on line 2 On Thu, 30 Sep 2004 18:17:05 +0200

Re: [PHP] Simple Time Question

2004-10-21 Thread Marek Kilimajer
Ben Miller wrote: Probably a stupid question, but hopefully has a simple answer. Is there a way to get Grenwich Mean time? time() and date() functions that I can see only seem to get date/time from the server, which knowing where that is, could easily figure out GM time, but would rather go t

Re: [PHP] I cannot move files

2004-10-21 Thread Marek Kilimajer
Apache needs write permission to /home/yaki/y_uplds/ Giacomo Cantilli wrote: Hi, I am building a mailing list. My OS is MandrakeLinux 10.0. I need to move an uploaded file. That's the script: - function show_info($file) { $utfn = $file['userfile']['tmp_name']; $u

Re: [PHP] Question: Simpler loop

2004-10-22 Thread Marek Kilimajer
Stuart Felenstein wrote: I have rows of input fields Each row contains 3 fields. The user must fill out the entire row (all 3 fields) for things to work right. I want to generate an error in case they have only filled in 1 or 2 of the boxes. Thinking I might use something like this: foreach($ski

Re: [PHP] Serial Communication

2004-10-22 Thread Marek Kilimajer
Ulrik Witschass wrote: Hello List, I am searching information about serial communication with PHP on Windows machines. I want to communicate with a colorimeter via a COM-Port, using a PHP-GTK application. Can anybody point me into the right direction (a webpage, a PHP class/function, a PHP-GTK list

Re: [PHP] currency

2004-10-22 Thread Marek Kilimajer
Perry, Matthew (Fire Marshal's Office) wrote: What is the best way to output 38884 as $38,884.00? number_format() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form containing 2 menus not returning anything

2004-10-23 Thread Marek Kilimajer
Ken Tozier wrote: Thanks John, that did the trick. I'm curious though, the PHP book I'm reading (PHP and PostgeSQL, Advanced web programming) specifically states that it's not necessary to grab form variables in this way, claiming PHP extracts all form variables behind the scenes for you. Was my

Re: [PHP] How to parse this?

2004-10-23 Thread Marek Kilimajer
Jerry Swanson wrote: I have huge html file. I want to parse the data and get everything between and What function is good for this purpose? preg_match() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control Structures

2005-02-06 Thread Marek Kilimajer
Wil wrote: To PHP list: The following code is attempting to compare the salary to the four other pre-defined variables with if and else statements. So the final output should result in 4 different statements. What is the best way to do this? Following is the code... if ($salary < $currentmax

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Marek Kilimajer
Greg Donald wrote: On Mon, 07 Feb 2005 22:25:46 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I think this is an extraordinary (and unjustified) level of paranoia. cat /dev/mem | strings | egrep "^[0-9]+$" cat: /dev/mem: Permission denied :) You need root access. If anyone gains root on you

Re: [PHP] pdf properties

2005-02-10 Thread Marek Kilimajer
Jason Motes wrote: Hello, Is there anyway to retrieve the properties from a pdf file using php? When you right click on a pdf file in windows you can see the title of the file and you can change this property there also. I wrote a php page that lists all files in a certain directory. I want to

Re: [PHP] Foreach problem.

2005-02-10 Thread Marek Kilimajer
Richard Lynch wrote: Mirco Blitz wrote: HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_SIZE [8] => pdf [9] => dolink [10] => link [11] => erst

Re: [PHP] Checking the Version of mySql and settings on server

2005-02-11 Thread Marek Kilimajer
GH wrote: Is it possible to check via php what version of mysql is running and if it is a 4.1.x or better version to see if it is using the --old-password switch or not? I would like to know so that I can code both ways and just have a conditional statement direct which code is used... hmm, mysql,

<    11   12   13   14   15   16   17   18   19   20   >