Re: [PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Marek Kilimajer
Kenn Murrah wrote: I'm trying to open a new window on top of the current window, and it does that, but the "original" (bottom) window changes to read "Object Window" ... I can get back to the original with the "Back" button but of course don't want to ask that of the user ... I simply want a new

Re: [PHP] how can i use sessions with frames

2003-11-19 Thread Marek Kilimajer
phptom wrote: Hi folks, I want to use a frameset with two frames, one leftFrame and one rightFrame. sometimes i need to change both frames at the syame time. Frames should not make muh problems the loginpage is a single frame window. How do i have to write my php code to prevent all these

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Marek Kilimajer
Andrea Pinnisi wrote: I've made a php script that works fine on many servers, but in one of them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my cookies, and not GET or POST vars! I need to user _REQUEST and not _GET or _POST for some reason, and I can't change all the scripts (2

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Marek Kilimajer
J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders. Is there a quick way to disable the submit button at leas

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec("tar -C /scripts/ -zxv --preserve-permissions -f " . "/scripts/mailfiles.tar.gz") or die('Tar failed!'); My problem is

Re: [PHP] time out for mysql_connect

2003-11-21 Thread Marek Kilimajer
Diana Castillo wrote: Is there anyway to set a time out on this command: mysql_connect($host, $UN, $PW); so that if it can´t connect after a certain amount of time, it returns an error and the program continues? ini_set('mysql.connect_timeout', ... ); -- PHP General Mailing List (http://www.php.n

Re: [PHP] system("traceroute host"); not working with new apache upgrade

2003-11-21 Thread Marek Kilimajer
Robert Morrison wrote: Hi there, I'm sorry if this is the wrong place to ask this question but I am new to these newsgroups. We have found that servers using php 4.3.3 that were happily running this command: system("traceroute "); have now ceased to work since the last apache upgrade. Ping still w

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will all

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will all

Re: [PHP] Removing security-problematic chars from strings

2003-11-21 Thread Marek Kilimajer
John W. Holmes wrote: My only point was that I felt you _did_ need to use regular expression to ensure you're only converting paired tags. Just using str_replace() could leave orphaned tags unless you're keeping a count of what's been replaced. :) I would suggest to use xml parsing functions to

Re: [PHP] Re: Running PHP for different virtual domains on different Apaches

2003-11-22 Thread Marek Kilimajer
Tim Garton wrote: Problem #2 is that the use of PHP makes each Apache process consume more memory. The process consumes more memory even when it is serving static (non-PHP) files such as a JPG. It would be more efficient to have a pool of small processes serving static files, and some larger proces

Re: [PHP] Why MySql doesn't free space when erasing BLOB fields?

2003-11-23 Thread Marek Kilimajer
OPTIMIZE TABLE tbl_name M wrote: Hello, sorry this mysql question here, but I cant't answer this one. I have database with BLOB fields to hold pictures (60-90 kb each). Actually I am erasing these BLOB fields (move '' into and update rcord) to free some space from my DB, but space is not released

Re: [PHP] First Day of Week

2003-11-24 Thread Marek Kilimajer
Shaun wrote: Hi, Given any particular date, how can I find out what the first date of that week is i.e. the Monday of that week? Thanks for your help This will get you started: strtotime('monday', $timestamp); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] $$vars and security

2003-11-25 Thread Marek Kilimajer
Phillip Jackson wrote: function escape(){ while (list($key, $value) = each($_POST)) { $value = trim(mysql_escape_string($value)); global $$key; $$key = $value; } } 1. The function does not detect if magic_quotes_gpc are on, post vars would be double escaped then. 2. $value might be an arr

Re: [PHP] $ of variables, php, mysql

2003-11-25 Thread Marek Kilimajer
Eugene Lee wrote: Try using more variables to make life a little easier to parse: $colname = $_FORM['form'] $query = "select {$colname} from structure"; $result = mysql_query($query); while (($row = mysql_fetch_array($result)) !== false) {

Re: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Marek Kilimajer
Tony Crockford wrote: Hi bit confused! here's what I want to do: get a numeric value from a MySQL table, do a calculation, then on another PHPpage update the numeric value in the table. what I don't want is anyone else getting the same number from the table before I've updated it. what PHP w

Re: [PHP] $$vars and security

2003-11-25 Thread Marek Kilimajer
Chris Shiflett wrote: Yes, that's it. I know this may sound like a huge hassle compared to a nice one-size-fits-all data filtering function, but I personally would never rely on myself to be able to predict all of the different types of attacks that people will come up with. There are many people

Re: [PHP] Locking mysql tables with PHP

2003-11-25 Thread Marek Kilimajer
Wouter van Vliet wrote: I may be wrong here, but doesn't PHP let MySQL retain the locks when you've connected with the mysql_pconnect(); function? (persistent connect, I would expect locks to get released on a disconnect, which usually happens on a page refresh (new mysql_connect() call). That is o

Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Marek Kilimajer
David T-G wrote: % % When I hit Reply my message would then automatically reply to the list and % not the author. Less hassle for me when replying and less risk of forgetting % it. Much better for you to Do It Right, perhaps including changing to a real mail program. See the archives for the ful

Re: [PHP] array problems

2003-11-25 Thread Marek Kilimajer
Curtis Maurand wrote: Hello, consider the following code (content.txt is tab delimited). $city = "Ipswitch"; $content = fopen("content.txt", "r"); $city_found = 0; while (!feof($content) && $city_found == 0) { $my_line = fgets($content, "r"); $content_array = explode("\t",$my_line);

Re: [PHP] $ of variables, php, mysql

2003-11-26 Thread Marek Kilimajer
Eugene Lee wrote: On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote: : Eugene Lee wrote: : > : >Try using more variables to make life a little easier to parse: : > : > $colname = $_FORM['form'] : > $query = "select {$colname} from structure"

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote: Hi all! Its really strange/weird problem for me. it says::: Fatal error: Call to undefined function: mysql_connect() in /home/abcde/dfdfdfd/incfiles/db.inc on line 24 till afternoon site was running fine with all mysql connection . but suddenly its showing that error

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote: it says --without-mysql -- i don know .. how suddenly this can happen Binay You might have some other version of php installed that was used instead. Check your startup scripts. ps ax |grep httpd will tell you where apache reads its configuration, is it the one it should u

Re: [PHP] Socket problems

2003-11-26 Thread Marek Kilimajer
Technical Services wrote: I am trying to use a php include provided by a 3rd party. In the include the code is trying to open a socket however I get the following error: errno 38 - Socket operation on non-socket however if I check the server the file requested exists and is chmoded 777. Does anyo

Re: [PHP] how can I capture/ or make a history file?

2003-11-26 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hello all, I want to make a history file while runing a script in a shell. Does anyone know how to store all the history and the result to a file I want? what is the command for it? thank you in advance Joshua Use readline extension -- PHP General Mailing List (http://

Re: [PHP] array problems

2003-11-26 Thread Marek Kilimajer
Curtis Maurand wrote: Sorry, its a typo. it should be: $city = "Ipswitch"; $city_found = 0; $contentfile = fopen("content.txt", "r"); while (!feof($contentfile) && $city_found == 0); { $my_line = fgets($contentfile, 16384); $content_array = explode("\t",$my_line); if ($content_array

Re: [PHP] Wrong output with a - PLEASE HELP

2003-11-27 Thread Marek Kilimajer
A. Mikkelsen wrote: Problen with format.. But when I ECHO 'new_loc_path' in a function I get S:\\Script\\License\\ But I want go get S:\Script\License\ can anyone help ??? magic_quotes_gpc is on, addslashes() is run on each get, post and cookie variable.

Re: [PHP] array problems

2003-11-28 Thread Marek Kilimajer
Curtis Maurand wrote: OK. That worked, thanks. Is it me, or is that rather odd behavior? It is you ;) Shouldn't array elements set within a loop be available to me outside the loop if the loop exits normally? A loop is not a function (well it is, sort of.) Should I declare the variable as

Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Marek Kilimajer
Philip J. Newman wrote: http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... It's not suddenly, someone must have recompiled php without gd/jpg support. Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/cru

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
$string = str_replace("\n", '', $string); David T-G wrote: Hi, all -- As has been discussed before, the nl2br function doesn't actually convert newlines to breaks but instead is more like "nl2nlbr". That is, input like this becomes input like this instead of inputlikethis -- PHP

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
David T-G wrote: Marek, et al -- ...and then Marek Kilimajer said... % % $string = str_replace("\n", '', $string); That didn't work for me. Interestingly enough, in light of Leif's post, neither did \r\n in the search pattern. Hmmph. Well, thank heave

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Marek Kilimajer
David T-G wrote: Are you sure about that? He had "/\r\n|\n|\r" which, once I close the search delimiter, certainly should capture a mac end-of-line... My bad, I should not aswer questions at 4:30 a.m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Refreshing in forms using post

2003-12-01 Thread Marek Kilimajer
What header are you using? If you use Location header, this should not happen. Matt Grimm wrote: Suppose I have a form. Upon submission, the metadata is posted to a processing script (a separate PHP file), which parses it and then sends the user back to a particular page using the header functio

Re: [PHP] Upload issue - The 2MB barrier...

2003-12-02 Thread Marek Kilimajer
Kim Steinhaug wrote: That leaves me with the httpd.conf settings which is supposed to work, also according to the PHP documentation. Just need to locate this file first... $> locate httpd.conf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to split a string of numbers into segments.

2003-12-02 Thread Marek Kilimajer
list(, $year, $month, $day) = Tom wrote: I agree that preg_match generates an array, but I cannot assign to it directly, and in your example I have 4 elements in the array, not three. Array ( [0] => 20031202 [1] => 2003 [2] => 12 [3] => 02 ) I suppose something like preg_

Re: [PHP] XML, strings and foreign (swedish/danish) characters

2003-12-02 Thread Marek Kilimajer
Victor Spång Arthursson wrote: I'm on the point of almost giving up trying to get XML and PHP to sing along, but I'll throw out a question here first. I'm having severe problems getting PHP and XML to work with XML-files that contains foreign characters. Doesnt matter if i type the foreign cha

Re: [PHP] Finding array in MySQL (I'm not asking the right question)

2003-12-02 Thread Marek Kilimajer
"SELECT email FROM table WHERE id IN ('" . implode("','",$array) . "')"; And don't forget to check if $array really contains only numeric values. Dave G wrote: PHP Gurus, What I'm trying to do must be both common and simple, but I'm not asking the question right because I can't find the

Re: [PHP] Premature end of script headers: php.exe

2003-12-04 Thread Marek Kilimajer
This is a common error with php/iis combination, google for the error string to find possible solutions. Goran Ristic wrote: Hello, I have a problem. When I start my PHP script, I get message "Premature end of script headers: php.exe". How can I solve this problem? -- PHP General Mailing List (

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Jay Blanchard wrote: Yes you can, but 'tis not a swell idea. You can exec the chmod command exec("chmod 0777 /directory/*"); You still cannot set all sub directory and files within those permissions. Best to loop through and set each as needed, don't forget to cahnge them back. Yes, you can: exe

Re: [PHP] Re: for help :how to detect norton client through php socket

2003-12-04 Thread Marek Kilimajer
Why are you asking this on php list? You might want to do it in php, but it's not a php problem. Ask the sofware vendor if it is possible. lph wrote: why ? I manager a network including 2000 hosts, and i want to post the hosts ip and department not installing the norton client on our web pag

Re: [PHP] SID problem

2003-12-04 Thread Marek Kilimajer
Before session_start() Binay wrote: I have one more question. Is it necessary to call ini_set before session_start()?? or any where in the scope of the script? - Original Message - From: "Wouter van Vliet" <[EMAIL PROTECTED]> To: "'Binay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: T

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Justin Patrin wrote: In all fairness, that's not a very good solution. Using system commands makes your script not cross platform, meaning it can't work on Windows. For a better solution try writing a recursive chmod script that sets the permission, the loops through the files and calls itself

Re: [PHP] preg_match

2003-12-05 Thread Marek Kilimajer
If $thumbname does not contain any regular expression syntax characters, it mean $item must begin with $thumbname to match the expression. Even a dot is a syntax character, the code should better be: if (!preg_match("/^".preg_quote($thumbname)."/",$item)) preg_quote will escape special characte

Re: [PHP] PHP5 XSLT how to.

2003-12-05 Thread Marek Kilimajer
XML support has been completely redone in PHP 5, all extensions are now focused around the excellent libxml2 library (http://www.xmlsoft.org/). Try libxml2 documentation. William Bailey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello again. I am currently testing the php5 beta

Re: [PHP] count()

2003-12-06 Thread Marek Kilimajer
Anthony Ritter wrote: Greetings- I'm have the follwing string called $text and throughout this string I'd like to split this into an array by calling spliti() at the tag called PAGEBREAK. So, I count the array elements starting at 0 and get to 9. When I call count(), I get 11. Could somebody pleas

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Marek Kilimajer
Ryan A wrote: Hey, Thanks for the heads up but I have a heck of a lot of images and the site has pretty good traffic so I cant afford to do this on the fly, I was looking for something where you just drop all the images into a folder, run the script and pick it up in the output folder all ready fo

Re: [PHP] Undefined index???

2003-12-12 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: On Friday 12 December 2003 15:43, [EMAIL PROTECTED] wrote: I keep getting this error: Notice: Undefined index: tutor_id in /usr/local/.. What does "undefined index" exactly mean?? I did a search on the web but couldn't find any solutions. Basically it mea

Re: [PHP] count the elements of each dimension of the array

2003-12-13 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have this script: This is illegal. Only one pair of empty square brackets is allowed. How whould php know where to add the new key? $ojpp[][] = "1"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_start() make netscape 4.7 reload page.

2003-12-14 Thread Marek Kilimajer
Jonathan Zhang wrote: test.php --> For Win2kpro+netscape 4.7,all form data you enter in this page will lost when resize the browser's window size, ns4.7 have reload this page when resize the window. But if you remove the session_start() from this page, the issue will not exist. Is there any sol

Re: [PHP] How do i save images created using PHP

2003-12-15 Thread Marek Kilimajer
Please be more specific. [EMAIL PROTECTED] wrote: hi, i am able to create images in php (png, jpeg) in IE. What has IE with creating images? > when i try to save the image it gets saved to the directed path. when i try to open the saved document i get an error message What error message? Where d

Re: [PHP] Your Opinion

2003-12-16 Thread Marek Kilimajer
For correct benchmarking you should run the test also when $foo == 'string' Gerard Samuel wrote: Looking to squeeze as much out of my core scripts (not that they are slow ;) ). The thought arose that I can replace simple functions like is_string(), is_array() with simpler php code. For example -

Re: [PHP] sending a pdf document to a network printer

2003-12-16 Thread Marek Kilimajer
There's no other way, only system command. Shay wrote: I am trying to senf a pdf (or any other file for that matter) to a network printer. i would rather not do it with a system command, is there a bulildin way of doing so. i am going in circuls an d could't find anyway to do it. Thanks. -- PHP

Re: [PHP] Regex to grab a Windows Path from a String...

2003-12-17 Thread Marek Kilimajer
if(preg_match('/]+src[ ]*=[ ]*(|"|\')[a-z]{1}:\\\/i', $string)) echo "local links used"; [EMAIL PROTECTED] wrote: My regex skills are serious lacking and after scouring the net for relevant links I'm a bit stuck. I've got a textarea field where I pull user input from, and I'd like to search thi

Re: [PHP] Where'd my session go??

2003-12-17 Thread Marek Kilimajer
It's the garbage collector - session.gc_maxlifetime setting. The setting is server wide, unless you use your own session storage functions. Anthony wrote: I've got an issue with an app I wrote. I store some information about the user and if they are logged into the app in session variables. Th

Re: [PHP] Addslashes limit

2003-12-17 Thread Marek Kilimajer
Cesar Cordovez wrote: HI! Is it just me or addslahes truncates the result to 65535 chars? Any comments? Or can it be that a blob field in a MySQL database is just 65535 chars, I don't think so... Cesar. BLOB is just 65535 chars. Use MEDIUMBLOB (2^24 bytes) or LONGBLOB (2^32 bytes). Also tex

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote: how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know what is h

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote: i tried this but to noavail. anyother sugestion really this problem is really annoying me now Haseeb The browser might be timing out. You should regulary send out some dummy output and flush() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Marek Kilimajer
What filesystem and OS is this? Anthony Kaufman wrote: PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared out at "random" intervals of time. We assume that the randomness is due to our session.gc_probability setting of "1" causing it to

Re: [PHP] include files

2003-12-19 Thread Marek Kilimajer
See function debug_backtrace(), it's available since 4.3.3 Todd wrote: Hi, Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: --- main.php --- include('include.php'); f

Re: [PHP] serialize and unserialize

2003-12-22 Thread Marek Kilimajer
You should use stripslashes to get rid of escaped characters in $_COOKIE['data']. Then remember to use addslashes when you want to use $data or $chksum in sql queries. [EMAIL PROTECTED] wrote: Hello all i need a little help with serialize and unserialize here is my code 'cart', 'y' => $pass

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Marek Kilimajer
Ed Curtis wrote: If I understand you correctly, when you call window.close on the next page you want it to close the child window. I am not sure if this is possible with Javascript if you go to a new page, it might be. You would want to not call window.close but something like myPopUp.close() o

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Marek Kilimajer
Did you try session_cache_limiter('private_no_expire')? Andreas Magnusson wrote: Thanks for your reply! Have a look at: http://pear.php.net/package/HTTP_Download I looked at it and it's hard to see what it does differently from what I do... And the first comment of: http://www.php.net/manual

Re: [PHP] magic_quotes_gpc setting question.

2003-12-26 Thread Marek Kilimajer
Rajesh Kumar wrote: Hello, Here I've got a few related questions, which are not stated explicitly in the manual. 1. The manual says that the magic_quotes_gpc setting cannot be set at runtime. Is it not possible to set this setting in an ini file, and parse it with the parse_ini_file() func

Re: [PHP] Insert into array...

2003-12-26 Thread Marek Kilimajer
Please don't start a new thread by hijacking an existing thread. Always start with "new massage". Simple answer for your question is: foreach($orders as $order_key => $dummy) { $orders[$order_key]['Newitem'] = "something"; } Andras Kende wrote: Hello All, I would like to put 1 new field

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Marek Kilimajer
post_max_size should be greater than upload_max_filesize. What is the setting for max_input_time? Chris wrote: post_max_size: 8M upload_max_filesize: 10M what quota and disk space affect the web server process and temp dir This site is hosted by a third party: Disk space is 400MB only a fraction

Re: [PHP] multiple select option alternative to field_name[]

2003-12-29 Thread Marek Kilimajer
Use this.form.elements['select1[]'] Terence wrote: Dear All, The only way I know to retrieve all the values from a multiple select field is to use the square brackets after the field name ie. user_id[] The problem however is that when I use a javascript function to transfer the items from multip

Re: [PHP] Is It Just a Matter of Getting the Pathname Righr?

2003-12-29 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Again, I am on a Macintosh PowerBook, where my hard drive is, in fact, named a variation of "My Hard Drive" (with cap letters and spaces, as the Macintosh allows). So this brings me to my first questions: Do I change the line $dirName = "c:/csci/mm" to something like $dirNa

Re: [PHP] Is a while loop the most efficient way to send out multiple emails?

2003-12-30 Thread Marek Kilimajer
Dave G wrote: So my question is, is there a way more efficient than while loops to send out multiple emails with personalized information? Is it the mail() command that takes time, or the mysql_fetch_array(), or both? Any suggestions would be greatly appreciated. It's the mail() fun

Re: [PHP] Problem with INSERT Query

2003-12-30 Thread Marek Kilimajer
Do you understand the request - response process? User requests a page, php buids the page and sends it to the user, user's browser displays the page, users views it and takes some action (follows a link, submits a form) and the whole process repeats. [EMAIL PROTECTED] wrote: Hi all: Well, whe

Re: [PHP] Production Websites (error loggin)

2004-01-03 Thread Marek Kilimajer
Does apache have permissions to write to the file and directory? Aidan Lister wrote: If anyone has successfully got php error logging working on a production website, could you please reply with the steps taken? I'm using RH7.3, Apache1.3x, PHP4.3x My php.ini has: log_errors = On error_log = /va

Re: [PHP] finding phpize

2004-01-04 Thread Marek Kilimajer
Install php*-devel package for your distribution. I'm sure there is a x-window application in your distribution that will help you in the future, or use rpmfind.net to search for the filename you are missing. Ryan A wrote: Hi guys, I am trying to install Turck MMCache on our server but have no i

Re: [PHP] cache_limiter & cache_expire

2004-01-04 Thread Marek Kilimajer
Eli Hen wrote: Hello All, I would like to do that the session will expire after X minutes, and the page at the client will expire after Y minutes. How can I do that? I understand that session_cache_limiter() function determines who can cache the page: - pulic:proxies and clients. - private

Re: [PHP] php files not looking right

2004-01-04 Thread Marek Kilimajer
1. Use an editor that can work with unix newlines, most developer editors can. 2. Use some tool that can convert between various newlines - search the web. Command line utility todos/fromdos is one, but it might be available only on unices. John wrote: hi, i must have downloaded my php files

Re: [PHP] generating .doc on the fly

2004-01-06 Thread Marek Kilimajer
Simply create a html file and give the user impression that it's in doc format - output the right header and give it .doc extension Naveed Ahmad wrote: I want to save a document in .doc format on the fly but my server is running on a linux machine. Can I still make use of COM object? Or there is

Re: [PHP] Verifying a url

2004-01-07 Thread Marek Kilimajer
There is a "official" variable - $_SERVER['HTTPS'] - that is defined only if https protocol is used. Ivo Pletikosic wrote: It did not work for me but since I have only one http port and one https port on my server i use instead if( $_SERVER['SERVER_PORT'] == "80" ) echo 'http'; C. -Origi

Re: [PHP] i need help help with include

2004-01-07 Thread Marek Kilimajer
include('../../../functionfile'); or something similar PHP wrote: Hi I created a directory and files 3 directory's down root/dir1/dir2/dir3/files now i need to include my function file out of the root root/dir/funtionfile How do i do this? I cannot create a htacess file on this server nor

Re: [PHP] php5 overload()

2004-01-08 Thread Marek Kilimajer
Alex Crivat wrote: Hallo, I;ve just installed php5 and found that overload() function does not work. Actually it does not exist...I get this error : Fatal error: Call to undefined function overload() in /usr/share/pear/DB/DataObject.php on line 2889 Any ideas ? 10x overload is the standard behavior

Re: [PHP] Dynamically Created Arrays

2004-01-09 Thread Marek Kilimajer
This should be what you need: if(!is_array($conf[$name])) $conf[$name] = array($val); else $conf[$name][] = $val; Cameron B. Prince wrote: Hey guys, I'm making progress on my perl to PHP conversion project but I need some help... I have a configuration table in MySQL made up like this: CREATE T

Re: [PHP] writing Excel files through PHP

2004-01-10 Thread Marek Kilimajer
Use full uri. But the user needs to be online while viewing the xls file. Other option is to create web archive. It's a mime encoded file, save an excel file with an embeded image and you will see what it is. Binay wrote: Hi all, I m generating an Excel file though PHP by sending the appropriat

Re: [PHP] Re: deamon / server

2004-01-11 Thread Marek Kilimajer
Decapode Azur wrote: Is it possible to make php scripts working like deamons and build something like a server? What you trying to achieve... Well nothing particular, just wondering howto... For exemple, the script make some calculations, but niced 19 in background and/or when the computer is id

Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Marek Kilimajer
Binay wrote: + How to create web archvie which will be mime encoded file and then saving as excel file .. plz direct me to the resources where i can find more information about it .. or tell me how can i proceed to it. Thanks + Web archive is

Re: [PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Marek Kilimajer
t contains require_once('classes/_dentonaproject/page_dentona.class.php'); then in page_dentona.class.php you should still use require_once('classes/design/page.class.php'); The working directory is c:\webpage\ in this case. Hope this will help you. Marek -- PHP General Mailing

Re: [PHP] view outputed headers?

2004-01-12 Thread Marek Kilimajer
http://sk2.php.net/manual/en/function.headers-list.php says: no version information, might be only in CVS Scott Taylor wrote: What is the easiest way to view the headers that a PHP page has put out? I've seen the |var_dump(headers_list()); on php.net but this always gives me an error (such as

Re: [PHP] _("What does this do?")

2004-01-12 Thread Marek Kilimajer
It's an alias to this function: http://sk2.php.net/manual/en/function.gettext.php Kelly Hallman wrote: I just ran across this syntax in someone else's code. I can't detect any difference between these two expressions: _("String value") and "String value" Is there a difference? What does _("xyz"

Re: [PHP] session expires

2004-01-12 Thread Marek Kilimajer
Andreas Magnusson wrote: Hi, I wonder if anyone knows of a way to detect if a session has expired (when your session.cookie_lifetime != 0). I've tried to see if the session-vars are unset, but that doesn't seem to be the case, still everythings seems to be lost. My problem is that I have a page whi

Re: [PHP] Re: session expires

2004-01-13 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: A tricky way to achive this is: 1. Start the session when the user request the login page 2. Send a hidden field with the PHPSESSID 3. When receiving the post compare the current session id with the submitted by the form, if they match it's likely the sessi

Re: [PHP] is ' or " different in MS-Word then ascII?

2004-01-14 Thread Marek Kilimajer
I don't know what the character is but if you paste it into the textarea, ord() will tell you. Roger Spears wrote: Hello, This question may border on OT... I have a web form where visitors must enter large amounts of text at one time (text area). Once submitted, the large amount of text is st

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Marek Kilimajer
http://sk2.php.net/manual/en/language.operators.logical.php either one of OR or || would do Dave Carrera wrote: Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If((

Re: [PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Marek Kilimajer
Freedomware wrote: My first question is really trivial, but I noticed that Dreamweaver likes to display my PHP includes code like this... When I do a search and replace function, it often jumps onto another element's line, like this: I changed the code to this:

Re: [PHP] addslashes

2004-01-15 Thread Marek Kilimajer
Send us the resulting javascript code. João Cândido de Souza Neto wrote: Hello to all. I'm using str_replace("\r\n","\\r\\n",addslashes($campo)) to add "\" in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the jav

Re: [PHP] How can I read 8 bytes from a binary file and cast it as a double?

2004-01-15 Thread Marek Kilimajer
http://www.php.net/unpack SVERRE WISLØFF wrote: How can I read 8 bytes from a binary file and cast it as a double? sw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Return-Path header and sending email with php

2004-01-26 Thread Marek Kilimajer
You can use a class that sends mails by connecting directly to smtp server, e.g. http://www.phpclasses.org/mimemessage Chris Balay wrote: Good Day Coders - I have built a newsletter program with php. It sends out an e-mail to a couple thousand subcribers every day. All works well. My problem is

Re: [PHP] cron: No such file or directory

2002-06-03 Thread Marek Kilimajer
Cron doesn't have the same enviroment like normal shell, so it knows nothing about $HOME, you need to use full path. Edgard Berendsen wrote: >I'm trying to do a cronjob. >If I'm right I should have a php file with >#!/usr/lib/php -q >at the beginning and a cronjob like > >MAILTO="[EMAIL PROTEC

Re: [PHP] Re: PHP & Hex Numbers

2002-06-04 Thread Marek Kilimajer
You might consider using BCMath Arbitrary Precision Mathematics Functions Jason Teagle wrote: >- Original Message - >From: "Jonathan Rosenberg" <[EMAIL PROTECTED]> >To: "Jason Teagle" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Monday, June 03, 2002 3:18 PM

Re: [PHP] Download Script - Newbie Alert

2002-06-04 Thread Marek Kilimajer
You can also check $HTTP_REFERER, it's much simpler Marek Clay Loveless wrote: >Something else along these lines -- I really, really wish that more sites >that use this method would test across multiple browsers and platforms. > >I agree with everything John is saying

[PHP] include("remote host") under w2k problem

2001-11-01 Thread Marek Wysmulek
under Linux - works perfectly. So (I'm sure -because Include_path has other adaptation) it is not the reason. Will be wery glad for answer. Even "Leave it !" - but with explanation ;-))) Marek. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] ISAPI modul for IIS5.0

2001-11-04 Thread Marek Erneker
Hi, I have IIS5 on W2k Server, and a can not use isapi modul from php 4.0.6. If I using modul from 4.0.pl2 then everything is OK, but when I use 4.0.6 then it is not functionally and i must use cgi. Can you help me (someone). Thanks,

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Marek Kilimajer
You need php-cli rpm, it's not an extension, it's command line binary. Ron King wrote: When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked OK. I could c

Re: [PHP] Nested If...Else...

2004-07-24 Thread Marek Kilimajer
Robb Kerr wrote: On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == "AnswerPage") { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) { $vB

Re: [PHP] Unexpected T_ENCAPSED...

2004-07-24 Thread Marek Kilimajer
Harlequin wrote: I've been working on a query to retrieve a user's data based on their UserID that is stored in a variable "$_SESSION['logname']" which underneath I convert using: $UserID = $_SESSION['logname']; But when I execute a SELECT query: $CaptureDetails = "SELECT * FROM RegisteredMembers

<    9   10   11   12   13   14   15   16   17   18   >