Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: Hi, Can someone help me with this problem? setcookie('myCookie',blah); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',blah,time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not working

Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: ok...what does that have to do with my problem? The time is send in GMT, and your computer is set to GMT -7. So the cookie is set to expire in the past. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ospinto wrote: Hi, Can someone help me

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! When i try to run the following line: echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: thank you very much it works with mp3 good. But when I try with amr, it doenst work. I think first amr files put some time limit and player stop at time limit. Now I am looking to find how can I convert mp3 to amr. Because I need to have amr file at the end The mp3 file is technicaly

Re: [PHP] post redirect

2005-04-19 Thread Marek Kilimajer
jem777 wrote: Thanks, but I need to know the php behaviour indipendently from my web server. It's independent. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: I found an exe file, can I run that ms-dos exe file on linux machine with php? I didn't try anything like this before First, check if it's really for ms-dos. Command line does not mean ms-dos, it can be a WIN32 command line binary. If it's really ms-dos executable, use dosemu. If it's

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi there i have an error handler callback within an error class which is also being used for pear errors. E_NOTICE and E_STRICT are still triggering this callback method, so i have to make a check that the code is not one of these. I have error_reporting to ignore both of

Re: [PHP] How to ignore E_STRICT and E_NOTICE with error_handler callback

2005-04-18 Thread Marek Kilimajer
Dan Rossi wrote: already have i was hoping to avoid the if's. E_STRICT was throwing a heap of suggestions for pear packages code ;) That means you are using PHP5, so you can use second argument to set_error_handler() On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: Hi

Re: [PHP] Any experience with multi-language PHP sites?

2005-04-16 Thread Marek Kilimajer
Burhan Khalid wrote: I've found that matching the character set of HTML to what is expected from your users is the best compromise when coming to display searching. This is a must, not a compromise. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Marek Kilimajer
Mark Sargent wrote: Hi All, I can access the database from the terminal on Fedora 3, [EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 4.1.10a-standard Type 'help;' or

Re: [PHP] pixels per character

2005-04-15 Thread Marek Kilimajer
Christian Calloway wrote: Hey all, trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it, as returned widths are to small

Re: [PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! I use a page to authorize a user and based on certain criterias (user group etc) include a file in another directory (named private)... Everything is working fine but the problem is anyone goign directly to private/includefile.php can run the script without authorising

Re: [PHP] Streaming video BLOBs from MySQL

2005-04-15 Thread Marek Kilimajer
J J wrote: I have a case where video files (mov, flv, etc) have been stored in a MySQL database as blobs. I'm loading them into a flash video player and everything works fine except it takes longer it seems and it doesn't allow streaming the actual video. If I load the same videos with a direct

Re: [PHP] unserialize problem

2005-04-14 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! I am trying to unserialize a serialized array stored in cookie... I am using following code : echo(Welcome to Members Areabr); echo(br$loginbr); $m_l_d=unserialize($login); echo $m_l_d; echo($m_l_d[0], $m_l_d[1], $m_l_d[2]); However the output is: Welcome to Members Area

Re: [PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Marek Kilimajer
Reynier Perez Mira wrote: Hi: I'm try to change de value for the PHP config var upload_tmp_dir with objetive to make an file upload an access more easy to superglobal array $_FILES['fichero']['tmp_name']. Into my php file just in the start I have this: ini_set(upload_tmp_dir,C:\\PHP5\\tmp\\);

Re: [PHP] imagecopyresample

2005-04-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $image_p =

Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-13 Thread Marek Kilimajer
Mark Sargent wrote: Mark Sargent wrote: Hi All, keep getting this error with make on Fedora 3, home machine. Successfully installed on work FC3 machine earlier today. I did make twice, to no avail, and then redid the configure then another make, with the same results. collect2: ld returned 1

Re: [PHP] database querying form in php

2005-04-13 Thread Marek Kilimajer
babu wrote: HI, I ilke to create user interface for a group of people for entering the queries and to see the results in a browser. The users have the knowledge of database. for example: the users will have a login check, and if successful they will see a window where they can enter the sql

Re: [PHP] Fulltext search engine

2005-04-12 Thread Marek Kilimajer
Roman Duriancik wrote: I need in my own web server with mysql database and php script some free fulltext engine. But i need search in slovak language (all data in database in slovak). Can yopu help me where i can find some free fulltext engine ? roman

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Marek Kilimajer
J J wrote: I'm struggling with the php or mysql query to find records within my database that are within 15 minutes from now and prior. Example: It's 2:30pm on 4/12/05 I need to find all records with a RecordTime of 2:45pm and previous. So it should find: rec1 time: 2:45 date: 4/12/05 rec2 time:

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ; I guess you didn't know/think of trying null: $_SESSION['total'] = null; ...which has the same effect as using:

Re: [PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Marek Kilimajer
Ryan A wrote: Hey, A client asked me if I could do this, i told him i'll check around...so naturally I am asking you guys :-D He has an account with a sms gateway and has a website with come crappy profiles of his users. He wants the functionality that any of his users can send him an MMS message

Re: [PHP] Dump client, nice concept...but how to do it via php?

2005-04-11 Thread Marek Kilimajer
Ryan A wrote: Hey, Thanks for replying. some other way of uploading a pic from the users mobile to the profile... email, but be aware of the security. Users should input some token in the subject. How with email? other than sending email using mail() i have never worked with any email functions

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Marek Kilimajer
Jochem Maas wrote: Marek Kilimajer wrote: Jochem Maas wrote: John Nichel wrote: Jochem Maas wrote: AndreaD wrote: I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ; I guess you didn't know/think

Re: [PHP] php and javascript

2005-04-11 Thread Marek Kilimajer
Richard Lynch wrote: On Mon, April 11, 2005 4:23 pm, Jared Williams said: Hmm, document.forms['Selection'].elements['distID[]'][0].value is perfectly valid, and should work in any decent browser. There is also document.getElementsByName() Didja try it? Cuz every time *I* ever tried it (back in

Re: [PHP] php and javascript

2005-04-10 Thread Marek Kilimajer
PartyPosters wrote: Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a

Re: [PHP] How can i do refresh my web since java script?

2005-04-09 Thread Marek Kilimajer
Tomás Rodriguez Orta wrote: input name=refrescar type=submit class=btn id=refresh onClick=sendrefresch() value=Refrescar script language=JavaScript type=text/JavaScript !-- function sendrefresch() { How can I do for refresch my web, by the button Refresh? } Why do you want to use javascript? You

Re: [PHP] Accented character 'echo'ed randomly

2005-04-05 Thread Marek Kilimajer
John Coppens wrote: Hi people. I submitted the issue below to the bug site, but the people there suggested I present it here. I've tried some more, but until now, I couldn't find any cause for the problem. Any suggestion would be appreciated! John Description: I

Re: [PHP] Why do I have to declare __set if I declare __get for read-only properties?

2005-04-05 Thread Marek Kilimajer
C Drozdowski wrote: Howdy, I'd like to access some of the private members of my classes as read-only properties without resorting to function calls to access them. (e.g. $testClass-privateMember instead of $testClass-privateMember(), etc) Based on my research and testing, using the __get and

Re: [PHP] Multiple Select Field

2005-04-03 Thread Marek Kilimajer
FIND_IN_SET(str,strlist) Returns a value 1 to N if the string str is in the string list strlist consisting of N substrings. A string list is a string composed of substrings separated by `,' characters. If the first argument is a constant string and the second is a column of type SET, the

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Marek Kilimajer
nime wrote: Is there any way to do a human check without sending any url/session cookie/hidden input value from server to browser? Do you mean telepathy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Marek Kilimajer
value/session cookie/nothing. It means telepathy! Maybe the captcha string is stored based on ip address Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] nime wrote: Is there any way to do a human check without sending any url/session cookie/hidden input value from server

Re: [PHP] Recommendation for a MySql wrapper class

2005-04-02 Thread Marek Kilimajer
Ryan A wrote: Hey Dan, Even if you did have something to do with these companies/softwares/classes I would still take your advise as you have given me some real helpful advise in the past, and a lot of others too, you're one of the helpful guys on the list. Thanks, I'll chech these out, the thing

Re: [PHP] filtering uploaded files

2005-04-02 Thread Marek Kilimajer
Angelo Zanetti wrote: hi Richard this sounds like quite a serious subject but is there no other way to check the validity of the file and type without using the unix command? IE using PHP and not depending on system commands? thanks for your insight so far, very important. The equivalent of

Re: [PHP] use php for non-web development

2005-03-31 Thread Marek Kilimajer
DemonGloom wrote: subj. its really to develop on php language applications with GUI (for windows/linux), but not php-gtk. Go ahead and implement wxWindows extension. Or Qt, or fltk, or... :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL file-access disabled

2005-03-31 Thread Marek Kilimajer
$image_dir is an url (begins with http:// or similar) and allow_url_fopen is off on your BSD. Do you need to access it using url wrappers? If the images are local you can access them using plain filesystem access Jackson Linux wrote: Hi, ho, I have a problem; something which works locally is

Re: [PHP] URL restriction on XML file

2005-03-30 Thread Marek Kilimajer
That's because the character data is split on the borders of the entities, so for http://feeds.example.com/?rid=318045f7e13e0b66amp;cat=48cba686fe041718amp;f=1 characterData() will be called 5 times: http://feeds.example.com/?rid=318045f7e13e0b66 cat=48cba686fe041718 f=1 Solution is inlined

Re: [PHP] rawurldecode

2005-03-29 Thread Marek Kilimajer
'] will be equal to 'this is my image.jpg'. When I do a echo $_GET['variable']; it only writes the first word. Is there some setting that might be turned off in the php.ini file that would disable this functionality? Thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [PHP] calling stored procedures from php

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi , i have a stored procedure in postgresql and id like to call it or execute it from php. how do call this stored procedure with its variables or parameters? Like any other query, using pg_query() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] filtering uploaded files

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype

Re: [PHP] filtering uploaded files

2005-03-29 Thread Marek Kilimajer
Cima wrote: hi, id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype

Re: [PHP] Remove duplicate values in an array

2005-03-29 Thread Marek Kilimajer
Alexandru Martin wrote: How can I remove duplicate values from an array ? array_unique() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml question

2005-03-29 Thread Marek Kilimajer
Jeremy Reynolds wrote: I'm new to XML. I'm just now learning about XML tags and how an XML Style Sheet can be used to filter or format the data. Something missing in my mind is how to submit the XML to the XSLT though. If the XML page contained a path to the XSLT page, that would make sense.

Re: [PHP] rawurldecode

2005-03-28 Thread Marek Kilimajer
Aaron Todd wrote: I am trying to use the rawurldecode() function to decode a variable that is begin passed from a different page through the url. The PHP manual doesnt say much for this function, but it does have quite a bit on the urldecode() function which says using urldecode on a $_GET

Re: [PHP] Maximum Execution Time Exceeded

2005-03-28 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I would like to know if you could help me.. I don't understand what is wrong! I made a file that is supposed to list 2 categories with the boards that go to them under them. I get a Fatal Error: Maxmimum execution time of 30 seconds exceeded. Here is the file that

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-26 Thread Marek Kilimajer
Dan Rossi wrote: On 20/03/2005, at 5:40 AM, Marek Kilimajer wrote: If you need only hotlink protection then the current referer checking is just enough. Most users will not install referer spoofing software. But if you need to be 100% sure the videos are streamed through affiliate server, you

Re: [PHP] deleting cookies on the touch of a button

2005-03-26 Thread Marek Kilimajer
AndreaD wrote: I have a range of cookies that need to be deleted on the click of a button. The cookies are set by using. setcookie(cookie[$name], $age) Is there a simple command to delete all cookies or I have to do a foreach statement? You have to use foreach How can I execute the

Re: [PHP] So this isnt a bug?

2005-03-26 Thread Marek Kilimajer
Aaron wrote: http://bugs.php.net/bug.php?id=32449 I dont see how its not a bug. No, it's not. There are undefined variables -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-21 Thread Marek Kilimajer
Steven Altsman wrote: Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. I think you can put the encrypted file to the database in chunks.

Re: [PHP] Re: can you help me ??

2005-03-21 Thread Marek Kilimajer
Richard Lynch wrote: On Wed, March 16, 2005 1:57 am, Wahyu SP said: dear webmaster i would like to ask few questions : 1. can php determine the mime type of file without uploading a file ?? No. It's none of your damn business what's on my hard drive. :-) Using javascript, you can read the value

Re: [PHP] Re: is_a() against instanceof

2005-03-20 Thread Marek Kilimajer
Jason Barnett wrote: Christian Stadler wrote: Eli schrieb: - ($cls instanceof ClassName) *requires* from ClassName to be declared, and generates a fatal error when ClassName is not declared. How about if (class_exists('ClassName') AND $cls instanceof ClassName) { ... } Regards, Christian

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
Dan Rossi wrote: On 19/03/2005, at 2:36 AM, Marek Kilimajer wrote: Dan Rossi wrote: On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: I think you misunderstood me or I wasnt clear, the links are coming from a syndicate site to the main site, so we check on that domain. I am looking at other

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
Dotan Cohen wrote: On Sun, 20 Mar 2005 09:38:29 +1100, dan rossi [EMAIL PROTECTED] wrote: Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth.

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
dan rossi wrote: Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth. Lets see how I go. But theoretically we must assume these people dont

Re: [PHP] Files upload - Encrypt into a variable - Do not inject into db (PHP/Apache/MySQL)

2005-03-18 Thread Marek Kilimajer
Steven Altsman wrote: Yes, the link is http://www.radinks.com/upload/config.php file_uploads = On upload_max_filesize = 40M max_input_time = 9000 (seconds) memory_limit (not limited, per handload config, from source) max_execution_time = 9000 (seconds) post_max_size = 40M also, hidden INPUT tag

Re: [PHP] Memory exhausted message wrong

2005-03-18 Thread Marek Kilimajer
Andrew Hill wrote: Hi all, I'm trying to run phpDocumentor 1.3.0RC3 under PHP 4.3.10, and I get the following error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 3668 bytes) in /usr/local/lib/php/PhpDocumentor/phpDocumentor/phpDocumentorTWordParser. inc on line

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-18 Thread Marek Kilimajer
Dan Rossi wrote: On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: the other side of this is blocking legit users. if you base your access (at least in part) on the referrer (aka referer), you will block anyone who has turned them off in their browser or who is behind a firewall that doesn't

Re: [PHP] can I do a for each here??

2005-03-17 Thread Marek Kilimajer
AndreaD wrote: I have about 10 text boxes each taking in value (ages) , The code I have checks for a value and if it is set it then sets the cookie to that value. The else just clears the value. On the next page I use a foreach to get the values but I think there must be a quicker way to

Re: [PHP] warning question about mysql sessions concurrency

2005-03-16 Thread Marek Kilimajer
Josh Whiting wrote: I've been trying to switch to MySQL-based session storage instead of the native PHP session storage. In doing so, I've run into a lot of code on the web that exhibits a serious flaw regarding concurrent requests from the same client. All the code I've seen has glossed over

Re: [PHP] MySQL, PHP and JBOSS

2005-03-15 Thread Marek Kilimajer
david joffrin wrote: Hi, I finally managed to run JBOSS/Tomcat with PHP, however, I am facing the following error message when my PHP code is accessing MySQL: Fatal error: Call to undefined function mysql_connect() in

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the moment) Now, I have to

Re: [PHP] MySQL - PHP - limits...

2005-03-09 Thread Marek Kilimajer
Alex Ortiz wrote: Hello. Is there a records limit when browsing (a sql SELECT) in PHP from a MySQL table? no limit on php side, perhaps 2^31 if you do calculations. I´m browsing a table with PHP from MySQL, and something is wrong, if the table has more than 5047 records, the browse appears

Re: [PHP] Quickform - edit form

2005-03-09 Thread Marek Kilimajer
Leonie (phpgroup) wrote: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two

Re: [PHP] usage of php script tags

2005-03-08 Thread Marek Kilimajer
Robert Cummings wrote: On Tue, 2005-03-08 at 10:55, Jochem Maas wrote: I sure I'm not the only one on this list that reads php-internals after reading the thread entitled: I'm wondering if anyone here has _ever_ used the script tags to enclose php code? e.g.: script language=php echo testing 123;

Re: [PHP] stream_set_timeout get_headers (PHP5)

2005-03-06 Thread Marek Kilimajer
Chris wrote: I'm requesting some remote files to cache on my own server and performing a get_headers() first to find out the file type, since I don't always know what it is. I've discovered some timeout problems with the remote server sometimes and my own script would end up with a fatal

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Marek Kilimajer
dirname(__FILE__) and then get rid of the subpath where the check is made ('/include' for example) Leif Gregory wrote: Hello Richard, Friday, March 4, 2005, 11:41:29 AM, you wrote: R http://php.net/set_include_path Ok... Maybe I should put all this together in one e-mail so that all the issues

Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Marek Kilimajer
Leif Gregory wrote: I'm not sure I'm completely following you. Let's say I had the following: Site root c:\apache\htdocs\test A subfolder of site root folder1 A subfolder of the above folder1 folder2 If I call dirname(__FILE__) from a page in each folder I'll get the following respectively:

Re: [PHP] which class it is?

2005-03-04 Thread Marek Kilimajer
Use debug_backtrace() yangshiqi wrote: class DebugHelper { var $_str; function do($string) ( //here I want to know which class called this function do to trace the bug. $this-_str .= $string; ) function show() {

Re: [PHP] Image Submits to Forms

2005-03-04 Thread Marek Kilimajer
Marquez Design wrote: Greetings, I am trying to create a form that will do the following: First, select a page from a select box, Second, click on a button on the side that will do a specific function. Select page, then with the delete button, delete the file, Select page, then with the edit

Re: [PHP] setcookie

2005-03-04 Thread Marek Kilimajer
Randy Johnson wrote: setcookie( sess_key,$key,0,/,. . str_replace( www,,$_SERVER[SERVER_NAME] ),0 ); Does that look right? No. if $_SERVER[SERVER_NAME] == 'www.domain.com' . . str_replace(www,,$_SERVER[SERVER_NAME] ) will give you ..domain.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] update of mysql to 4.x

2005-03-02 Thread Marek Kilimajer
Peter wrote: sorry, i googled again, read nearly every post wich containes mysql and upgrade but i can't find a useful answer in this list. perhaps its me... so my question is still the same, would i have to recompile php or not No, you don't. However, mysql = 4.1 uses new authentication

Re: [PHP] HTTP Include Error

2005-02-28 Thread Marek Kilimajer
Suhas wrote: Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.../file.php' = works fine include 'http://google.com/' = works fine include 'http://myserver.com/file.php' = Warning: main(http://myserver.com/file.php): failed to

Re: [PHP] Was: Putting Evaluated Contents...

2005-02-27 Thread Marek Kilimajer
Brian A. Anderson wrote: Hey, Now, how about taking that variable and executing it? How might one do this? For instance: I might have an asp page on one server(Yeah, I have to use asp on that server) generate the results in the form of a bit of php code, and pass it to my php script via include

Re: [PHP] Re: Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-24 Thread Marek Kilimajer
Lester Caine wrote: Sed wrote: Is it possible for hackers to give a fake IP address when visiting a website running PHP? I want to allow certain IP addresses have access to a website (other IP addresses not), is it possible for someone (e.g. hacker) to give fake IP address? If so, how is the

Re: [PHP] Putting Evaluated Contents Of Include File Into Varialble

2005-02-23 Thread Marek Kilimajer
Michael Stearne wrote: Hi, I have an file that contains PHP code..variables, db, etc. Is it possible to include the evaluted contents of that file into a variable in another, the calling PHP script? Essentailly I am looking to do something like include(myCode.php) - HTML Output - $myVariable. I

Re: [PHP] handling large files w/readfile

2005-02-23 Thread Marek Kilimajer
A little late but: Robin Getz wrote: If this runs for awhile things go very bad. This seems to be related to a specific download manager called NetAnts that seems to be popular in China. http://www.netants.com/ Which attempts to open the same url for downloading 10-15 times at the same

Re: [PHP] while loop

2005-02-23 Thread Marek Kilimajer
Reinhart Viane wrote: Well I'm able to do that, there are only 4 different types, but the 4 queries have exactly the same syntax so I think it's better to combine them. Not? Since mysql 4.1 you can use GROUP_CONCAT() function: SELECT Act_date, Act_type_id, LEFT( GROUP_CONCAT(Act_name

Re: [PHP] Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-23 Thread Marek Kilimajer
SED wrote: Is it possible for hackers to give a fake IP address when visiting a website running PHP? I want to allow certain IP addresses have access to a website (other IP addresses not), is it possible for someone (e.g. hacker) to give fake IP address? If so, how is the website returned to this

Re: [PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Marek Kilimajer
Matt Cassarino wrote: Hi, I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will timeout. The timeout appears to happen after about 5 minutes. Any

Re: [PHP] php temporary files

2005-02-21 Thread Marek Kilimajer
Péntek Imre wrote: Hi, Now I want to see all my temporary php files in /tmp/php. I made these settings: [EMAIL PROTECTED]:~# cat /etc/php.ini |grep /tmp/php upload_tmp_dir =/tmp/php session.save_path = /tmp/php soap.wsdl_cache_dir=/tmp/php [EMAIL PROTECTED]:~# But when I use gzopen() or gzfile()

Re: [PHP] Session Vars and Performance

2005-02-18 Thread Marek Kilimajer
Greg Donald wrote: On Wed, 16 Feb 2005 09:36:26 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: It's literally an hour's work to alter the code to use MySQL to store the sessions instead of the hard drive. Not really, maybe 5 minutes.. here's the code: The code misses one important thing -

Re: [PHP] a better way for the array

2005-02-18 Thread Marek Kilimajer
Merlin wrote: Hi there, I am wondering if there is a nicer way to save the data into an array than I do. I do have a 2 dimensional array $para. Currently I go like this: $para[1][txt] = 'Europe'.$continent[name]; $para[1][link] = '/'.$continent[name].'.htm';

Re: [PHP] MySQL and MySQLi compiling

2005-02-18 Thread Marek Kilimajer
Chris wrote: Hi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs

Re: [PHP] memory error

2005-02-17 Thread Marek Kilimajer
Bruno Santos wrote: Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? PHP: 5.0.3 php.ini settings:

Re: [PHP] PHP Post method HTTP 404

2005-02-16 Thread Marek Kilimajer
Stefan wrote: Hi I've a strange problem When I try to send a form with method=POST to a php-file I always get an HTTP 404 error. I really don't know why, because the file exists on the server. What are the logs saying? I remember some problems with IIS + php and post method, it was due to some

Re: [PHP] base32/62 mcrypted data

2005-02-15 Thread Marek Kilimajer
Gary C. New wrote: I am currently storing mcrypted data as a base64 encoded string. I now need to store the mcrypted data as a base32 or base62 string, because of problems occurring due to the '+', '/', and '=' characters. It seems that there is only the base64_en/decode default function. Does

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed to view this data and I will allow them to download a CSV file contain the decrypted data using the Mysql DECODE() function. However I don't want this file to be left on

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Marek Kilimajer
Brian Dunning wrote: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian ini_set('default_socket_timeout', $seconds); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users

Re: [PHP] Re: isset

2005-02-15 Thread Marek Kilimajer
M. Sokolewicz wrote: Also note that empty($non_existent_var) will always throw an E_NOTICE error when the variable in question is not set. No, it does not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL 4.1 upgrade under PHP4

2005-02-14 Thread Marek Kilimajer
C.F. Scheidecker Antunes wrote: Hello all, Does anyone upgraded from MySQL 4.0 to MySQL 4.1 using PHP 4 code? If so, what are the changes that were required on the code? PHP website says that it is required to install a new MySQL extension. I am doing PHP4 programming under Linux. What do you

Re: [PHP] Session Vars and Performance

2005-02-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have a multi-page form which I build up and store in session variables. The data saved includes all an internal list of items on the form (derived from a database table), all the form field specs (derived from the internal item list), the data for the fields (from

Re: [PHP] updated php $_GET

2005-02-12 Thread Marek Kilimajer
Jacco Ermers wrote: Hello everyone, I recently installed php5 onto my windows IIS. Previous I had php running on Apache. I coded a page (testing purposes) but now I get errors. the page can be viewed on a remote server (without the errors) http://seabird.jmtech.ca Locally I receive these

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,

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

2005-02-11 Thread Marek Kilimajer
GH wrote: However, this does not tell you if they are using the Old or New Password on the newer version... how can i check that? On Fri, 11 Feb 2005 21:01:02 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Is it possible to check via php what version of mysql is running

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] = erstam [12] =

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 your

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... ?php $currentmax = 1049;

<    1   2   3   4   5   6   7   8   9   10   >