Re: [PHP] help me please! :)

2002-06-10 Thread Marek Kilimajer
Try: for ($i=1; $i=$n;i++){ ... $tmp=liv_$i; echo {$$tmp}; ... } Veronica Ghezzi wrote: Hi, i must get the information saved in a several select list named liv_1 select name=liv_1 liv_2

Re: [PHP] Quick question

2002-06-14 Thread Marek Kilimajer
Quick answer: input type=checkbox name=name value=value?= ( $HTTP_POST_VARS['name']=='value' ? ' checked' : '' ) ? the same for radio boxes. Dan McCullough wrote: I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it

Re: [PHP] session and temporary tables 2

2002-06-18 Thread Marek Kilimajer
Use mysql_pconnect($hostname, $username, $password); Wilbert Enserink wrote: Jason, this is a piece of code i include in every file. I thinbk this is the piece of code which kills my connection. do you have any tips for me how to maintain the connectoin open? thx Wilbert

Re: [PHP] Another Pop-Up problem..

2002-06-27 Thread Marek Kilimajer
My guess is that there is no new window opened, because you call window.open with window name that allready exists, so instead of: function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } try: var threadWindow; function

Re: [PHP] diffrance : require(); a file from localhost and from adomain.

2002-06-27 Thread Marek Kilimajer
If they are the same the difference will be in $HTTP_HOST and (if different) $SERVER_ADDR, but you want be able to find that out in a gif file. Rasmus Lerdorf wrote: That is the technical difference. Both will make HTTP requests and issue a GET request to fetch the image file. One opens a

Re: [PHP] include_module()

2002-06-27 Thread Marek Kilimajer
Hi, instead of include_module() use int *dl* ( string library) Loads the PHP extension defined in /library/. Other questions: array *get_defined_functions* ( void) This function returns an multidimensional array containing a list of all defined functions, both built-in (internal) and

Re: [PHP] Incrementing a table cell

2002-06-28 Thread Marek Kilimajer
you can use: UPDATE column SET column + 1 WHERE condition JJ Harrison wrote: what is the best way to increment a mySQL table cell? is there a increment function or do I need to increment it in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Adding GD libraries after compile

2002-06-28 Thread Marek Kilimajer
Yes, you are ruled out, unless you can convice your administrator to include it. Extensions are pure machine code, so if anybody could load his/her own extension, he/she could easily gain http server priviledges. Justin French wrote: I've just done a little reading on dl(), and it would

Re: [PHP] Globals bug??

2002-07-01 Thread Marek Kilimajer
Are you using any opcode cache? Are you sure it is another process or might it be another thread. Marek [EMAIL PROTECTED] wrote: We are seeing a rare bug that seems to imply that there is a bug in PHP's global variables across httpd processes. To make a long story short, it appears that

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
rename can move the file only on the same partition, it is realy just _rename_, not full _move_ Marek Tim Stoop wrote: Hi people, I want to move a file from one location to another. I expect I can only do this with 'rename', because there's no 'move'-command (at least nog in the

Re: [PHP] mySQL and phpMyAdmin

2002-07-04 Thread Marek Kilimajer
You need to install php-mysql* too. Jadiel Flores wrote: Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but I'm receiving the error message: cannot load MySQL extension, please check PHP Configuration. I checked the php.ini and couldn't find anything related, my configure

Re: [PHP] eregi problems

2002-07-04 Thread Marek Kilimajer
If the regexp matches, it is a valid email, so you need ! in front of it. dan radom wrote: I've got a form that's posted to a php page where I'm attempting to validate a field contains a valid email address. The eregi below seems to be totally ignored... if

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
None that I know of. You need to use copy unlink Tim Stoop wrote: Marek Kilimajer wrote: rename can move the file only on the same partition, it is realy just _rename_, not full _move_ So there is no full-features move in PHP? -- PHP General Mailing List (http

Re: [PHP] Button can't see form!

2002-07-04 Thread Marek Kilimajer
I dont think forms can be nested. In fact I'm pretty sure. Mark Colvin wrote: I use the following line in some of my php scripts to navigate between pages: td align=left width=40pxinput type='button' class='bginput' value='New' onClick=this.form.action='newproduct.php?mode=new';

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
The only way I see this can be done is simly let every user mount a share under the same letter, all you need to do then is a href=file:///X:/directory/file.docfile/a, then locking files is up to samba or windows server. Marek Richard Lynch wrote: I have an intranet, which provides

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Marek Kilimajer
shares on the internet or know if its secure/insecure? Thanks Chris Marek Kilimajer wrote: The only way I see this can be done is simly let every user mount a share under the same letter, all you need to do then is a href=file:///X:/directory/file.docfile/a, then locking files is up

Re: [PHP] Re: Executing Script through image

2002-07-09 Thread Marek Kilimajer
instead of $fn=fopen($filename,rb); while(!feof($fn)) { echo fread($fn, 4096); } use readfile($filename); BB wrote: $filename = your/file.gif; header(Content-Type: image/gif); header(Content-length:.filesize($filename)); $fn=fopen($filename,rb); while(!feof($fn)) { echo fread($fn, 4096); }

Re: [PHP] Wait/Timeout

2002-07-09 Thread Marek Kilimajer
You could call another script in language of your choise using $output =exec('command'); Marek Michael wrote: Hi! I've been using PHP to write shell scripts and was wondering how to implement the following: - I have a menuing system - If a user does not give an input within a certain

Re: [PHP] passing objects in url

2002-07-09 Thread Marek Kilimajer
This won't work, you must register it within a session, just remember to declare the class befor session_start() Alexander Ross wrote: If $this is an object, can I have the following link? a href=process_this.php?this=$thisProcess/a Will the URL become too long? Will teh info get passed

Re: [PHP]Erik Hegreberg

2002-07-10 Thread Marek Kilimajer
Well, he likely never be able to unsubscribe himself, as he needs to reply to the unsubscribe notice, but his account is now full. R'twick Niceorgaw wrote: I just setup a rule in OE to forward his own mail to himself and delete it form my machine - Original Message - From: Jeff Lewis

Re: [PHP] Re: cookie ?

2002-07-10 Thread Marek Kilimajer
Johan Holst Nielsen wrote: (yes it's me again) i've got an other problem. i've got an login system, and it has to put an cookie, but it seems he doesn't do it. is it an php.ini problem ?? Dont think it a php.ini file. First of all. Remember to set the cookie before any other headers

Re: [PHP] Re: Editing Word Documents

2002-07-10 Thread Marek Kilimajer
Now I reminded myself of WebDAV (http://www.webdav.org/), it is a filesystem over http. There is an apache module available (http://www.webdav.org/mod_dav/). It should be easier to set up then VPN. Chris Hewitt wrote: Thanks Marek Kilimajer wrote: If you can use virtual private network

Re: [PHP] Generate a file

2002-07-10 Thread Marek Kilimajer
Use BiffWriter, I don't know where it lives, you must find it yourself. Phillip S. Baker wrote: Okay here is what I want to do. Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an

Re: [PHP] Re: Get Anchor out of Url

2002-07-16 Thread Marek Kilimajer
Wait, you mean IE sends the full uri (including the anchor #JumpHere) as a GET request? Anchor is interpreted on the client side, this means browser reads trought the document looking for anchor of that name. You cannot get it on server, maybe somehow with javascript. Marek Martin Thoma

Re: [PHP] Accessing Ports

2002-07-18 Thread Marek Kilimajer
Only if you write your own module. Thomas \omega\ Henning wrote: Hello, Can i access my paralel or USB port with PHP server side? Thomas omega Henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Code errors

2002-07-18 Thread Marek Kilimajer
My guess is that there is no ',' in $Line, so split returns an array with one variable, so list() warns you parameter No. 1, 2 ,3 4 and 5 are not asigned any value. Chris Crane wrote: 247: list($H_Date, $H_Open, $H_High, $H_Low, $H_Close, $H_Volume) = split(,, $Line); Scott Fletcher [EMAIL

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] cron: No such file or directory

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

Re: [PHP] Re: PHP Hex Numbers

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

Re: [PHP] Download Script - Newbie Alert

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

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Marek Kilimajer
You cannot create a database from within PHP, you need to connect to mysql server ( my guess is the same applies to MS Access), and with root priviledges call something like mysql_query(CREATE TABLE nuke_stories ( sid int(11) NOT NULL auto_increment, catid int(11) NOT NULL default '0',

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 user

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

2002-09-02 Thread Marek Kilimajer
You are wrong, this is from HTML 4.01 specification: value = /cdata/ cid:[EMAIL PROTECTED] [CA] cid:[EMAIL PROTECTED] This attribute specifies the initial value cid:[EMAIL PROTECTED] of the control. It is optional except when the type cid:[EMAIL PROTECTED] attribute has the value radio or

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;$i10;$i++) { flush(); sleep(1); echo 'img src=img.gif width=20 height=20 border=0 alt=X'; } But read manual for the flush() function. electroteque wrote: hi there i have created a script to regenerate thumbnails for a photo

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(); ? returns: Fatal

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 may need

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 upload

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: Can't

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 library

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 tmp,url; url = 'http://site/script.php

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
; } //-- /script /head body a href= onClick=return sendArray()Click Here/a /body /html 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 05, 2002 2:31 PM

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 filename

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 I'm

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 doubt it,

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 program.

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. ?PHP $P = 10;// principal outstanding $I = 4.5;// annual interest rate percentage $N = 20;// number of

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

Re: Fw: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
); ? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, September 06, 2002 12:55 PM Subject: Re: [PHP] question about Location ? ? doesn't mean output unless you use echo or print or whatever to output from there anything. Just use header(Location

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'] . No

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

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 have been

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 the

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

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

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

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 download a

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

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 AM

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. The

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 back

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 run

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

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,'FOUR'=4); And I

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 make sure

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 menus.

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

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 Basta.

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. I

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 know the value of

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 just

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 unsubscribe,

Re: [PHP] Urgent Installation Question

2002-09-18 Thread Marek Kilimajer
If you mean phpinfo.php which calls just phpinfo(), here it is: ? phpinfo(); ? 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...

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
; echo oid : .pg_last_oid($result); } -- snip snip -- Sincerely, Faisal -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 5:42 PM To: PHP Subject: Re: [PHP] Auto-increment value As he uses postgresql, he should use *pg_last_oid

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- From:

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 question

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 some.php

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 be to

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

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 I

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.department,

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

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 by

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-mail

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 Bauduin

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 input type=file fields, along with an 'include' line for

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

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

2002-09-24 Thread Marek Kilimajer
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.. Thanks. -Jason Marek Kilimajer wrote: Turn off notice

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 quality =

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

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
convert is a command common on unix platforms, might be available even for windows. Imlib ext. is not available for Windows. ( check http://mmcc.cx/php_imlib/ ) Michael F. wrote: But what is this convert function? (I use WinXP) Or how can I install the imlib extension? Thanks! Marek

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 ?php $command=\`date` === $ip is down, lets call the admin. I was

  1   2   3   4   5   6   7   8   9   10   >