Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
check max_post_size in php.ini Antti wrote: When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is the problem. antti -

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
Show us the code Antti wrote: 1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. W

Re: [PHP] Problems with 4.3.0 cli and paths

2003-01-31 Thread Marek Kilimajer
Generally yes, since 4.3 cli does not change the working directory Robert Mena wrote: Hi, I have upgraded my server with the 4.3.0 version. The cli was upgraded also and all my scripts started to crash. I ususally put a #!/husr/local/bin/php -q in all scripts that need to be executed from the

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
The upload form: (There are ofcourse many of of the first three inputs.) I assume here should be And the php part: $number_of_files = count($_FILES['userfile']); $number_of_files will be 5 if any number of files is uploaded, cause you count $_FILES['userfile']['size'], $_FILE

Re: [PHP] Introduction

2003-01-31 Thread Marek Kilimajer
Take a look at http://www.php.net/manual/en/security.registerglobals.php Basicly you should use $_REQUEST['custemail'] ... Julie Williams wrote: Hi Jason, Sorry, I'm very new to this. Since my code is not huge, I have included it below. I removed some of the text so that it is less bulky. I

Re: [PHP] + in filenames

2003-02-03 Thread Marek Kilimajer
That double quote is escaped [EMAIL PROTECTED] wrote: On Fri, 31 Jan 2003, Marek Kilimajer wrote: I use this: $name=strtr( $name, " ?*#$%^:+=<>/\"", "__"); I'm hoping that double quote was a typo?? Ed -- PHP General M

Re: [PHP] Listbox variable

2003-02-03 Thread Marek Kilimajer
Are you using $_POST superglobal? You should use $_POST['CategoryName'] in findbycategory.php Denis L. Menezes wrote: Hello friends. I have the following code : The code works fine and the listbox is populated. But when I select a category and press the "Search" button, the variable $CategoryN

Re: [PHP] Directory size

2003-02-03 Thread Marek Kilimajer
there is no php function for this, you can use unix command du or do it in a loop Antti wrote: How do I get the directory size? Suppose there is a function for this. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe mode problem

2003-02-03 Thread Marek Kilimajer
what you did should work (you must be root to change owner). You can use -R switch to change owner recursively Gurvinder Singh wrote: hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script i get this error Warning: SA

Re: [PHP] POST_with_PHP_--_please_help_!

2003-02-03 Thread Marek Kilimajer
no way without javascript arthur.chereau wrote: That's right, but with curl it's not a true redirection: you just print the content of the target page, you don't redirect to the page. What I need is "automated forms", that send the same data as forms but without user interaction. I can't use ja

Re: [PHP] safe mode problem

2003-02-04 Thread Marek Kilimajer
itself which created the page. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 12:39 PM To: Gurvinder Singh Cc: [EMAIL PROTECTED] Subject: Re: [PHP] safe mode problem what you did should work (you must be root to change owner). You can

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Marek Kilimajer
use implode(',',$datay) Vernon wrote: That gives me something that looks like this: Array ( [0] => 34 [1] => 31 [2] => 16 [3] => 16 [4] => 6 [5] => 4 [6] => 4 [7] => 3 [8] => 2 [9] => 2 [10] => 2 [11] => 2 [12] => 2 [13] => 2 [14] => 2 [15] => 2 [16] => 1 [17] => 1 [18] => 1 [19] => 1 [20] => 1

Re: [PHP] read input in console mode

2003-02-06 Thread Marek Kilimajer
ncurses is the answer Mathieu Dumoulin wrote: Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user to press enter which is not what i i

Re: [PHP] Re: jumping between php and html or using echo for printinghtml-tags.

2003-02-10 Thread Marek Kilimajer
Then why not use single quotes, its faster than double quotes, and you could also use comma instead of full stop (echo can take multiple parameters, which is faster than building up a new string) function admin_menu() { echo ' Meny '; echo 'Medlemmar'; Askengren wrote: I do not know why s

Re: [PHP] Trouble with resizing image!!

2003-02-10 Thread Marek Kilimajer
At first glance I noticed you use time() all over your script and expect it to be always the same. But the function returns current time, so it changes! Use $n_image1 = time().$_FILES['image1']['name']; and remove all time() functions Geckodeep wrote: I am having trouble in resizing the im

Re: [PHP] If no record in MySQL how to?

2003-02-11 Thread Marek Kilimajer
if there are no rows, the while condition will return false so the while block will never be executed, try if(mysql_num_rows($link_result) ){ while($documents = mysql_fetch_array($link_result)) { print " width='40'> width='136'> class='greenlinks'>$docum

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Marek Kilimajer
Simple answer is - use GET method instead of POST for your searches Vernon wrote: I've successfully created a search and result page for a dating site which off of the result page is a detail page for reviewing the profile online and so forth. The problem I'm having is once a user does his/her

Re: [PHP] Search Results - Web Page has Expired after Viewing Results

2003-02-11 Thread Marek Kilimajer
Changing the method also implies changing $_POST to $_GET in your code. Vernon wrote: When I do that I get syntax errors in the SQL "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Simple answer is - use GET method

Re: [PHP] Help With Form Mail

2003-02-11 Thread Marek Kilimajer
mail($mailto, $mailsubj, $msg, $mailheader); - where does $mailto come from? WAW wrote: Hello All, I have a problem. I did this form mail script and it is sending the email to the poster not the email specified in the $mailto. Can someone help me. Sorry it will be long, the code that is: CODE

Re: [PHP] Issue saving php that includes constant---

2003-02-12 Thread Marek Kilimajer
You need to make it a string, so echo '"To "._LOGIN." click the login link below";'; still I'm not sure this is what you want Shawn McKenzie wrote: I collect some PHP code in an HTML form (textarea) I then save this in an array in a file using export_var(). If the code entered in the textarea i

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Marek Kilimajer
Also make sure server has read permission to directories. [EMAIL PROTECTED] wrote: thank you for the reply Chmod was just a try from my side to get it work. I tried CHMOD 0777, and everything else, too. Didn't work. Could it be that the server doesn't allow writings at all? As you see, I am

Re: [PHP] Classes, global objects, and pointers

2003-02-12 Thread Marek Kilimajer
John Hughes wrote: In this example which parallels a problem I am having in my real life script. I would like to have a global object, in this case $tester. I would then like to be able to store local references to this global object right inside the class. These are assigned byref in the class

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Marek Kilimajer
use chmod 755 directory on each directory that is in the way to your file [EMAIL PROTECTED] wrote: Marek Kilimajer wrote: Also make sure server has read permission to directories. I'm pretty sure that is the problem. How should I check that? I've now tried my PHP in two oth

Re: [PHP] Failed opening

2003-02-12 Thread Marek Kilimajer
php interpreter wants to include this file, check if it is there - one directory up from SCRIPT_FILENAME, then laguage\english\admin.php thkiat wrote: Hi can someone explain to me what is this and how to fix it:- Warning: Failed opening '../language/english/admin.php' for inclusion (include_pat

Re: [PHP] Fwd: Re: Guest book

2003-02-12 Thread Marek Kilimajer
Try setlocale (LC_ALL, 'no_NO'); at the beginnig of your script (I'm not sure no_NO is right) Alexander Verlo wrote: I have a problem. My guestbook should log the time and date when someone write the book. It does now, but not in my language (norwegian). I have tried some of the hint's at y

Re: [PHP] Fwd: Re: Guest book

2003-02-12 Thread Marek Kilimajer
Also forgot you should use *strftime()* instead of date() ( http://www.php.net/strftime ) Marek Kilimajer wrote: Try setlocale (LC_ALL, 'no_NO'); at the beginnig of your script (I'm not sure no_NO is right) Alexander Verlo wrote: I have a problem. My guestbook should log th

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-13 Thread Marek Kilimajer
If the file does not exists, the web server needs write priviledge to the directory where you want to create it. Paul Dunkel wrote: Marek Kilimajer wrote: use chmod 755 directory on each directory that is in the way to your file I tried that, too. Didn't help. Here is the code, str

Re: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Marek Kilimajer
You need root priviledges, that means /bin/date must run as root. You can use sudo Daevid Vincent wrote: Yep, I am trying to have a php web page change the linux system date/time, but obviously running into the snag that /bin/date, while "chmod 775" doesn't allow a user to set the date/time. Why

Re: [PHP] counter question

2003-02-13 Thread Marek Kilimajer
You might still have a buffer at apache or system level, you can try to output spaces or coments, but I'm not sure something like this is possible in flash electroteque wrote: hi guys i am trying to increment a counter echoed out to the screen to be used for flash for ($i=0; $i < 10; $i++) { /

Re: [PHP] Parsing CSV with parameters?

2003-02-13 Thread Marek Kilimajer
fgetcsv() - for reading the file str_replace('(', '\(', $string) - for escaping )s Leif K-Brooks wrote: I'm trying to parse CSV data with parameters, i.e. foo(something),bar(something),something(foobar). Any suggestions on doing this, hopefully with some way to escape )s in the parameters?

Re: [PHP] How can I have PHP set the linux system date/time?

2003-02-13 Thread Marek Kilimajer
4 ?SFeb12 0:01 /www/bin/httpd -D nobody 593 0.0 3.0 5524 3804 ?SFeb12 0:00 /www/bin/httpd -D nobody 594 0.0 3.0 5556 3856 ?SFeb12 0:01 /www/bin/httpd -D So What is the problem? Ideas? -Original Message- From: Marek Kilimaje

Re: [PHP] Parsing CSV with parameters?

2003-02-13 Thread Marek Kilimajer
CSV data with parameters and get each piece of data and its parameter. For example, I have a string something like foo(data),bar(data),foobar(data). I need to get each parameter, and each value, and put them into arrays. I also need to have a way to escape any )s in the parameter. Marek

Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
What are apache logs telling you? Vernon wrote: After upgrading to MySQL 4.0.1.2 I ma getting the message : Fatal error: Call to undefined function: mysql_connect() in /home/penpals/pub/mysql.php on line 3 Please help my production server is down! -- PHP General Mailing List (http://ww

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
try ldd /usr/lib/php4/mysql.so Vernon wrote: I think the point is here that I can connect with a MySQL client, so MySQL is running. I cannot however connect using PHP. What would cause this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] cookie problem....

2003-02-13 Thread Marek Kilimajer
This cannot be the problem, session_start is for sessions Jason Wong wrote: >On Thursday 13 February 2003 16:07, Terry Lau wrote: > > >>Hello, >>I created a PHP page that included cookie, here is the PHP code: >>>if (isset($HTTP_POST_VARS['Name'])) { >>setcookie("Name", $HTTP_POST_VARS['Nam

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
/ld-linux.so.2 (0x8000) It's important that libmysqlclient.so.* points to the right library, rpm -qf /usr/lib/mysql/libmysqlclient.so.YOUR_VERSION should print you mysql-4.0.1.2-* Vernon wrote: I'm sorry I have no idea what that means. "Marek Kilimajer" <[EMAIL PROTECTED]

Re: [PHP] module php4_module is already loaded

2003-02-13 Thread Marek Kilimajer
You might have LoadModule libphp4.so somewhere before where you added it bob pilly wrote: Hello Recently i have installed apache 2.0.40-11 that comes with Redhat 8.0 Linux, i have tried installing php 4.2.2-8.0.7 with it but when i put the LoadModule php4_module modules/libphp4.so i get the fol

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
So the file is looked for in /usr/lib/php4, but resides in /usr/lib/php, you should move it Vernon wrote: OK, I looked up that file and found that I needed to install the MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have the php-mysql installed. But am still getting th

Re: [PHP] form within form

2003-02-13 Thread Marek Kilimajer
Forms cannot be nested, there can be no form within form. Simply use 4 fields - username, oldpassw, newpassw, newpassw2 (must be equal newpassw), when the form is submited, check if username and oldpassw are valid, newpassw = newpassw2, and if everything is right, you can update to the new pass

Re: [PHP] derive function that called a function?

2003-02-25 Thread Marek Kilimajer
This is not possible, but future version of zend engine should provide a function stack. Shawn McKenzie wrote: Is there any way to determine what function (if any) called a particular function??? Example: function myFuncA() { myFuncB(); } function myFuncB() { some stufff; } In myFuncB()

Re: [PHP] Uploading Images

2003-02-25 Thread Marek Kilimajer
http://www.php.net/manual/en/ sections 18. Handling file uploads XXX. Filesystem functions XLI. Image functions clarionhaze wrote: Hey guys I nee

Re: [PHP] checking if module exists

2003-02-26 Thread Marek Kilimajer
function_exists() -- checks if a function exists Jun wrote: I want my script to compress the output using gzip library. But before that, I want to check if gzip library is enabled before calling the compression functions... How do I do that? jun -- PHP General Mailing List (http://www.php

Re: [PHP] imagecreate()

2003-02-27 Thread Marek Kilimajer
Tell us what is in the logs, they are in logs\ in the apache installation directory Anthony Ritter wrote: Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The fol

Re: [PHP] Arrays and MySQL

2003-03-02 Thread Marek Kilimajer
Cannot you just make MaSQL count it? $query = "select sum(goals), sum(assists), sum(points) from roster"; Beauford.2002 wrote: Hi, I have an array which I am trying to total but having some problems. Any help is appreciated. Example: This is a hockey team and there are 20 players - I am sele

Re: [PHP] File problem - PHP Quest

2003-03-02 Thread Marek Kilimajer
Monil Chheda wrote: Hi, I have a problem in grabbing data from a file. I need to fetch data from raw log files and display it in a proper tabular manner. The log file contains: AWSTATS DATA FILE 5.0 (build 1.345) # If you remove this file, all statistics for date 2

Re: [PHP] html parsing question

2003-03-02 Thread Marek Kilimajer
You can output xhtml with your custom tags and use xml parsing functions Jos Elkink wrote: Hello, I've got a little question. I am writing a page where I would like to parse my own invented HTML-looking tags (but want to keep the real HTML tags intact). I use a buffer for the output, and just be

Re: [PHP] Downloading files outside the webserver

2003-03-04 Thread Marek Kilimajer
create a download php file: $res=mysql_query("select * from user_files where filename='$GET['file']'"); if($res && mysql_num_rows($res)) { $file=mysql_fetch_assoc($res); if($_GET['downaload']) { header('Content-Type: application/octet-stream'); header('Content-disposition: a

Re: [PHP] StrPos/stristr

2003-03-04 Thread Marek Kilimajer
$lines=explode("\n",$something); foreach($lines as $line) { if(eregi('^au: (.*)$',$line,$m)) { $au=$m[1]; // you may want to break here } } John Taylor-Johnston wrote: http://www.php.net/manual/en/function.stristr.php http://www.php.net/manual/en/function.strpos.php Input from

Re: [PHP] Downloading files outside the webserver

2003-03-04 Thread Marek Kilimajer
m is, the files are stored on disk, not on the DB. I suppose it can be addapted to work with the disk, can't it? Cheers, Daniel "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] create a download php file: $res=mysql_query("select * from u

Re: [PHP] pharse file random work with -n lines

2003-03-04 Thread Marek Kilimajer
while(list ($adnr, $user, $date, $listed, $hlong, $eins, $zwei, $drei, $vier, $usern, $locst, $locstaa, $locc, $funf, $sech, $email, $Url, $ClassCat, $ClassCat2, $Headstart, $Headend, $Descrip, $End1, $Endzwei, $End3, $Endvier, $Endfunf, $Endsech, $Endsieben, $Endacht, $Endne, $dreizwei, $dreidrei,

Re: [PHP] Doing a Multiple Search

2003-03-04 Thread Marek Kilimajer
There have been plenty answers for this, search the archives. Hunter, Jess wrote: I know this must be an easy solution, just not seeing what it is. I have tried to add several options to the below code but can't seem to get it right. Here is the Base Line I am working with: $Query="SELECT * fro

Re: [PHP] pharse file random work with -n lines

2003-03-04 Thread Marek Kilimajer
to return it random - Original Message - From: Marek Kilimajer <[EMAIL PROTECTED]> To: WebDev <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 5:00 AM Subject: Re: [PHP] pharse file random work with -n lines while(list ($adnr, $user, $date, $listed, $

Re: [PHP] pharse file random work with -n lines

2003-03-04 Thread Marek Kilimajer
I'm not sure what is wrong, you should add print_r function in different places to see if the variables really contain what they should. WebDev wrote: the last script gives me no error but it returns nothing on the page only empty - Original Message - From: Marek Kilimajer &l

Re: [PHP] max_execution_time and set_time_limit() problem.

2003-03-05 Thread Marek Kilimajer
This should not have anything with time limit, your php script is executed after the upload finishes, you should check max_upload_size and max_post_size (max_upload_size < max_post_size) Eric Wood wrote: Even set_time_limit(0) does extend the timeout. Always a 30 second timeout. Any other idea

Re: [PHP] some help needed building chat-app

2003-03-05 Thread Marek Kilimajer
You need only one query with LIMIT, example: //this will select last 10 messages $res=mysq_query('SELECT * FROM chat_messages ORDER BY addtime DESC LIMIT 10'); // this will print them from newer to older while($message=mysql_fetch_array($res)) { echo $message['from'].': '.$message[message'].''

Re: [PHP] trailing slash

2003-03-05 Thread Marek Kilimajer
There must be some apache setting for this, in fact they both don't accept it, but the one that seems it does will send you a 301 Moved Permanently response. Michael A Smith wrote: Hi all, How come some servers (like one of our RH7.3s) can accept a www.somewhere.com/foldername without the tra

Re: [PHP] session data

2003-03-05 Thread Marek Kilimajer
Joseph Bannon wrote: 1) How long does session data remain on the server? 2) Is there a place I can set the expiration? this is controled by session.gc_maxlifetime 3) Will php automatically delete the old session data or do I have to do it? previous aswer implies "yes, automatically" Than

Re: [PHP] error checking with fread

2003-03-06 Thread Marek Kilimajer
add this check John Taylor-Johnston wrote: http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? if(!$handle) die('could not open file for reading'); $contents = fread ($handle, files

Re: [PHP]

2003-03-06 Thread Marek Kilimajer
Everything you need is here: http://www.php.net/manual/en/features.file-upload.php#features.file-upload.post-method John Taylor-Johnston wrote: Instead of using fread, I want to upload a *.txt file using: and display it in a textarea. Where do I go now? Specifically, how do I get $contents? Th

Re: [PHP] some help needed building chat-app

2003-03-06 Thread Marek Kilimajer
r should i use a timer or whatsoever, i have no clue right now it's a bit like $x = "loop"; do while ($x == "loop") { //mysql_query (select new messages) //output new messages to bottom of html } "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message new

Re: [PHP] sessions

2003-03-06 Thread Marek Kilimajer
The session file will be deleted automatically by the garbage colector after certain amount of time, specified in php.ini by session.gc_maxlifetime Shaun van den Berg wrote: Hi, Im working on a site where the user logs in , if username and password matches with uname and pword in database then

Re: [PHP] some help needed building chat-app

2003-03-06 Thread Marek Kilimajer
nks anyway - Original Message ----- From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Michiel van Heusden" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 11:00 AM Subject: Re: [PHP] some help needed building chat-app If you mean ma

Re: [PHP] some help needed building chat-app

2003-03-06 Thread Marek Kilimajer
n and printing it to the end. like - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Michiel van Heusden" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 12:52 PM Subject: Re: [PHP] some help

Re: [PHP] sessions

2003-03-06 Thread Marek Kilimajer
in my tmp file (on my machine cause its local, file name is sess_3zdfa4blahblah) still exists after i close my browser without login off and i wait for 15 secondes , but nothing happens ? Whats wrong ! Thanks Shaun - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTE

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
Not bothering the user to wait till the next page loads Liam Gibbs wrote: If you want to validate form data before sending it, javascript is the choise. Yeah, before sending it. Just wondering what the advantage is in validating before sending. -- PHP General Mailing List (http://www.ph

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
the field of your form And it's a bit dangerous for your DB if your insert data in a DB... "Marek Kilimajer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] Not bothering the user to wait till the next page loads Liam Gibbs wrote: If you

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
. as I said user experience, not everybody has a T1 line ;) The reloading of the page is very fast. "Marek Kilimajer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] If the user is disabled, the user will be bothered to wait till the page reloads, sure ther

Re: [PHP] Problem with copy (maybe a bug ?)

2003-03-07 Thread Marek Kilimajer
Is the safe mode on? Arthur Chereau wrote: Hi, I use PHP 4.3.1 with apache 2.0.44 and php.ini from php.ini-recommended. It seems that copy() doesn't work. Permissions are correct, apache can read the source file and write to the destination directory. But I get the following error message when

Re: [PHP] repost: cookie problem

2003-03-08 Thread Marek Kilimajer
First find out if the cookie is send as it should be - use a php script to simulate sending the login form and look at the response you will recieve. Curl is great for this. H. Miersch wrote: i've posted this before to the newsgroup, and i don't think it got through to the mailinglist, so i'll

Re: [PHP] Is this possible? Group related results from mysql to one field…

2003-03-08 Thread Marek Kilimajer
The only way that comes to my mind is using a SET column type - in related table you would not wave toid relating to categories, but instead it would be of type SET("demonstrations","people"). This column can be set to "" -empty, no category "demonstrations" "people" "demonstrations,people" But

Re: [PHP] eval error

2003-03-10 Thread Marek Kilimajer
try echo "\$all_types_list .= \"$all_types_list\";"; there should be a syntax error Alawi wrote: what problem I want to use eval in my script but its generate this error : Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on li

Re: [PHP] MySQL or PHP question?

2003-03-10 Thread Marek Kilimajer
Should not it be: $SQL = "SELECT * FROM table ORDER BY id asc LIMIT ".($autoindex -5)." ,5;"; John Taylor-Johnston wrote: I don't know whether this is a MySQL or PHP quesiton. $SQL = "SELECT * FROM table ORDER BY id asc LIMIT $autoindex -5 ,5;"; I would like to get the autoindex value of my tabl

Re: [PHP] session

2003-03-10 Thread Marek Kilimajer
When you load a php page there is a "session.gc_probability" % chance it will start. session.gc_probability is set in php.ini Shaun van den Berg wrote: When does the carbadge collector start ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website:

Re: [PHP] two questions about usning session.

2003-03-12 Thread Marek Kilimajer
Session ID is stored in a cookie, and cookies are shared across instances of browser: if you open another window of the same browser, the same cookies are send, so you can have only one session to the same site (and path). To prevent this, you would have to give up cookies and use SID, but I do

Re: [PHP] Does comments slow down processing a lot

2003-03-12 Thread Marek Kilimajer
They certainly do, but not using them slows down development. But you should care about it, because I believe Zend Optimizer removes them (they are not needed) Mathieu Dumoulin wrote: I'm programming large web solutions here and a new programmer has given me a warning about how much comments i p

Re: [PHP] Array syntax not covered in documentation

2003-03-12 Thread Marek Kilimajer
maybe implode? $u=preg_replace("/[^$chars]/e","%".implode('',unpack("H2", "$0")), $u); adrian porter wrote: I want to do the following: $u=preg_replace("/[^$chars]/e",'"%".unpack("H2", "$0")', $u); However, as you know, unpack returns an array. I tried this instead: $u=preg_replace("/[^$chars]

Re: [PHP] Another questions about usning session.

2003-03-12 Thread Marek Kilimajer
Advantage of session is that you can trust the variables you keep in your session. cookies can be spoofed André Cupini wrote: * People, sorry my ugly English. I´m Brazilian... I am looking for learning more about sessions... I´m test this code below don´t work with me My php version is 4.1.

Re: [PHP] RE: Calculates time elapsed between two date

2003-03-12 Thread Marek Kilimajer
Get timestamp of these dates, subtract them and use math to find out days, hours etc from the difference YC Nyon wrote: Hi, I need to get the time/date (ie. 1 day 12 hours 11 min 4sec) between 2 time dates. Can't seem to find any of these functions in the PHP manual. Thanks Nyon --- Outgoing

Re: [PHP] array_sum help

2003-03-13 Thread Marek Kilimajer
There should not be any problem with zeros, as long as they are in array. The warning tells you, you are not passing an array, so there must be some broken logic in your code. Try putting print_r($the_array) before line 154 Beauford.2002 wrote: Hi, I have a mysql database in which some values

Re: [PHP] permission problem - i guess

2003-03-16 Thread Marek Kilimajer
Try executing phpinfo from u.php, run it once from the command line and once from the browser and check if they are nay different. gamin wrote: Hi, I have PHP 4.3.0 installed on a Red Hat system. I have written a number of command line scripts which run perfectly fine. For example #! /usr/b

Re: [PHP] passing values from one script to another script

2003-03-16 Thread Marek Kilimajer
Either use session, cookies, or pass the value in URLs. Because it is login information, I would choose session or cookie Chinmoy Barua wrote: Hello everybody, I want to pass a value, which came from a HTML form, to another PHP script. How can i do this? e.g.: $login - the value of this varria

Re: [PHP] permission problem - i guess

2003-03-16 Thread Marek Kilimajer
Weird, check if both versions use the same php.ini, it is mentioned in phpinfo output. gamin wrote: Hi Marek, Try executing phpinfo from u.php, run it once from the command line and once from the browser and check if they are nay different. I added the function phpinfo() to u.php and

Re: [PHP] simple arithmetic problem

2003-03-16 Thread Marek Kilimajer
fgets moves the position in the file pointer, you need echo (time()).">>"; $old=fgets($fp); echo $old." = "; $new=time(); echo ">>>".($new - $old)."<<<"; pei_world wrote: I have a problem in time substraction. the number print out correct, but don't know why i cann't do the

Re: [PHP] HTTP_REFERER reliability

2003-03-16 Thread Marek Kilimajer
As you are already using sessions, you can store the original page in a session variable rotsky wrote: I have a small login form on the home page of my site. At the moment, when people enter their user details and hit 'send', they go to another page which check their details and, if they are suc

Re: [PHP] outputting xml declaration

2003-07-03 Thread Marek Kilimajer
This should not give you any error. Not even if short_open_tags are on as printed output is not parsed. What is the error message and what version of php are you running? It works for me (php 4.3.2). Steven Apostolou wrote: Hello, The folowing code gives an error: print ""; This is probably b

Re: [PHP] Using INCLUDES in SAFE MODE

2003-07-03 Thread Marek Kilimajer
Configuration directive: safe_mode_include_dir string UID/GID checks are bypassed when including files from this directory and its subdirectories (directory must also be in include_path or full path must including). As of PHP 4.2.0, this directive can take a semi-colon separated path i

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-03 Thread Marek Kilimajer
Make it be: if () { include(); } else { if () { include(); } else if () { include(); } } reads much better. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Communication between PHP Server code and HTML/JavaScriptclient without refreshing the page

2003-07-04 Thread Marek Kilimajer
There are several ways: 1. XML - many browsers don't support this 2. Load a form into a hidden iframe, then you can read variables from the form 3. Load javascript into a hidden iframe. Sharat Hegde wrote: Hello, How do I communicate betwen an HTML page having JavaScript and a PHP server code w

Re: [PHP] More on file upload

2003-07-04 Thread Marek Kilimajer
What is the message now? Is the file being uploaded and move_uploaded_file() does not move the file? Then check the directory permissions. Webmaster wrote: First of all, thanks to all that have helped so far. I am trying to get a file upload script to work using php v4.0.3 (no option here) Eve

Re: [PHP] Limit output of query field

2003-07-05 Thread Marek Kilimajer
Make it with your sql query, it will be faster: SELECT ..., IF(LENGTH(text)>50, CONCAT(SUBSTRING(text,0,50),'...'), text) as text [EMAIL PROTECTED] wrote: Hi there, Hope you can help me with the following: I have a query and i'm showing the output: echo $row->text; That goes o.k. but the text

Re: [PHP] simple query help

2003-07-05 Thread Marek Kilimajer
because you execute the query twice. Remove the last line, it is not needed as UPDATE does not return any result. Paul Ferrie wrote: Hi guys, I am working on a flash forum for my site. Came with the FOED book, anyways i am tyring to delete the threadCount by -1 from the db. could below does dle

Re: [PHP] Permission Problem

2003-07-05 Thread Marek Kilimajer
Go to admin -> Modules, and set Your_Account to be visible to all visitors. Mr|P wrote: I moved from myphpnuke to phpnuke. When trying to register a new user account on the website it get the error: You are trying to access a restricted area. We are Sorry, but this section of our site is for Reg

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Marek Kilimajer
Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] daemonized php

2003-07-07 Thread Marek Kilimajer
Uros wrote: Than this has to be run until I cancel it. But I also want to check somehow, what this proces is doing right now. If you want it to be realy nice, use shared memory. But this extension is not enabled by default and is available only on unices. -- PHP General Mailing List (http://

Re: [PHP] Re: Embedding an image in an email

2003-07-07 Thread Marek Kilimajer
Hugh Bothwell wrote: First, it's a bad idea... if you *must* show images, it's far better to stick them on a web server and refer to them from your email. In fact this is discouraged. This is the way spammers get confirmation of active email addresses, so most mail clients loading of remote ima

Re: [PHP] Retaining formatting problem[Scanned]

2003-07-08 Thread Marek Kilimajer
cannot have multiple lines, use this little amount of text Michael Egan wrote: I've experienced the same problem. It's not that the line returns disappear - they will still be retained but stored as /n or /r. You'll need to find a way of replacing the line breaks with a html paragraph break

Re: [PHP] serialize?

2003-07-08 Thread Marek Kilimajer
No, use another table, poll_options: poll_option_id, poll_id, option_text, vote_count hope the structure is self explanatory. Sævar Öfjörð wrote: Hi. I’m coding a poll system which stores information in MySQL. When a new poll is created a new row is inserted in the table ‘polls’. There I keep ba

Re: [PHP] "Anchor Collector"

2003-07-08 Thread Marek Kilimajer
The anchor is not send but rather implemented in the browser. Clientside javascript does have the ability - window.location.hash Kris Yates wrote: http://192.168.0.1/index.php?DSE=matrix&access=31337#herd 1. Grab the Anchor reference "herd" from the fake URL above and store it as a variable usi

Re: [PHP] seeing strange things?

2003-07-09 Thread Marek Kilimajer
Micah Montoy wrote: A couple more things and I'll stop bugging everyone. I'm trying to get the file name of the string. If it includes the extension that's fine as well. pathinfo() should do the job for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Using PHP with windows logon

2003-07-09 Thread Marek Kilimajer
I think if php runs under IIS and IIS is set up to do so, the variable (phpinfo() will tell you its name) is set. I don't know much more. Brenton Dobell wrote: Hello all, I just have a quick question, I am not sure that it is even possible but im gonna take a whack anyways, basically what i wan

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