[PHP] Reading a file from another server

2003-07-25 Thread Thomas
Hi Everyone. I'm having problems creating code to read a file from another server. 1. Is this even possible? with a secure server aswell? 2. I have tried using fopen()but this always gives me an error: Warning: stat failed for http://www.domain.com/test.txt (errno=2 - No such file or

Re: [PHP] Reading a file from another server

2003-07-25 Thread Thomas
it. and I knwo the txt file is full of info. I'm stumped again. Cheers. for your help. Thomas "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Thomas <[EMAIL PROTECTED]> wrote: > > I'm having problems creating code t

Re: [PHP] Reading a file from another server

2003-07-26 Thread Thomas
; . $url . $filename); print ($result); ?> // OUTPUT 0 if I use anythign other than the ftp:// for a prefix (like http. or https) I get an error. Cheers. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Thomas <[EMAIL PROTECTED]

[PHP] PHP - Flash problem

2003-07-26 Thread Thomas
Hello everyone, I'm trying to pass some info into Flash. this worked fine with another funciton call instead of Players(); But for some reason it will only pass the first name into flash..that's it. however, when I check it just in a browser, it works fine. I'm not sure why this one won't specif

[PHP] imap_headerinfo() - problem

2003-03-26 Thread thomas
nnot be displayed" (in IE) any ideea? have fun thomas

Re: [PHP] $_SERVER[REMOTE_ADDR]

2003-04-01 Thread thomas
$_SERVER["REMOTE_ADDR"] If the user have a proxy the real IP is: $_SERVER["HTTP_X_FORWARDED_FOR"] have fun thomas - Original Message - From: John To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 1:26 AM Subject: [PHP] $_SERVER[REMOTE_ADDR] Makes

[PHP] Submit Image Button

2003-04-02 Thread Thomas
I have a problem with my php. I have a form and in that form there is an image submit button. When I click on it, it won't tell me if the submit button is clicked. It works fine with a normal one. sample: If I use This works finedo I need to do something e

Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
ok, sorry I'm a newb...what do I do with that info? I saw that page, but it makes no sense to me Thomas "John Coggeshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > http://www.php.net/manual/en/language.variables.external.php > > > &

Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
AwesomeThank you so much. Cheers. Thomas "John Coggeshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Well you can ignore it if you don't need the X/Y cord... But you can use > it to make sure the button was clicked: > >

Re: [PHP] Submit Image Button

2003-04-03 Thread Thomas
It works either way apparently...plus, I need the $POST not $_GET. but it works aswell. "-{ Rene Brehmer }-" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about "RE: [PHP] > Submit Image Button" what the universal translato

[PHP] intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread Thomas
iles for C++. Is this available? If not, what is the easiest way to link in a few of my own fully compiled functions to be used from PHP? Thanks to everyone who has any clue what I am talking about :), Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread Thomas
> did you check www.zend.com and their caching/optimizing products? They dont seem to have anything free, I need something free. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

[PHP] using semaphores problem

2001-12-04 Thread Thomas
Hello there, I am using semaphores to synchronize access to specific database records. Problem is, it does not seem that the semaphores are being released. Not only am I using sem_release() but the PHP manual says it will release all semaphores that are still acquired at the end of the PHP page lo

[PHP] Re: using semaphores problem

2001-12-04 Thread Thomas
Ok, I got it working so long as sem_release is SPECIFICALLY called. Problem is I have a lot of "die" calls throughout my scripts and I would rather not have exit hooks on every script (not sure how reliably those will ALWAYS be called, and would be a hassle to store a list of all semaphores to be

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-05 Thread Thomas
The following code fails after the first call: if(!($lock_id = sem_get(2501)) || !sem_acquire($lock_id)) die('failed to get semaphore') ..do something, error triggers "exit;".. sem_release($lock_id) But having sem_release right after acquire makes everything work ok. I use FreeBSD and see ther

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-07 Thread Thomas
ANYONE CAN HELP WITH THIS PLEASE??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: HOW to download PHP files without the use of a FTP client

2001-12-07 Thread Thomas
I had a similar situation, I just made a simple editor on a PHP website, and then edited the files from any other computer. You can the editor script over a SSL secure connection or at least have it passworded if you are worried about security, but either way its safer and simpler than FTP. --

[PHP] Re: Help wih select boxes pls

2001-12-07 Thread Thomas
This is a client-side situation, so PHP probably wont help much. Some people do it with javascript and others use it by submitting forms and refreshing the page everytime it is changed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] Re: Looking for content writers for new IT magazine

2001-12-07 Thread Thomas
I might be interested, I will email you about doing a column. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Binary Header

2001-12-07 Thread Thomas
You need to send a Content-Type header, I believe it is octet-stream or something similar to that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL P

[PHP] Mutex Access Available?

2001-12-07 Thread Thomas
Is there any mutex access with PHP or just the SysV semaphores? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: copy image from database

2001-12-08 Thread Thomas
"copy" copies file to file, not data to a file (creating files). You should look at using fopen() and fwrite() instead. You may also want to check the returned value from these functions to see if an error occurred. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

[PHP] DB calls vs Session solution

2006-03-10 Thread Thomas
Hi there, Quick question on performance: I have got some expensive sql queries (doing lots of LEFT JOINS) that result in anything between 10 to 1 results. I need to do paging on those. So far I have used a LIMIT solution which will not do anymore because you don't get the whole total. Now,

[PHP] Multiple inserts as a single string?

2005-06-02 Thread Thomas
inserting, that way we don't call the db n times from php. Does that make any difference? Maybe I am just stupid . Thomas

RE: [PHP] Multiple inserts as a single string?

2005-06-02 Thread Thomas
Hi Chris, Thanks, I thought so. You are quite right with the errors, I ran into some where it looked like that php does not allow you to execute such a concated string ... the error started at the second insert statement with no apparent reason. Is that a ph restriction? Thomas -Original

RE: [PHP] Multiple inserts as a single string?

2005-06-02 Thread Thomas
Thanks Richard that makes it clear. Thomas -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 02 June 2005 12:43 PM To: php-general@lists.php.net Subject: Re: [PHP] Multiple inserts as a single string? Hello Thomas, Thursday, June 2, 2005, 10:20:11 AM, you wrote

[PHP] tidy question

2005-06-10 Thread Thomas
that repair function on every page call, 2. I am using xhtml1.1 as DOCTYPE and tidy only gives me the 1.0 transitional version. Thanks, Thomas

[PHP] Flexy help

2005-06-10 Thread Thomas
sufficient). Thanks Thomas

[PHP] DB relationship chart generator?

2005-06-14 Thread Thomas
Hi there, Is there an app out there that can easily create a relationship (flow) diagram of a given database? Thomas

[PHP] Conceptional question

2005-06-29 Thread Thomas
quite often (just renamed the files to the insert id) with good success. Any ideas? Thomas

[PHP] Tracking a mobile phone

2005-07-18 Thread Thomas
t if could do any other way would be great. Any ideas? Thomas

[PHP] dynamically selecting a function

2005-08-08 Thread Thomas
Hi there, How can I do something like this: [snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip] $step would be an int (I would check that before) and then I would have all sorts of functions like step1(), step2() . etc. Any ideas? Thomas

RE: [PHP] Re: dynamically selecting a function

2005-08-08 Thread Thomas
Thanks Burhan. Is there much overhead? Norbert: that's what I am doing now, just wanted to save some code. :-) Thomas -Original Message- From: Norbert Wenzel [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 11:18 AM To: php-general@lists.php.net Subject: [PHP] Re: dynamically select

[PHP] php as standalone?

2005-08-23 Thread Thomas
reating of reports, and so on, and so forth . ) Alternatives could be: mono, qt (arrgh), mozilla/xul (any done that?) or Java :-( . Any thoughts on that? Thomas

[PHP] Protecing files

2005-08-29 Thread Thomas
Hi there, How can I protect all files with extension .xml from being accessed by the outside? For Apache can one use .htaccess (if yes, how?), is there a generic way of keeping stalkers from viewing your config files? Thomas SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen, 0043 Tel

RE: [PHP] Protecing files

2005-08-29 Thread Thomas
who may or may not like to do that)? From that question, .htaccess files seemm the most portable solution. Thanks again. t -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: 29 August 2005 07:59 PM To: Thomas Cc: php-general@lists.php.net Subject: Re: [PHP] Prote

[PHP] intval() vs. (int)

2005-09-02 Thread Thomas
Hi, On checking form fields that they are of type int, what is best to use: intval() or type casting (int)? In terms of speed, would (int) not be better, because we save a function call (especially on very large sql statements)? Thanks. Thomasx` SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen

[PHP] __FILE__ and __LINE__ of calling scripts?

2005-09-27 Thread Thomas
r into the query function manually? Thanks Thomas SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen, 0043 Tel: +27 12 362 3486 Fax: +27 12 362 3493 Mobile: +27 82 442 9228 Email: [EMAIL PROTECTED] Web: www.spiraleye.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] __FILE__ and __LINE__ of calling scripts?

2005-09-27 Thread Thomas
Sent: 27 September 2005 03:20 PM To: php-general@lists.php.net Subject: Re: [PHP] __FILE__ and __LINE__ of calling scripts? Thomas wrote: >Hi, > >I want to find out if it is possible to get the file name and the line >number of a calling script (__FILE__, __LINE_) from a calling cla

[PHP] serializing result sets or what?

2005-09-28 Thread Thomas
Hi, Having spent a little time on Google (and reading unrelated articles ...) I would like post my question here again (as advice on the list is always very valuable indeed!): Q: What would be the best way to save db calls for large result sets? I thought about serializing the data and then c

[PHP] serializing result sets, or what?

2005-09-28 Thread Thomas
Hi, Having spent a little time on Google (and reading unrelated articles ...) I would like post my question here again (as advice on the list is always very valuable indeed!): Q: What would be the best way to save db calls for large result sets? I thought about serializing the data and then c

RE: [PHP] serializing result sets or what?

2005-09-28 Thread Thomas
scripts)? Thanks T -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:41 AM To: php-general@lists.php.net Subject: Re: [PHP] serializing result sets or what? Thomas wrote: > Q: What would be the best way to save db calls for large res

RE: [PHP] Web Service Php - Currency Conversion

2005-09-28 Thread Thomas
I have used nusoap and a xmethods service. You can get the ziped files here: http://www.thomash.co.za/uploads/forex/forex.nusoap.zip Hope that helps BTW: also had issues with the PEAR package. T -Original Message- From: Sylvain Gourvil [mailto:[EMAIL PROTECTED] Sent: 28 September 2005

RE: [PHP] template systems

2005-12-05 Thread Thomas
Hi, Templating systems are really a matter of taste. You have a few options, depending also on the paradigm you want to use (Model2, MVC ... maybe read up on that as that is good general knowledge). Also, please check the archives as this question has already been discussed at length ;-) Anyway,

RE: [PHP] Migration from MySQL to MS-SQL Server

2005-12-09 Thread Thomas
eason (but then again, we might have been stupid :-)_ If you are rewriting the project, why don't you implement a DB abstract layer, like PEAR:DB or adodb_lite? Will take you a while but will make your code look so much better. Cheers Thomas -Original Message- From: AmirBehzad Eslami

RE: [PHP] help me plz

2006-01-20 Thread Thomas
with javascript (if you do not need 'fresh' data) Thomas -Original Message- From: Robert Graham [mailto:[EMAIL PROTECTED] Sent: 19 January 2006 09:34 AM To: suresh kumar Cc: php-general@lists.php.net Subject: Re: [PHP] help me plz suresh kumar wrote: > hi, >i am usin

[PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
also indicates that it can't really be my php scripts, otherwise it would happen all the time. Does anybody have any suggestion as to how I can solve this issue? I know this is pretty vague information, but it's all I have (hence the confusion). Thanks, Thomas SPIRAL EYE STUDIOS P.O. Box 379

RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
Hi Jochem, PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause some server id10t error (if indeed the issue is on my side). Thomas -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 25 January 2006 03:00 PM To: Thomas Cc: php-general

[PHP] sockets (again)

2002-11-25 Thread Gareth Thomas
Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was running fine Friday has decided not to work for no apparent reason today. The problem seems to be with a socket_create that just stops the script, so I created a simple test script as shown below to s

[PHP] Re: imap

2002-11-25 Thread Thomas Seifert
.delouw.ch/linux/web-cyradm/ Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re-writing to the same socket

2002-11-26 Thread Gareth Thomas
Hi, I have some code that writes data to a socket (works fine) and stores the resource id created in a table with the column defined as varchar (80). Then the next time I need to write data to the same IP I retrieve the resource id and reuse it. Problem is that the socket_write seems to work fine

[PHP] help with session variables

2002-11-28 Thread Thomas Goeminne
"; } include ('./footer.php'); ?> What i need is to declare the arrays $names and $prices And select the prodid as key and the title as val how can I do this? I tried "select prodid as key, title as val but that doesnt work. thx for any help -- PHP General Mailing List (http://www.php.net/

[PHP] Re: Guestbook

2002-12-01 Thread Thomas Seifert
Hi, you give less information. How do you compute the entry number and how do you save the entries and so on. Normally you will have to live with the gaps but sure, you can touch every entry and change its number ;-). Thomas On Sun, 1 Dec 2002 10:33:45 - [EMAIL PROTECTED] (Vicky) wrote

[PHP] PHP Trouble-Ticket-Systems?

2002-12-01 Thread Thomas Seifert
arent - nice admininterface to answer support-requests and add comments (not sent to visitors) - open/close/stalled/bogus ... and so on tags for the system - ... So the question is, does anyone know any good troubleticket/helpdesk-systems written in PHP? Thanks, Thomas -- PHP General Mailing

[PHP] Re: PHP Trouble-Ticket-Systems?

2002-12-01 Thread Thomas Seifert
Sounds interesting. I used RT at work but it was a nightmare to install and since my machine is a pure PHP-Apache I don't want to install mod_perl-support as well. Let me know if you need help on some parts. Thomas On Sun, 1 Dec 2002 14:33:02 -0500 [EMAIL PROTECTED] (Jonathan Chum) wrote:

[PHP] Re: print to file

2002-12-02 Thread Thomas Seifert
$fp=fopen("filename","a"); fputs($fp,"text to the file"); fclose($fp); Regards, Thomas On Mon, 2 Dec 2002 15:52:23 -0800 (PST) [EMAIL PROTECTED] (Bryan Koschmann - Gkt) wrote: > Okay, this is probably stupid, but how do you print to a file? > > Thank

Re: [PHP] MySQL Server

2002-12-03 Thread Thomas Seifert
.e. search for the "grant"-statement. Thomas On Tue, 3 Dec 2002 16:56:40 -0700 [EMAIL PROTECTED] (Chase) wrote: > Thanks for the info... As it turns out, I am just a blithering idiot... I > didn't know that I had to create a separate user... As I said, that shows > m

[PHP] Checking for Overlapping Dates

2002-12-05 Thread Thomas . Churm
Hi, Background: I've created a vacation-request application for our company's intranet. When an employee requests a vacation, he has to list the name of another employee who will 'fill in' for him while he is gone. Before a vacation request can be saved in MySQL, I need to

[PHP] socket timeout

2002-12-05 Thread Gareth Thomas
Hi, I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it doesn't seem to work at all. If I switch of the handshaking write on the server side the read just sits there and doesn't time out at all. I have tried socket_set_timeout(

[PHP] Re: socket timeout

2002-12-05 Thread Gareth Thomas
built my own timeout loop into the code and voila!! Gareth "Gareth Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am attempting to timeout a socket_read() that is part of a handshaking > process using socket_

[PHP] Re: Just Curious

2002-12-08 Thread Thomas Seifert
Mail/News-Client Sylpheed On Sat, 7 Dec 2002 23:31:57 -0500 [EMAIL PROTECTED] (Conbud) wrote: > I was just curious, but what program or website do you all use to view and > reply to the newsgroups with ? > > Lee > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically: http://www.php.net/manual/en/configuration.directives.php#ini.register-globa ls (php_flag register_globals = ON;) i think

RE: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Craig Thomas
Using $_REQUEST[""] works because the vars are in the http request, but $_POST[""] contains nothing as the other poster noted: mehtod="post" >>-Original Message- >>From: David Scott [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 10, 2002 1:20 PM >>To: [EMAIL PROTECTED] >>Subject: [P

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
t;>-Original Message- >>From: Jason Wong [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 10, 2002 2:04 PM >>To: [EMAIL PROTECTED] >>Subject: Re: [PHP] Pls Help: Moving script from Win to Linux >> >> >>On Wednesday 11 December 2002 02:38, Craig Thomas

RE: [PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread Craig Thomas
>>previous page. Try putting the log in information and anything >>else needed >>in hidden fields in your form. YIKES!...hidden form fields are viewable in the html source generated. session_register() anyone? I thought you were trying to re-use the db connection? if so, use mysql_pconnect() i

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
>>The problem is I have to reset the SQL result array on each for >>loop. How do >>you do that? $myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant = mysql_query($sql); -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
= mysql_fetch_array($result)) { >>//Some Code >>echo $row['filed']; >>} >> //Reset result array >> $result = mysql_query($sql); >>} >> >>-- >>_____ >>Mark McCulligh, App

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
>> $mysql_result = mysql_query($query, $mysql_link); I am not sure if this is your only problem or not, but mysql_result(); is a function in php. Using a function name as a variable seems like it will just lead to confusion to me. I'd try to avoid it. >>--> line 36 while($row = mysql

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
--> line 36 while($row = mysql_fetch_row($mysql_result)) >> >>Anyway, where do you define $row? >> >>HTH >> >>-Craig DOH! it's been a long one... -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function/class for updating multiple-tables automatically?

2002-12-16 Thread Thomas Seifert
s and their corresponding values. It should compute then the required tables to update based on the involved fields and update them with the values given. I know I could do it on my own with some work but I'm hoping someone has already developed something like that. Thanks, Thomas -- P

[PHP] Re: function/class for updating multiple-tables automatically?

2002-12-16 Thread Thomas Seifert
oh, some addendum, I would need it for MySQL if its dependend. Thomas On Mon, 16 Dec 2002 21:46:34 +0100 [EMAIL PROTECTED] (Thomas Seifert) wrote: > Hi folks, > > I'm looking for a function or class which is able to automatically update > multiple tables. > > The h

[PHP] Inserting tab delimited textfiles into mysql

2002-12-19 Thread Thomas Goeminne
rst off I dump all the records which were already in the dbase. And then it needs to get filled up with the new items.txt I would appreciate your help greets -- Thomas Goeminne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Writing byte 0A to a file (LF / CR related)

2002-12-25 Thread Thomas Seifert
from the manual: Note: On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter. Thomas On Wed, 25 Dec 2002 11:43:13 +0100 [EMAIL PROTECTED] (Bbun) wrote: > Hey, > > I am trying t

[PHP] imap_set_quota function

2002-12-29 Thread Roger Thomas
an excerpt from php man pages says that: "This function requires the imap_stream to have been opened as the mail administrator account. It will not work if opened as any other user. ... ... $mbox = imap_open ("{your.imap.host:143}", "mailadmin", "password"); " my question is, where do i set this

[PHP] Re: Repeats of values

2002-12-31 Thread Thomas Seifert
sult)){ print "\t\n"; print "".$line['level']."\n"; print "".$line['pm']."\n"; print "".$line['date']."\n"; print "\t\n"; } Regards, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHPand MySQL

2003-01-01 Thread Thomas Seifert
there is no need to close and open the connection for every query. just run the mysql_query again and again and again on the open connection. Still Stephen's quote is true, you can't run more than one query by one call to mysql_query. Thomas On Tue, 31 Dec 2002 16:30:38 -0600 [EMAIL

[PHP] signal handler to ignore kill of parent

2003-01-02 Thread Thomas Weber
Hi, i need some way for child-processes to ignore the kill of their parent. Any idea? Thanks, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 2 servers for mail implementation

2003-01-02 Thread Roger Thomas
dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. what i wanted to know is, how best can i distribute the backend applications between those 2 serve

Re: [PHP] signal handler to ignore kill of parent

2003-01-03 Thread Thomas Weber
I am using the pcntl_ fork() from PHP. The problem with exec() is that i need the variables and socket-descriptors from the parent. Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Michael J. Pawlowsky" <[EMAIL PROTECTED]&

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Thomas Seifert
it may be, that destiny is wrong. the error-message tells that you don't have access to where you are trying to upload the file to. Thomas On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote: > I uploaded that script with a common ftp program on my serve

[PHP] apache and php

2003-01-08 Thread Gareth Thomas
I am trying to run a PHP page from my browser (Mozilla) and each time I load the page it is attempting to force a dowload of the page instead, based on the mime-type. I had been developing a command line PHP application which works fine and then had just started on a web interface and realised that

Re: [PHP] apache and php

2003-01-09 Thread Gareth Thomas
Open Platform Consulting > e-mail: [EMAIL PROTECTED] > > > -Original Message- > > From: Gareth Thomas [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, 9 January 2003 12:03 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] apache and php > > > > > &g

[PHP] Re: Using $vars from include()d functions in the main programm andother functions

2003-01-11 Thread Thomas Seifert
they are not new namespaces Thomas On Sat, 11 Jan 2003 12:49:15 +0100 [EMAIL PROTECTED] (Ben9000) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello List, > > a simple problem turned out to be not so simple as I thought. > > Here the situation

[PHP] Re: Change Date

2003-01-11 Thread Thomas Seifert
http://de.php.net/manual/en/function.mktime.php The most important part is "mktime() is useful for doing date arithmetic and validation, as it will automatically calculate the correct value for out-of-range input." Thomas On Sun, 11 Jan 2004 16:12:01 +0330 [EMAIL PROTECT

[PHP] Re: Change Date

2003-01-11 Thread Thomas Seifert
have the time in 3 hours $timestamp = $timestamp + (3600*3); // you can convert this time back to a readable format using strftime Regards, Thomas On Sun, 11 Jan 2004 16:22:08 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote: > > So Thanks, but can you get me some exampl

[PHP] Re: Make thumbnail online

2003-01-11 Thread Thomas Seifert
how about just reading the docs which are available online? http://de.php.net/manual/en/ref.image.php and especially http://de.php.net/manual/en/function.imagecopyresized.php will help. Thomas On Sun, 11 Jan 2004 16:32:36 +0330 [EMAIL PROTECTED] (Sadeq Naqashzade) wrote: > Hi every one,

[PHP] imap quota

2003-01-13 Thread Roger Thomas
i am referring to imap_get_quota manpages at http://www.php.net/manual/en/function.imap-get-quota.php it gave a short script (see bottom). question: in a qmail-ldap/courier-imap environment, who is that mailadmin ? -- script start -- $mbox = imap_open("{your.imap.host}","mailadmin","password",O

[PHP] --with-mcal=/usr/local/mcal compilation issue

2003-01-16 Thread Roger Thomas
php-4.3 libmcal-0.5 (i intend to use Horde's Kronolith and the README said it cannot work with libmcal-0.6) configure gave this error: checking for MCAL support... yes configure: error: Unable to locate your libmcal header files - cal_misc.h should be in the directory you specify or in the include

Re: [PHP] mail () error

2003-01-17 Thread Thomas Seifert
The mail-server has to respond that it received the mail. Maybe you've set the firewall only one-way open? Thomas On Fri, 17 Jan 2003 15:29:32 -0500 [EMAIL PROTECTED] (Stephen Goehler) wrote: > Thanks, the server was relaying, but it turned out to be the firewall that > was re

Re: [PHP] SQL+php

2003-01-19 Thread Thomas Seifert
it doesn't change it in the database, just in the output. Thomas On Sun, 19 Jan 2003 03:17:04 +0200 (EET) [EMAIL PROTECTED] (Paul Marinas) wrote: > something like that only i don't whant to alter the database, the fields > in the database must remains unchanged, only, on

[PHP] Re: 4.3.0 cpu load raise

2003-01-20 Thread Thomas Seifert
Hmm, I didn't see this effect but I only tried on a development machine. I benchmarked a app there with both php-versions and it was nearly 20% faster with php-4.3.0. But that may depend on the application. Thomas On Mon, 20 Jan 2003 18:30:05 +0100 [EMAIL PROTECTED] (Philipp) wrote: &g

Re: [PHP] HELP please quickly

2003-01-22 Thread Thomas Seifert
"file" already returns an array so this would be best for that :). Thomas On Wed, 22 Jan 2003 14:00:09 + [EMAIL PROTECTED] (Didier McGillis) wrote: > > Cool I'll report back what I have found. Question. I have tried fopen and > file and was wondering for opening

Re: Fw: [PHP] $header = "Location:........" being ignored!

2003-01-22 Thread Thomas Seifert
> > Is there anything obvious that I am doing wrong? > > Thanks, > Shams > > p.s. I don't want to use else{} because I have lots of if() checks! > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Variable Declare

2003-01-22 Thread Thomas Seifert
try: if (isset($_POST['frmAction']) && $_POST['frmAction'] == "formmail") instead of your line. Thomas On Wed, 22 Jan 2003 09:47:46 -0500 [EMAIL PROTECTED] (Stephen Goehler) wrote: > Hey guys, > > Thanks in advance for your help. > > I&#

[PHP] Re: PHP Variable Declare

2003-01-22 Thread Thomas Seifert
it won't work the way you are doing this. Try something like that line (changed from yours): fputs($fd, "From: ".$_POST['name']." <".$_POST['email'].">\n"); Don't ask arrays directly in a string. Thomas On Wed, 22 Jan 200

[PHP] Re: MySQL 4.0 + PHP 4

2003-01-22 Thread Thomas Seifert
I'm running it in production since MySQL-4.0.2 and without any problems. Thomas On Wed, 22 Jan 2003 11:21:40 -0800 [EMAIL PROTECTED] (Joe Stump) wrote: > Anyone out there have anything to share as to using PHP4+MySQL4. I've been > hearing good things on the MySQL list ab

[PHP] get current username from the windows system

2003-01-23 Thread Thomas Franz
Hi. is their a possibilty to get the windows username of the current logged on user with php. I want this to make a logon dialog more comfortable. Thanks for an answer and a little example if it's possible. Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] linux cpu usage

2003-01-24 Thread Gareth Thomas
Hi all, I have a command line PHP script that is in a continous loop to monitor a particular database event. I am running RedHat 8 and the only problem I am finding is that it hogs the CPU. I developed the script originally on Windows and it worked better there. Is there a way to limit CPU resourc

[PHP] Re: MySQL/PHP Associative Array Insert

2003-02-01 Thread Thomas Seifert
of > how to do an insert to the database using these arrays? My array is > this...$item['itemID'] try something like that: mysql_query("INSERT INTO items SET itemcolumn='".$item['itemID']."'"); or just mysql_query("INSERT INTO items

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Thomas Seifert
onvertdb.php on line 17 > > The code: > [...] > Any idea? Yeah, read out mysql_error() after sending the query and before doing fetch... to see what mysql thinks is wrong. Regards, -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP General Mailing Li

  1   2   3   4   5   6   7   8   9   >