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:

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

2003-11-27 Thread Marek Kilimajer
A. Mikkelsen wrote: Problen with format.. TDINPUT TYPE='Text' NAME='new_loc_domain' SIZE='15' MAXLENGHT='20'/TD TDINPUT TYPE='Text' NAME='new_loc_path' SIZE='25' MAXLENGHT='255' VALUE='S:\Script\License\'/TD But when I ECHO 'new_loc_path' in a function I get

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; : $result = mysql_query($query); : while

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

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

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

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[0] ==

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

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

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

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

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); if

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:

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

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

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

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 wherever); have now ceased to work since the last apache upgrade. Ping

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

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

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

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

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

Re: [PHP] language selection with xml

2003-11-19 Thread Marek Kilimajer
Merlin wrote: Hi there, I would like to create a multilanguage website with php. I heared the easiest way is to create an xml file and use this package: http://freshmeat.net/projects/php-xml/?topic_id=92%2C96%2C914 This still looks complicated for me, beside the fact that it depends on an

Re: [PHP] Session trubles

2003-11-19 Thread Marek Kilimajer
mgraf wrote: PHP Version: 4.2.2 Hi I had a problem with my session name. In the php.ini, was set the default name PHPSESSID from the default installation. Now i have the problem, that i use the name audience for my webapplikations with PHPope (http://www.phpope.org) I Set the name in the

Re: [PHP] Session trubles

2003-11-19 Thread Marek Kilimajer
mgraf wrote: PHP Version 4.3.3 Ok i have disabled the autostart. Now is my problem, that php us the transparent sessions, because it append it in the URL. After the login, all works fine, but after 5-6 clicks, i loose the session. It send me a Cookie : Set-Cookie:

Re: [PHP] Forms

2003-11-19 Thread Marek Kilimajer
Matthew Oatham wrote: Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Not a problem... I do try and be thorough when I create mails... I'll be more list friendly in the future... cheers for the heads up! Nw, if I can only solve my prob, I can go home ;-) When you go home, don't forget to turn on your out of office autoreply, everyone

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] rmdir withour rmdir function.

2003-11-18 Thread Marek Kilimajer
Vincent M. wrote: I'm not lucky, there is no ftp access to the server. This can sound a little strange, but there is no... :( Either talk to your host to change their policy or change the host. I don't see any reason why rmdir should be disabled. Or you can use smtp mail class to send mail to

Re: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Marek Kilimajer
PhiSYS wrote: How to get the key of a specific index of array? It seems that key($_POST[$i]) is a wrong syntax. $i is the key, key is the index. I think you are overcomplicating it. Tell us what you want to achieve and someone might come out with a better solution. Marek -- PHP General

Re: [PHP] escaping ' when inside a

2003-11-18 Thread Marek Kilimajer
Curt Zirzow wrote: Don't you want to do: $sql = select subject from subwhile where subject LIKE '%$var[0]%'; I think more precisely: $sql = select subject from subwhile where subject LIKE '%{$var[0]}%'; Either will work, as will $sql = ... subject LIKE '%$var[string_index]%'; -- PHP General

Re: [PHP] An array as an element of a function

2003-11-18 Thread Marek Kilimajer
Jeff McKeon wrote: Is it possible to pass an array as an elemtent of a function?? Yes Something like this: $array1=array(1,2,3,4); $array2=array(a,b,c,d); Function Somefunction($var1,$var2) { someprocess using $array1 and array2; } Somefunction($array1,$array2); This is the right way.

Re: [PHP] PHP command line vars

2003-11-18 Thread Marek Kilimajer
Shawn McKenzie wrote: I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run it, example: php script.php $var=hello The example will not work, command line arguments are traditionaly passed in the form of:

Re: [PHP] syntax problem, constants in quoted strings

2003-11-18 Thread Marek Kilimajer
Adam i Agnieszka Gasiorowski FNORD wrote: How do you insert a constant into a quoted string, do I need to use concatenation operator like this quoted string . CONSTANT . quoted string, Yes or there is some way to insert it inline, like normal variables? No -- PHP

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Marek Kilimajer
Manisha Sathe wrote: I want the session to be accessed from different websites, so i got the answer in this forum only to make use of customised session with mysql. I searched the web and came to know that 'session.save_handler' of php.ini needs to be as 'user' but instead, on my server it is

Re: [PHP] _SESSION, _POST, and _GET

2003-11-17 Thread Marek Kilimajer
David T-G wrote: Yeah. In fact, about half an hour ago I figured that I was spending more time figuring out how to extract in the right order -- or in a limited way -- than I would just doing it right, so I started running through the code looking for any $pw and friends to change :-) When

Re: [PHP] Unexpected result in floor function

2003-11-17 Thread Marek Kilimajer
ruben wrote: Hi: Why is the floor function returning 27564 instead of 27565 in this script? PHP version is 4.2.2. Thanks! Ruben. #!/usr/bin/php -q ?php $b = 275.65 * 100; $b = (int)$b; /* $b was a floating point number with value something like 27564.989, when displayed it shows

Re: [PHP] escaping ' when inside a

2003-11-17 Thread Marek Kilimajer
Adam Williams wrote: If I have the SQL statement: $sql = select subject from subwhile where subject = '*$var[0]*'; Don't you want to do: $sql = select subject from subwhile where subject LIKE '%$var[0]%'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Communicating with remote server

2003-11-17 Thread Marek Kilimajer
Matt Palermo wrote: I am writing a desktop application using PHP-GTK. I would like this program to be able to connect to a remote server, call some functions that I specify, and return the right information (most likely from a MySQL db). I have access to the server, so I can create any and all

Re: [PHP] Communicating with remote server

2003-11-17 Thread Marek Kilimajer
Webmaster wrote: Yes, the remote server does have PHP. This sounds like a good idea. Is it relatively easy to do? I have never worked with HTTP protocol functions for this. Do you know of a tutorial I could look through to learn a little of this? The easiest way is using filesystem functions

Re: [PHP] Communicating with remote server

2003-11-17 Thread Marek Kilimajer
Vail, Warren wrote: The caviate is that anyone who can come up with the correct url (and can access your database machine), will be able to trigger the extract of data. If this is not acceptable, then you need to consider other options. https connection and some secret string in a get variable or

Re: [PHP] rmdir withour rmdir function.

2003-11-17 Thread Marek Kilimajer
ftp_rmdir() Vincent M. wrote: Hello, I can't use the function rmdir: Warning: rmdir() has been disabled for security reasons But I do need to delete a directory with php. How can I do ? Is there any way to delete an empty directory without using the rmdir function ? I tried to use the unlink

Re: [PHP] msession - giving me a hard time

2003-11-15 Thread Marek Kilimajer
John W. Holmes wrote: Heh... okay, let's start over. From Server1: If you create a link like this: a href=server2/page.php??php echo SID; ?Server 2/a The problem with SID is that it is defined as session_name=session_id if the client did not send session cookie. Otherwise it will be an empty

Re: [PHP] CGI error when loading iFRAME

2003-11-15 Thread Marek Kilimajer
Miroslav I. wrote: Hi, people #The problem: There is an error message that stops proper loading of one iFRAME, I couldn't understand what is the problem. Complete error message issued: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers

Re: [PHP] next,key,current question

2003-11-14 Thread Marek Kilimajer
Sara Daugherty wrote: I am having trouble with creating a list box. I am attaching the code. I am not sure the code in the for loop close to the end of the program is correct. If someone could take a look at it I would appreciate it. Thanks, Sara I like to use foreach: foreach($Classes as

Re: [PHP] Headers Sent Message

2003-11-14 Thread Marek Kilimajer
Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in a oscommerce application, however I think it is really a php problem. I get this message when ever I try to

Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread Marek Kilimajer
- Edwin - wrote: On 12 Nov 2003 17:37:58 -0500 Robert Cummings [EMAIL PROTECTED] wrote: It's not active on the main page. It's on the search page. Go there instead. http://www.php.net/search.php And it doesn't seem to work with Opera 6 :) Try the latest version. It works for me ;)

Re: [PHP] C++ objects

2003-11-13 Thread Marek Kilimajer
Sreesekhar Palaparthy wrote: Hi, How do i use a class which is implemented in C++ ,to create instances of that class in a PHP file ?? Can i use shared object concept to achieve this ??? Please help me with this problem.Thank You. You need to write a php extension that will wrap the class

Re: [PHP] session timeout

2003-11-13 Thread Marek Kilimajer
pete M wrote: How do I set the session timeout - eg someone leaves a broweser for say half an hour then have to log in again.. As I'm on an intranet I want to increase ro 3 hours Pete increase the value of session.gc_maxlifetime (in seconds), session.cookie_lifetime should be still 0 (untill

Re: [PHP] What Directory Does --with-java Option Need???

2003-11-13 Thread Marek Kilimajer
Rhugga wrote: It claimed to not find what it was looking for when I try those options. ?? -CC Jonathan Villa wrote: Try simply --with-java=/usr/j2sdk1.4.2_01/ Check config.log, it will tell you what went wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] msession - giving me a hard time

2003-11-13 Thread Marek Kilimajer
Guillaume Dupuis wrote: Hi, I need to keep the same session between several php servers, so I decided to go with msession. Apache(2.0.47), php(4.3.3) and msession(the latest downloaded last week) are all installed on both of my Linux servers (both RedHat 7.2). When I test them independently, all

Re: [PHP] msession - giving me a hard time

2003-11-13 Thread Marek Kilimajer
Chris Shiflett wrote: Are SERVERA and SERVERB in the same cluster? I might be misunderstanding the situation here, but I thought this was the point of msession - to provide a seamless session data store among a cluster of servers without needing to store the session data in a database. I would

Re: [PHP] Unique ID

2003-11-12 Thread Marek Kilimajer
Javier Muniz wrote: Neither auto-increment nor sequences allow you to do what you're asking for though, which is like database garbage collection. If you really need something like this you should implement it in a cron job that runs during non-peak hours as it will be quite an expensive

Re: [PHP] ignoring case

2003-11-12 Thread Marek Kilimajer
It might be strtolower and strtoupper, but they do not make string case insensitive, functions can be CI, not strings. Adam Williams wrote: Hi, does anyone happen to know off hand the function that will ignore case for data inputted via text from a form/form? I don't remember it off hand

Re: [PHP] form action=?

2003-11-12 Thread Marek Kilimajer
Alan Lord wrote: Hi all, can I put a function_name() in the form action=... place holder? I know I can use a file name, but it would be much better (for me) if I could use a function name. Thanks in advance Al form action=script.php?action=edit script.php: switch($_GET['action']) {

Re: [PHP] Overriding string concatenation '.'

2003-11-12 Thread Marek Kilimajer
tirumal b wrote: Hello All This is where i encounter the problem $hostin=122.122.122.122; $l=system('ssh '.$hostin.' ls'); echo $l; The above one does not work at all but if i hardcode $l=system('ssh 122.122.122.122 ls'); You should post your real code (cutpaste), the above examples are

Re: [PHP] js, printing and redirection

2003-11-12 Thread Marek Kilimajer
Martin Marques wrote: I need to print a page and redirect the browser to another page. As it can't be done with PHP, I thought about using javascript. Can anyone give me an advise on how to do it? You are right, and that means you should ask on javascript list. But here you have it anyway:

Re: [PHP] js, printing and redirection

2003-11-12 Thread Marek Kilimajer
Martin Marques wrote: script function printAndRedirect() { print(); location=someotherscript.php; } /script Yes, I already have this. My problem is that I want to make it work on the event Onload (when the page ends loading, execute the JS function). And what is so difficult about it?

Re: [PHP] comparison efficieny

2003-11-12 Thread Marek Kilimajer
Jon Hill wrote: I am sure I read somewhere that doing the following if (false === $variable) was a better option than if ($variable === false) maybe it was a dream or is there something in this? Jon The later will give error if you mistakenly use single =, which can spare you frustration

Re: [PHP] ls as function.

2003-11-12 Thread Marek Kilimajer
Vincent M. wrote: Hello, Is there any function to do: $thumb = exec(ls $dir/name*) ; without using the exec function and without making a while: $direc_src_obj = dir($dir) ; while($entry=$direc_src_obj-read()) { ... } So, i am looking for a function which return the result of the unix shell

Re: [PHP] ls as function.

2003-11-12 Thread Marek Kilimajer
John Nichel wrote: Chris Shiflett wrote: --- Marek Kilimajer [EMAIL PROTECTED] wrote: So, i am looking for a function which return the result of the unix shell command: ls mydir/name* www.php.net/glob I think you read that question wrong, or else I am. :-) Try the second user note

Re: [PHP] get method http 1.1 eror

2003-11-11 Thread Marek Kilimajer
QT wrote: Dear Sirs, I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue, 11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close Weird. Use HTTP/1.1 then. And add Connection: close

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread Marek Kilimajer
Save the file and look at its content, you might have php errors in it. K. Praveen Kumar wrote: This is the error I am getting while executing the script. File does not begin with '%PDF-'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete Temporary Internet Files

2003-11-11 Thread Marek Kilimajer
Joe Mack wrote: I am trying to use PHP to delete temporary internet files in IE6. I would also like to access other Internet Options functions. Any assistance would be appreciated. PHP is server side, it cannot mess with browser this way. As on another list. -- PHP General Mailing List

Re: [PHP] CDONTS Mail problem

2003-11-11 Thread Marek Kilimajer
PHPLover wrote: Dear all, I am not able to attach file using CDONTs component. Could any one trace out what the problem is ?? The code I use is given below and I run on IIS on Windows 2000 @$CDONTS = new COM(CDONTS.NewMail); @$CDONTS-From = [EMAIL PROTECTED]; @$CDONTS-To = [EMAIL PROTECTED];

Re: [PHP] imagejpeg

2003-11-11 Thread Marek Kilimajer
Egil Berntsen wrote: My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when

Re: [PHP] \n and br

2003-11-11 Thread Marek Kilimajer
Brian V Bonini wrote: So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); Why not directly str_replace(array(\r\n,\r,\n), 'br', $content-page_content); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Unique ID

2003-11-11 Thread Marek Kilimajer
Dimitri Marshall wrote: Hi there, Here's my situation: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: Hi all: I have a page with a img tag: img src=/getthumbnail.php?fileid=12230983 Any tips? Manu. Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: Hi, all -- I have a picture gallery application which uses sessions. As part of the config we set the session name; the default is 'locscout'. I also have a portfolio/presentation application layered on top of this (and almost ready for release! :-) :-) with its own session

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: I'm a bit confused... I haven't tried this yet, so maybe it will all come clear when I do, but I'm still confused! So where I currently have session_name($wfname) ; session_start ; ... I'd instead have session_name($wfname) ; $_COOKIE[$wfname] = $_COOKIE['locscout'] ;

Re: [PHP] New module

2003-11-10 Thread Marek Kilimajer
Jonis Maurin Ceara wrote: Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or lineand i'll use this function: debug() function debug() will display line number and

Re: [PHP] php.ini file contents

2003-11-10 Thread Marek Kilimajer
Teren wrote: Hi, I was browsing through the php.ini file to see if maybe functions = that execute shell commands are disabled, but I didn't see anything, can = somebody confirm this just to make sure i didn't skip over it? I am = still trying to execute shell commands and I have been unsuccessful,

Re: [PHP] Trouble sending an image's contents as output using header Content-Type...

2003-11-10 Thread Marek Kilimajer
Manuel Vázquez Acosta wrote: Type http://server.com/getthumbnail.php?fileid=12230983 in the location bar and see what happens. I have already done it; it didn't work. Manu. Did you see any error? If not, do you have display_errors set to on? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] location= Construct Doc

2003-11-10 Thread Marek Kilimajer
Lee Stewart wrote: Hi... I'm looking at an existing application that uses a number of statements like: location = page2.php; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? This would generate parse error in php, but I

Re: [PHP] PHP session won't die!

2003-11-09 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have tried about 15 combinations of unset(), session_unregister(), session_destroy(), session_unset(), $_SESSION = array(), I miss session_start in the list. You have to start the session prior to destroying it. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: phpmysql(which array function?)

2003-11-08 Thread Marek Kilimajer
Burhan Khalid wrote: SELECT * FROM thetable GROUP BY column1; That should work read http://www.mysql.com/manual SELECT *, GROUP_CONCAT(column2) as column2 FROM thetable GROUP BY column1; But this requires mysql 4.1. If you don't have mysql 4.1, detect in your while loop if column1 is not

Re: [PHP] Japanese character validation

2003-11-07 Thread Marek Kilimajer
umesh wrote: As there are fields called Last First Name (Kanji) and Last First name (Kana) on my forms. Its the need of the application. It would be great, If I could do that. Are Kanji and Kana chracter sets? Form cannot use more charsets. Charset that your script receives will be the same

Re: [PHP] Multiple Image Uploads

2003-11-07 Thread Marek Kilimajer
Jay Fitzgerald wrote: I tried posting my code to the list but there are around 800+ lines of code and my email keeps bouncingi am open to suggestions? Jay Only 500+. And all that I need to know is that Undefined index notice. Search the archives for that string. Marek -- PHP General

Re: [PHP] SQL Injections

2003-11-07 Thread Marek Kilimajer
If you delete all reserved words from a string then this sentence would become: you reserved words a this sentence would become :) You want to ensure the incoming variables are not INTERPRETED as sql. Properly escape and quote the input. Shaun wrote: Hi, does anyone know of a function i can

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] snobs jump in [/snip] What is funny about that is that it is those snobs who folks ask their questions to. It is those snobs who solve problems for others. It is those snobs who have learned and experienced so that others may benefit. Hi, while we are at it, is

Re: [PHP] preg_replace ^M

2003-11-06 Thread Marek Kilimajer
Those are \r characters from dos newline (\r\n). Generally they are not harmful and many editors can work with them without problems (vim). You can use some utility commands to convert to or from dos or unix newlines. Torsten Rosenberger wrote: Hello i try to replace a string in a file but if

Re: [PHP] OT-Javascript Question

2003-11-06 Thread Marek Kilimajer
Jake McHenry wrote: I got everything working now. For some reason when I put it inside php, it wouldn't work with my variables with the numbers in front (1_Accounting_Unit) so I renamed all of them with the number at the end and they work fine. Jake The reason is here, notice the second paragraph:

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Marek Kilimajer
I bet you did not have time because of your other activities. ;) John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Changing the php.ini file

2003-11-05 Thread Marek Kilimajer
post_max_size is another setting that has effect on uploads. It should be higher than upload_max_filesize. Mike At Spy wrote: I changed a value for max uploads in my php.ini file (linux box); I restarted apache, then the whole server, to get the new value to come up and, generally, take affect.

Re: [PHP] Sessions within new windows

2003-11-05 Thread Marek Kilimajer
Are you using _blank as target. Then try a named window. But this is just a wild guess. Donald Tyler wrote: Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Marek Kilimajer
Web server need permission to write to /home/unit-dir/public_html/members/memberpix/ directory. Change the directory permissions to 777. Dimitri Marshall wrote: Hi, I'm trying to allow users to upload files to my server. I have the appropriate code (I think) but I'm getting this error message.

Re: [PHP] url_encode question

2003-11-05 Thread Marek Kilimajer
You want to use urlencode, but you are using url_encode, which must be user defined function. Urlencode output would be: http%3A%2F%2F192.168.10.5%2Frecords%2FSalle_16B%2F2003-05-06%2FSalle_16B_2003-05-06.010 urlencode is supposed to be used for encoding values and not the whole url. Styve

Re: [PHP] simple?

2003-11-05 Thread Marek Kilimajer
return (ereg_replace('/+', '/', $tmp_file ==$filename)); Jason wrote: Hello all, I have written a script for the purpose of uploading an image and block of text for a site. Real simple stuff but I can't get the form to write? code looks like this... ?php function is_upload_file($filename)

Re: [PHP] Setting up PHP5 alongside PHP4 on apache

2003-11-04 Thread Marek Kilimajer
Comex uses this configuration to run php4 and php5 side by side. One version must be run as cgi so there are no symbol conflicts. LoadModule php5_module C:/php5/sapi/php4apache2.dll ScriptAlias /php/ C:/php/ AddType application/x-httpd-php .php5 AddType application/x-httpd-php4 .php Action

Re: [PHP] Shared SessionIDs?

2003-11-04 Thread Marek Kilimajer
Guillaume Dupuis wrote: Hi, I am new to PHP, so I hope I phrase this okay :) We currently have 3 php servers. Can we use the same SessionID to connect across the 3 systems? If not, what would you suggest to minimize the number of login prompts, while keeping secure? Thanks in advance, Guillaume

Re: [PHP] phpmyadmin foulup

2003-11-04 Thread Marek Kilimajer
Did you set the password for root user in mysql? Then you need to enter the password in [phpmyadmin directory]/config.inc.php. Find line: $cfg['Servers'][$i]['password'] = ''; and enter the password here ---^ Leevy, Joffrey L wrote: Hi all: I was trying to use phpmyadmin for

Re: [PHP] drop menu last entry

2003-11-04 Thread Marek Kilimajer
Store the information in a cookie, then when you build the select options set selected that option where value is equal to the cookie. [EMAIL PROTECTED] wrote: Hello I have a drop down menu in wich users can select a state, I would like to take the information of the state and computer id, and

Re: [PHP] Extracting random rows

2003-11-03 Thread Marek Kilimajer
Hello, works for me. As a workaround you can pass a random integer to te RAND() function to be used as seed value. Scott wrote: Hello, Below is a boiled-down example of the problem I'm having. I'm trying to extract rows randomly from MySql, but I keep getting the same one. It works if I query

Re: [PHP] Sleep Function

2003-11-03 Thread Marek Kilimajer
It is exactly what you need. And you can lower the sleep time, I think 1 or 2 seconds are just enough. Glenn Gasner wrote: The php.net documentation for the sleep and usleep functions has me confused. I'm using shared hosting and I need to email my whole mailing list while not clogging the

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