Re: [PHP] cannot get php through apache to write to my home dir onshared server

2003-06-26 Thread Marek Kilimajer
Upload empty file with ftp and change its permission (chmod o+w log.file). frank reeves wrote: Hi, I have an account on shared server and am trying to write a logfile (a dump of an email which i use mail() to send) to a logfile in my home dir. This logfile will grow with all emails send by my ap

Re: [PHP] Binary data 65 kb have then as file: 536 KB ??? fwrite..

2003-06-27 Thread Marek Kilimajer
1. Check if the table column is large enough to store the image 2. fflush($FILEID); just before fclosing it. Gerhard Knapp wrote: hi, perhaps someone can help me ... i store jpgs in a database, then i read them out and write them to a tempfile, the sizeinformation says, the binary blob = 65.535 by

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Marek Kilimajer
A little corection Ernest E Vogelsinger wrote: At 09:42 20.03.2003, Angelo Zanetti said: [snip] Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA [snip]

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Marek Kilimajer
Simly go to mjs/directory.php, line 3, and remove any output that is there, mosty likely some white characters. PHPSpooky wrote: Glory, On the internet server, apart from the beginning tables & html, this is what I get .. Warning: Cannot modify header information - headers already sent by (ou

Re: [PHP] List of Variables

2003-06-27 Thread Marek Kilimajer
$GLOBALS Thomas Weber wrote: Hi, is there any way to get a list of all defined variables? It is intended to be used to get and identify all defined objects to call some costum decunstructor at the scripts end. Thanks! Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mai

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Marek Kilimajer
he same.. ? Just a thought. And lastly, what qualifies for a White Character? PHPSpooky -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 6:14 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] 'Cannot send Headers'

Re: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Marek Kilimajer
is outputting.. somehow it's taking it as the output and this generating the Warning! But I need the HTML in the directory.php for the page.. so what do I do? PHPSPooky -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 6:14 PM To: [

Re: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Marek Kilimajer
The top means the top of the file, not the top of your coding. Simply: Line 1. of directory.php: Line 2. of directory.php: Line 3. of directory.php: PHPSpooky wrote: Headers can't be sent after HTML output, it's as simple as it sounds. What that means is, if you suddenly decide you want to

Re: [PHP] Deleteing Something???

2002-07-24 Thread Marek Kilimajer
unlink() Dale wrote: >I've currently made a signature uploader. > >I know the code that shows a drectory's contents but whats the code to >delete something? > > - Dale > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] including just created file

2002-07-26 Thread Marek Kilimajer
Hi all, I just coded a cache mechanism for some slow code that looks like this: $cache_file_name = "cache/$id/$tid". ($showall ? '_all.php' : '.php'); $cache_dir_name= "cache/$id"; if(!file_exists($cache_file_name) || @filectime($cache_file_name) + 30 < time() )

Re: [PHP] Closing file pointer

2002-07-26 Thread Marek Kilimajer
The filepointer is closed after your script finishes executing, you cannot do it. V_Suresh wrote: >Hi All, > Suppose I'm opening a socket connection to a server on some >port, and I do some transactions, and generate html. But I 'm not >closing the file pointer(socket). Only after the use

Re: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Marek Kilimajer
attribute has the value "radio" or "checkbox". Upon submiting a form, only "successfull" checkboxes are submited, so on the next page you only need this loop: foreach($d_c_arr as $i) { echo ''; } $d_c_arr contains only checked checkboxes. Marek E

Re: [PHP] progress bar for a server side process

2002-09-03 Thread Marek Kilimajer
I've got a nice progress bar with this code: for($i=0;$i<10;$i++) { flush(); sleep(1); echo ''; } But read manual for the flush() function. electroteque wrote: >hi there i have created a script to regenerate thumbnails for a photo >gallery , i have changed my code to use gd true co

Re: [PHP] Class operator :: Problem

2002-09-03 Thread Marek Kilimajer
Try a helper function function helper() { return a::test(); } $testfunct = "helper"; ... Unger, Christian wrote: >I have problems to make a dynamic call, please help me > >class a { > function test() { > echo "Hallo"; > } >} > >$testfunct = "a::test"; > >$testfunct(); > >?> > >r

Re: [PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Marek Kilimajer
Don't forget to use urlencode after serializing. David Robley wrote: >In article <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] says... > > >>Is it possible to pass an array in a form post? If so, how do I reference >>the array on the next page? >> >>Thank You >>Paul >>php >> >> > >I believe you

Re: [PHP] Caching Problem

2002-09-04 Thread Marek Kilimajer
Use header("Location: page.php"); to redirect the browser, you should allways do it after a post that changes or adds or deletes some data on the server. Roland Swingler wrote: >Hi > >I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5) > >The page I want to use is a simple file

Re: [PHP] php mysql error

2002-09-04 Thread Marek Kilimajer
Check file and drectory permisions. ROBERT MCPEAK wrote: >Our box recently went down and after reconfiguring it we're left with a >semi-operation mySQL. One error I'm getting is this: > >mysql> select region from clip_art where region is not null and >released = 'yes' group by region; >ERROR 1:

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
var tmp,url; url = 'http://site/script.php?'; while(tmp = myArray.shift()) { url += 'phparray[]' + escape(tmp); } document.location.href = url; In script.php, you'll find array named phparray kale wrote: >Hy, >I have an array make with a javascript. >How can I read values with PHP from it

Re: [PHP] problem with starting apache in win2k with mcrypt and mhash

2002-09-05 Thread Marek Kilimajer
Terence Lee wrote: >Hello > >i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i >try to start the apache but encounter the following error msg > >"The procedure entry point _ecalloc could not be located in the dynamic >link library php4ts.dll" > >"Unable to load dynamic libr

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
I forgot &, the right version: var tmp,url,separator; url = 'http://site/script.php?'; while(tmp = myArray.shift()) { url += separator + 'phparray[]' + escape(tmp); separator = '&'; } document.location.href = url; Marek Kilimajer wrote: > var

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
.location.href = url; return false; } //--> Click Here kale wrote: >This is a javascript? >Where must I put this lines? >Thanks for help. >Kale. > >-Original Message- >From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] >Sent: Thursday, September

Re: [PHP] formatting a filename

2002-09-05 Thread Marek Kilimajer
I use this, it includes also national characters $name=strtr( $name, "`O}ao~¾YYµAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝßaáâaäaaçeéeëiíîi?noóôoöouúuüýy *!@#$%^&()+=", "SOZsozlYYuAAACDNOOYsaaaconooyy_"); Javier Montserat wrote: > i want to format the file

Re: [PHP] PHP e GD big files

2002-09-05 Thread Marek Kilimajer
The answer is compression - the image with text is more complicated, so the compression ration is lower Rodrigo Peres wrote: >Hi, > >I'm using GD to put a dinamic text in some buttons. The problem is that the >original image that I use has 8k and after i put a black text it jumps to >20K. What

Re: [PHP] dynamic screencapture using gd

2002-09-05 Thread Marek Kilimajer
Shouldn't be possible, as it would be a security risk. electroteque wrote: >yeh i was getting too deep into automation scripts on windoze but became >system intensive thanks > >"Justin French" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >>I seriously

Re: [PHP] Hardware Address

2002-09-06 Thread Marek Kilimajer
exec("arp $_SERVER[REMOTE_ADDR]", $output); $output[0] should be something like ? (192.168.1.37) at 00:E0:4C:00:30:2D [ether] on eth0 Chris Cook wrote: > Hello all, > > I am working on a LAN application and am interested in obtaining the > user's network card address to limit usage of the pro

Re: [PHP] precision using pow()

2002-09-06 Thread Marek Kilimajer
Hi, Split the calculation up an use echo to find the problem. David Rice wrote: > Hi: > I am attempting to calculate a mortgage payment using the following code. > > $P = 10;// principal outstanding > $I = 4.5;// annual interest rate percentage > $N = 20;// number of yea

Re: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
doesn't mean output unless you use echo or print or whatever to output from there anything. Just use header("Location: yournewpage.php"); at the end. Meltem Demirkus wrote: >>I mean I made a page with php and other stuff..And there is form .When I >>click on okbutton php is dpoing what it sh

Re: Fw: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
:2) in >C:\FoxServ\www\debugger\project_module\project_update_.php on line 37 > >the line 2 is > >and start_html.php includes: > > > > > > > > > > > >and line 37 is the header I wrote ?> > > >- Original Message - >From:

Re: [PHP] Re: HTTP_SERVER_VARS not working. Please help

2002-09-06 Thread Marek Kilimajer
Contents of the Host: header from the current request, if there is one. Does your browser send Host: ? If you use IP it doesn't Cirstoiu Aurel Sorin wrote: >This is not the problem. I understand what you mean. >Now you wrote wrong and I copy pasted. >I tried with $_SERVER['HTTP_HOST'] .

Re: [PHP] gmdate()

2002-09-06 Thread Marek Kilimajer
The server needs to be set up correctly - it needs to know what time zone it is in and if the BIOS time is GMT or local. lallous wrote: >Isn't the gmdate() supposed to return the same value when run from two >different timezones? > > >I run it on GMT+2 system and EDT system, and I get 1 hour di

Re: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Marek Kilimajer
If you can use exec you may use convert, or also imlib module provides very good results. Fifield, Mike wrote: >I sent this email out earlier this morning and got no response. It was quite >early so I thought I would send it again now that more people are hopefully >at work :-) > > > > > >I h

Re: [PHP] combine 2 integer

2002-09-09 Thread Marek Kilimajer
$string = $int1 . $int2 Meltem Demirkus wrote: >Hi, > >I want to add one integer to the end of another , which function can I >use?.. > >thanks > >meltem > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkbox question

2002-09-09 Thread Marek Kilimajer
If you cannot use square brackets, get the values yourself from $_SERVER['QUERY_STRING'] Alex Shi wrote: >How to ontain data from a group of checkbox using same name? >For example, in a form there're 6 checkboxes and all named as >"Interesting_Area". I know if put a pairs of square brackets at

Re: [PHP] Strore Data in File

2002-09-11 Thread Marek Kilimajer
You may use either dBase ( http://www.php.net/manual/en/ref.dbase.php ) or http://www.php.net/manual/en/ref.dba.php Ram K wrote: > Hi > > I want to store the data of a table in a file and read that file just > as one would read a table. For e.g. I have a table t_data with cols > name,numbe

Re: [PHP] Questions regarding inserting and updating data into aMySQL db

2002-09-11 Thread Marek Kilimajer
mysql_insert_id() will tell you the number of last auto_increment insert, you can use this, but you must keep it using session on the server side for security reasons. But better solution be to use session or hidden fields in your forms to pass the values from page to page and insert them at o

Re: [PHP] Unable to flush output

2002-09-11 Thread Marek Kilimajer
Didn't you enable some apache extentions, like compression. PHP wrote: >Hi all, >Until yesterday i was running Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6c >PHP/4.2.1 and was able to flush script output to browser (using flush() ), before >the script stops executing. I upgraded to Apach

Re: [PHP] PHP, ask questions

2002-09-11 Thread Marek Kilimajer
Make sure you are not outputing anything besides the headers and actual content of the file, you may also try looking at the downloaded file if there are any php errors and/or warnings. Ralf Bengl wrote: >hallo ..., > >my name is ralf and i read the comments from the last weeks about >"downloa

Re: [PHP] Variable Variables

2002-09-13 Thread Marek Kilimajer
Hi, Mike Smith wrote: >I am stumped on a project for a receiving system. I'm not sure how to handle >receiving more than one line item. I can UPDATE ... WHERE id=$detid when I >have 1 item, but how would I get the SQL to fire X times depending on the >number of line items I have AND UPDATE the a

Re: [PHP] Need 2-way encryption

2002-09-13 Thread Marek Kilimajer
You can use http://www.php.net/manual/en/ref.mcrypt.php Bob Bowker wrote: > Maybe "reversible hashing of a tar file" is a better way to describe > what I need ... I want to make a tar file unreadable (at least can't > be uncompressed) by anyone who doesn't know the key. > > Bob. > > At 10:43 A

Re: [PHP] PHP mem leaks

2002-09-13 Thread Marek Kilimajer
Is the apache parent process ( the one running under root) getting larger too? John Wards wrote: >After being told off on the dev list I have posted this on this list (I >thought it was techie enough to go on that list but I was wrong) > >I am running a large PHP/MySQL/Apache driven website

Re: [PHP] OT - SQL string to get value by latest date only in a join

2002-09-13 Thread Marek Kilimajer
Add ORDER BY date_col DESC LIMIT 1 Merritt, Dave wrote: >All, > >I apologize up front for being off topic, but I don't want to have to >subscribe to other lists unless necessary. I know that someone on this list >should be able to help me out. > >I have the SQL string below that I am running.

Re: [PHP] PHP mem leaks

2002-09-13 Thread Marek Kilimajer
Then I would not think it's php issue, as php is called by forked children. There might be also problems in the libraries, so check for updates. Sorry, cannot help you more. John Wards wrote: >Hmm I am unsure as my server crashed on me this morning and restarted it >self so every thing is bac

Re: [PHP] can you get the name of an object from within it's ownclass?

2002-09-17 Thread Marek Kilimajer
It's not possible, imagine $firstname = new flashPash(); $secondname = $firstname; Now is the log name secondname.log or firstname.log. Use new property. Simon McKenna wrote: >Hi all, > >I'm new to the php world and have just finished building my first class, > >It works pretty well, but i've

Re: [PHP] RE: What unzip program to use?

2002-09-17 Thread Marek Kilimajer
Don't think windowed version will work, but try to get some new 32-bit command line version that understands long filenames. YC Nyon wrote: >My application lets users to upload a zip file into the server. Once done, i >will use php execute function to run a command line to unzip the uploaded >f

Re: [PHP] Redirecting - header location - sometimes not work

2002-09-18 Thread Marek Kilimajer
Try direct connection to the server to see the response it sends, you may also try to send header("HTTP/1.0 302 Found") and see if that helps. What browsers does it happens to? jana konickova wrote: >I have the php script with the command >Header("Location: https://$SERVER_NAME$path";); >which

Re: [PHP] Please, Help dynamicaly creating an Array

2002-09-18 Thread Marek Kilimajer
Try eval(), like this: $str= "'THREE'=>3, 'FOUR'=>4"; eval("\$data2 = array('ONE'=>1,'TWO'=>2,$str);"); Max Sullivan wrote: >I am trying to populate array values and keys from a variable with no >luck. > >Lets say I have the following array. > >$data1 = array('ONE'=>1,'TWO'=>2,'THREE'=>3,'FOU

Re: [PHP] adding unix account via system command

2002-09-18 Thread Marek Kilimajer
It's a shell script, and your shell drops root privileges. Use a shell that doesn't or use a C-wraper. tim tom wrote: >Dear Pete, >Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ? > >-- >tim > >--- Peter Houchin <[EMAIL PROTECTED]> wrote: > > >>you need to m

Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Marek Kilimajer
switch($DOCUMENT_URI) { case '/': include(" watch you want"); break; case } Eric C. Pollitt wrote: >I would like to know how to conditionally included a file based on the >document location. > >The purpose is for placement of location-specific navigation men

Re: [PHP] replacing mail()

2002-09-18 Thread Marek Kilimajer
Try to set it in "disable_functions", it may help, or may not. Otherwise disable it in php sources or even better regexp your scripts to change mail to something else. Liam wrote: >Yeah, mail() again... > >I want to disable the default mail command and replace it with my own. >I've written a f

Re: [PHP] Re: time to seconds

2002-09-18 Thread Marek Kilimajer
won't help, it's forbidden to mix aggregate columns with non aggregate without a group by clause. Make your first query and then the sum. Denis Basta wrote: >Hello, > >Try this: >SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition >Hope it will help ya! > >Regards, >Denis B

Re: [PHP] Messaging Solution

2002-09-18 Thread Marek Kilimajer
You are very general, what you are asking for is all PHP is about. karthikeyan wrote: >Messaging Solution > >I want to develop a web-based Messaging System where the clients needs the messages >and server keeps sending the messages based on Technical Request from the client.

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
As he uses postgresql, he should use *pg_last_oid()* Scott Houseman wrote: > Hi there. > > You can use the function mysql_insert_id( [link id] ). > > regards > > Scott > > Faisal Abdullah wrote: > >> Hi people, >> >> I have a table with a column called ID (auto-increment). >> Is it possible to k

Re: [PHP] Help.....still stuck after 3 days :/

2002-09-18 Thread Marek Kilimajer
I would do it this way (it fails if some names are same): Chad Winger wrote: >Hello Rudolf, >Thank you for responding to my post, I really appreciate it. > >I ran the script you sent me, and then I tried looking up the syntax to try >to figure out what it means. As it would be pointless for me j

Re: [PHP] PHP and Microsoft Office

2002-09-18 Thread Marek Kilimajer
Look at the COM support (never have worked with it but it should be what you are looking for) Matthew Tapia wrote: >Can you use PHP to add appts to my microsoft outlook calendar or open up a >document in ms word? > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Urgent Installation Question

2002-09-18 Thread Marek Kilimajer
If you mean phpinfo.php which calls just phpinfo(), here it is: César Aracena wrote: >Thanks. I installed PHP first and will install MySQL (once the download >finishes) hoping they'll work together just fine. One thing's missing... the >phpinfo.php file, which should be here... but isn't... Sho

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
else, which would >lead me to the '5' i'm looking for? > >-- snip snip -- > >if($result = pg_exec($db, $sql)) >{ > $query = "success"; > echo "oid : " .pg_last_oid($result); > } > >-- snip snip -- > >Sincerely,

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
You encounter a race condition bob parker wrote: >SELECT idno ORDER BY idno DESC LIMIT 1; >assuming idno is what gets auto incremented >bob > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Weird problem with Windows XP and IE6

2002-09-19 Thread Marek Kilimajer
I just tested it (with wrong password) and it worked. Jason wrote: >As an adendum to this... my initial thoughts are that the forms are not >posting correctly in XP. I'm using the POST method. > > >Jason Cathcart >Check Out My Site: http://www.biohazardous.org > -Original Message- > Fr

Re: [PHP] New problem - preg_match?

2002-09-19 Thread Marek Kilimajer
if $datetest has a strict format, use $getdate[1]==$datetest, also put $datetest="$day.month.$year" out of the while loop, it doesn't need to be recreated over and over. Chad Winger wrote: >Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to >you all. I have a new questio

Re: [PHP] File Access...

2002-09-19 Thread Marek Kilimajer
put this to the begining of your some.php if (eregi("some.php",$PHP_SELF)) { Header("Location: index.php"); die(); } Brian McGarvie wrote: >How could you redirect somone from directly accessing a file... > >Meaning... if an engine spiders www.domain.com/some.php > >How could you make s

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Marek Kilimajer
William wrote: >1) Payroll apps require large tax libraries (federal, every state and >locality). > > > Split them into more files (diffrent states etc.) and include_once them when they are needed, and perhaps mysql can take part of the job. >4)Loosely Typed Variables. >I fear it might

Re: [PHP] Click....download and update

2002-09-20 Thread Marek Kilimajer
The Content-Type header changes, when uploading, you can get it from $HTTP_POST_FILES['userfile']['type'], also set the filename using header("Content-Disposition: attachment; filename='. $filename ); Christian Ista wrote: >>You'll need to prompt the download by sending the appropriate heade

Re: [PHP] FPDF and MySQL

2002-09-20 Thread Marek Kilimajer
If you look at the tutorial no. 5 on www.fpdf.org, all you need is to change LoadData function, example: function LoadData($condition) { $res=mysql_query("SELECT * FROM table WHERE 1 AND ($condition)"); while($data[]=mysql_fetch_row($res) ) { } return $data; } Chuck Payne wrote: >Hi

Re: [PHP] Querying from PHP to a MySQL database

2002-09-20 Thread Marek Kilimajer
wildcard in SQL is %, so your query looks like: $query_search1 = "SELECT * FROM secureworks WHERE $varSort_search1 LIKE '%$varText_search1%'"; [EMAIL PROTECTED] wrote: >Howdy all! > >I've built a page in Dreamweaver MX that uses PHP for scripting. I >can get >data out of my mysql database but

Re: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Marek Kilimajer
Well, this would work in MySQL, I have even more LEFT JOINs, so go find out if it is possible with Oracle. Faisal Abdullah wrote: >Hi again people! How's it goin? > >Here's the question >How do I do left joins from multiple tables? >I want to do something like this: > >"select a.name, b.departm

Re: [PHP] in a logic loop!

2002-09-24 Thread Marek Kilimajer
Do it after the loop finishes while( ){ if( something ) { print out; reinicialize } } print out Naintara Jain wrote: >I have a logic problem: > >I have a complicated query. The main thing is that I have an ID, and for a >particular ID, I may have between 1 to 3 rows r

Re: [PHP] file uploads problem

2002-09-24 Thread Marek Kilimajer
What I don't understand is how can your webserver create a file and then not to have permission to read it. What is your setup? Jaski wrote: > No Edwin .. I can't do any thing to that file .. not even from my ftp > client .. can't download can't change permissions .. > > The server is managed

Re: [PHP] Create login procedure...

2002-09-24 Thread Marek Kilimajer
Christian Ista wrote: >Hello, > >I change the procedure to create an account for users. For the moment, >the user (to create and log in), have to create an account with e-mail + >password. I'd like to create a procedure to check the e-mail (login) >validity. But I'd like to check if the e-ma

Re: [PHP] Re: domxml and setting the DOCTYPE

2002-09-24 Thread Marek Kilimajer
Don't know much about DOM, but it seems you can use dump_mem() to dump the xml into a string, and then replace your first line Raphael Bauduin wrote: >Please, don't tell me I can't set the doctype with php!? >Will I have to user a 3 liner in perl to set the doctype? :( > >Raph > > >Raphael Baud

Re: [PHP] Error with file upload: "No file uploaded in Unknown online 0"

2002-09-24 Thread Marek Kilimajer
Turn off notice logging in your php.ini, just keep warnings and errors. Jason Young wrote: > I have some code that a user can set a description about an item to be > posted, and then add some image files of the item. > > Its a 3x3 frame of fields, along with an 'include' > line for each one..

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Marek Kilimajer
Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global. Trevor Dowling wrote: >Can anyone help with this? > >I am relativly new to PHP and am trying to use variable numbers of >parameters to functions using the f

Re: [PHP] Error with file upload: "No file uploaded in Unknown on

2002-09-24 Thread Marek Kilimajer
something that is > not reported as an error to begin with? > > But even so, what about the other Notices I might receive in regards > to other debugging.. I have to get rid of all that, too? > > Basically I'm asking if this is the only way to do it.. > > Tha

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Marek Kilimajer
The algoritm gdlib uses is fast but worst. Use either exec("convert ...") or imlib extension Michael F. wrote: >Hello, > >I have a php script which resizes a jpeg file. I use ImageCopyResized and >ImageJPEG function. But the result picture quality is not enough good. I use >ImageJPEG with qual

Re: [PHP] PHP Form and Arrays help

2002-09-24 Thread Marek Kilimajer
Use either session to "remember" the checkboxes' name/value pairs or hidden fields. Tom Ray wrote: >I'm having a small problem with a form I'm designing and I hope someone can >point me in the right direction here. The form's function is rather simple >actaully. It's supposed to take the inform

Re: [PHP] Creating/displaying page content and downloading a fileat the sa me time

2002-09-24 Thread Marek Kilimajer
Display a page first, then use the redirect header to redirect the browser to the actual file. Merritt, Dave wrote: >All, > >I'm trying to write a script that will allow the user to download/save a >file but I also want to be able to display a web page in the browser window >as well. If a user

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread Marek Kilimajer
Or better UPDATE table SET col = col +1 Jay Blanchard wrote: >[snip] >I have a field on a MySql database that is started with a 0, and I want >to add 1 to this field every time a button is pressed on a form. So it >should add one every time, like if there is 5 and you press it one time >it would

Re: [PHP] Jpeg resize quality problem

2002-09-24 Thread Marek Kilimajer
nsion? > >Thanks! > > >"Marek Kilimajer" <[EMAIL PROTECTED]> az alábbiakat írta a következo >hírüzenetben: [EMAIL PROTECTED] > > >>The algoritm gdlib uses is fast but worst. Use either exec("convert >>...") or imlib extension >> >>Mic

Re: [PHP] Re: exec("echo ... issuse

2002-09-25 Thread Marek Kilimajer
this must work: exec('echo "`date` 192.168.10.123 is down, lets call the admin. I was sleeping for 10 minutes" | smbclient -M '. $compname); Mario Ohnewald wrote: >Hi Henry! > > > > >>From: Henry [mailto:[EMAIL PROTECTED]] >> >>How about >> >>>$command="\"`date` ===> $ip is down, lets call t

Re: [PHP] where's waldo

2002-09-25 Thread Marek Kilimajer
This is for java, javascript, or flash, not much to do for php. Kenneth Love wrote: >hi all. > >i'm interested in creating a php game that generates a page of random (ish) >images, one of which is waldo (or the like). when the player clicks on >waldo, they're taken to the next, slightly harder l

Re: [PHP] Re: Including variables

2002-09-26 Thread Marek Kilimajer
Just dont forget that eval assumes php code, so escape from it first using ?> Erwin wrote: >>I'm having quite a dumb problem with PHP... It's probably more a >>result >>of brain freeze than anything else, but if anyone could help it'd be >>very much appreciated. >> >>Basically, I need to includ

Re: [PHP] Who is online script example

2002-09-26 Thread Marek Kilimajer
Look at phpnuke, or any other website management project Research and Development wrote: > Hello. Has anyone noticed that some sites can display a list of users > currently looking at their site? I would like to see the code to do > such things. > > Thanks in advance. > > -- PHP General Mai

Re: [PHP] Calling an external C function under Unix

2002-09-26 Thread Marek Kilimajer
Simply make your own php module. Anna Sotnichenko wrote: >Hello All! > >I want to transfer a PHP script with minimum changes from IIS under Win2000 >to Unix. My ISAPI PHP script calls some external C-functions through PHP >W32api extension. >Is there a way to call external C-function from PHP-sc

Re: [PHP] listing of directories into links

2002-09-26 Thread Marek Kilimajer
$d=opendir('/home/'); while($u=readdir($d)) { if($u!='.' && $u!='..' && (fileexists('/home/'.$u.'/public_html/index.html') || fileexists('/home/'.$u.'/public_html/index.php') ... more index files)) { echo ..link..; } } untested Bryan Koschmann - GKT wrote: >Hi, > >I need to do someth

Re: [PHP] Finding out when a Web page has changed

2002-09-26 Thread Marek Kilimajer
Hope the sites have no banners :), they change all the time John Holmes wrote: >You could cache/save the actual contents of the file, then when you read >it next time, compare it to what you saved and see if it changed. You >may want to filter out everything but what's between and , >so you're

Re: [PHP] Help with PHP and HTML

2002-09-26 Thread Marek Kilimajer
When we are at it let's don't forget htmlspecialchars skitum wrote: >hey folks, don't forget quotes ;o) > >readonly> > >I use one like this: >readonly> >and it works ok. > >Peace & Love >skitum > >- Original Message - >From: "Jay Blanchard" <[EMAIL PROTECTED]> >To: "'Ken'" <[EMAIL PR

Re: [PHP] parsing PHP to create HTML only page

2002-09-27 Thread Marek Kilimajer
You can use phpnuke or similar to achieve this, all you need is to decide which database to use (you may use Host: header, or directory). But sure, this won't change your dns records or Apache conf files. Tony Burgess wrote: >Hi All, > >I'm really just looking for some advice! > >I am looking

Re: [PHP] Update involving a list field

2002-09-27 Thread Marek Kilimajer
You mean enum column type? There is nothing special about it, besides you cannot change it to anything else. echo your update query and see what it looks like. Shiloh Madsen wrote: >Hi, > >Im using a form that updates a database entry. In it one of my fields is a drop >down/list field. Whenev

Re: [PHP] php mysql fulltext search min word length = 3

2002-09-27 Thread Marek Kilimajer
The only option is to recompile mysql ROBERT MCPEAK wrote: >Much to my dismay, I've learned that the mySQL minimum >indexable/searchable word length is 3 characters. This is a real >problem for me. Anybody know a workaround, or how to tweak mySQL to >allow for matches of words 3 chars or less.

Re: [PHP] Getting part of a string

2002-09-27 Thread Marek Kilimajer
reg_match('^/[^/]*/([^/]*)/',$a, $match) $match[1] should contain what you need [EMAIL PROTECTED] wrote: >I've got a situation where I need to pull a string from a variable but I >can't seem to get it figured out. > >I.e. > >value of $a = /realtor/Remax/Ed/files/ > >I need to get the string be

Re: [PHP] FW: problem with new_xmldoc()

2002-09-27 Thread Marek Kilimajer
What does php_info() say, was php compiled --with-dom Davíð Örn Jóhannsson wrote: > >I ran into a problem using new_xmldoc() function I just set up PHP v >4.2.3 because the 4.0.1. version resulted: >Fatal error: Call to undefined function: new_xmldoc() > >and so dose the new version v.4.2.3 >

Re: [PHP] FW: problem with new_xmldoc()

2002-09-27 Thread Marek Kilimajer
That's likely an old name, look at the docs Davíð Örn Jóhannsson wrote: >Don't know it's a just downloaded the win32 binary package > >-Original Message- >From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] >Sent: 27. september 2002 15:58 >To: PHP >

Re: [PHP] FW: problem with new_xmldoc()

2002-09-27 Thread Marek Kilimajer
ing="iso-8859-1" whene >you >Have created a new_xmldoc with new_xmldoc("1.0"); > >Thanks for your time. > >-Original Message- >From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] >Sent: 27. september 2002 16:28 >To: PHP >Subject: Re: [PHP] FW:

Re: [PHP] Re: exec issue - return value 127 (more and more)

2002-09-27 Thread Marek Kilimajer
set *safe_mode_exec_dir *and put there your binaries christian haines wrote: >here is some more info > >i figured out the exec fails because php is running in safe mode. that is ok >when i am at home developing (i can turn it off) however when i go to upload >my app to my server which runs i

Re: [PHP] Update identical table

2002-09-28 Thread Marek Kilimajer
INSERT INTO data SELECT * FROM tmp_data WHERE condition_definition Radu Manole wrote: >Hi guys, > >I have 2 identical tables called "tmp_data" and "data". (on the same mysql database). >What would be the simple and more convenient way to update table "data" with a row >from table "tmp_data". >(

Re: [PHP] pdf question

2002-09-30 Thread Marek Kilimajer
I think you can still make a tempfile in /tmp, use this directory Jonas Geiregat wrote: > this is my code > > $pdf = pdf_new(); > > pdf_open_file($pdf); > pdf_begin_page($pdf, 595, 842); > pdf_set_font($pdf, "Times-Roman", 30, "host"); > pdf_set_value($pdf, "textrendering", 1); > pdf_show_xy($p

Re: [PHP] OT-best PDF creation tool

2002-09-30 Thread Marek Kilimajer
I use FPDF www.fpdf.org , free even for commersional use and doesn't require any special module loaded Ryan A wrote: >Hey guys, >I know this is totally off topic on a php list but I have a client who wants a PDF >document and since I have never made one before...which is the easiest and best t

Re: [PHP] OT-best PDF creation tool

2002-09-30 Thread Marek Kilimajer
web? > >Justin French > > >on 30/09/02 9:51 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: > > > >>I use FPDF www.fpdf.org , free even for commersional use and doesn't >>require any special module loaded >> >>Ryan A wrote: >> >>

Re: [PHP] mime type list

2002-09-30 Thread Marek Kilimajer
I know about /etc/mime.types, does that help? christian haines wrote: >hi all, > >i have been looking around on the net for a relatively complete >mime-type listing (possibly showing extensions) but have not come across >anything. >does anyone know of such a list or where i could obtain one? > >

Re: SV: [PHP] Quickie

2002-09-30 Thread Marek Kilimajer
Your session variable overwrites the get variable, use $newlang session_start(); session_register("lang"); if(isset($newlang) $lang=$newlang; // check here for valid values if (!isset($lang)) { $lang = 'se'; } Daniel Alsén wrote: >John W. Holmes propably said: > > > >>Is register globals on

Re: [PHP] checking if a MySQL update worked

2002-09-30 Thread Marek Kilimajer
mysql_error() will contain error text if "it didn't work" Henry wrote: >Hi All, > >mysql_affected_rows() returns zero if you update without changing the data >in a database record. How do you tell the difference betwix "it worked but >nothing changed" as opposed to "it didn't work"? > >TIA > >He

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