Re: [PHP] compiling with mysql

2002-07-11 Thread Tyler Longren
I've never compiled php with the path to mysql. I've done this on lots of different servers, and it always works. I don't know if it's the proper way of doing things, but it does work. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 12 Jul 2002 10:

[PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Craig
I want to acheive something like this http://www.claviga.com/index.php?pageid=18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] compiling with mysql

2002-07-11 Thread Rasmus Lerdorf
The difference between adding a path and not is that without a path the bundled mysql client library will be used, whereas if you add a path then your system's mysql client libs will be used. It is usually a good idea to use the system libaries if you have them because they are more likely to mat

Re: [PHP] compiling with mysql

2002-07-11 Thread Michael Hall
On Thu, 11 Jul 2002, Tyler Longren wrote: > I've never compiled php with the path to mysql. I've done this on lots > of different servers, and it always works. I don't know if it's the > proper way of doing things, but it does work. > > Yeah, me too, but the INSTALL file (or was it the messa

Re: [PHP] compiling and php.ini

2002-07-11 Thread Tyler Longren
If you do: --with-mysql, it can't be disabled in php.ini, however you can change options in php.ini that deal with connecting to a mysql server. If you had copied the php.ini-dist file, your magic_quotes would probably have been set to "on". I'm not sure if the php.ini-recommended gets updated a

[PHP] fsock and fget driving me mad!

2002-07-11 Thread Zac Hillier
Hi Can anyone in the group help, I'm trying to read and write from a serial port using php. So far using fsockopen I've managed to open and send data through a serial port but I'm having real problems reading a response. I've tried fgets really to no success can anyone spare me some ideas or tho

[PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Martin Clifford
The easiest way to accomplish that is by using switches. Here is an example: switch($pageid) { default: include("default_page.inc"); break; case "18": include("page_18.inc"); break; } With that in your index.php page, it will look for the variable $pageid, and de

RE: [PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Jay Blanchard
[snip] Is there a way to create a customised version of the index directory structure using php? Eg listing all the pages in the specific directory when an index page isnt created? I want to acheive something like this http://www.claviga.com/index.php?pageid=18 [/snip] Yes you can do this. Sta

[PHP] FDF on windows

2002-07-11 Thread Tobias Talltorp
I am interrested in experimenting a bit with FDF, but I use windows, and it seems that it is only available on Linux... According to Adobe, it should work on windows aswell, but perhaps not with PHP... Anyone got it working with windows? This is what I am talking about: http://www.php.net/manual/

Re: [PHP] compiling with mysql

2002-07-11 Thread Michael Hall
OK, thanks for that. I'm about to start a full-time job developing a portal/intranet and what have you for a tertiary education institution, and after 'mucking about' with PHP for a couple of years and developing a few web apps, I realise that there is a lot of detail that I need to get clear bef

Re: [PHP] Re: Development Tools

2002-07-11 Thread Alexandru COSTIN
Hello, > - Dreamweaver MX has limited PHP support but it is far superior on the > front end than the other two. Dreamweaver MX can be easily upgraded to a far supperior PHP suppor t with PHAkt, our free server model for DWMX. I'll paste the features below, there's not debugger, and I thi

[PHP] Re: Development Tools

2002-07-11 Thread Alexandru COSTIN
Hello, If you find the Dreamweaver MX PHP support too immature, you can always switch to PHAkt, a GPL extension to Macromedia Ultradev that improv es the PHP support a lot. The current version 2.0 (PHAkt 1.0 did the same thing for Ultradev 4 but it seems that many PHP dev

Re: [PHP] Table Making

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 03:14:07PM +0200, [EMAIL PROTECTED] wrote: > > Another way of doing it is to use mysql_data_seek() to jump back and forth > in the result set. Now that Jason clarified what he's trying to do, Joakim is on target. Since this data set already exists, I'd do this rather th

Re: [PHP] Table Making

2002-07-11 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 11:14:51AM -0400, Analysis & Solutions wrote: > echo ' '; > if ( mysql_fetch_seek($Result, $Index) ) { > $row = mysql_fetch_row($Result); > echo $row[0]; > } else { > echo ' '; > } OOPS! I forgot to close the table cell.

Re: [PHP] Re: header()

2002-07-11 Thread Chris Hewitt
Richard Lynch wrote: > >You can't upgrade somebody's stupid IE browser to Mozilla just by sending >them a new User-Agent header, no matter how attractive a solution it might >seem :-) > Now this is a Really Great Idea. Upgrade everyones' browser on the fly by code. We would only then have to dec

Re: [PHP] MAIL FROM NO ONE

2002-07-11 Thread Chris Hewitt
Vins, Yes, talk to port 25 of any smtp server using php. You would need to implement the full RFCs on smtp and its re-inventing the wheel. There are already classes to talk to whichever smtp server you want. Whichever smtp server you sent the mail to would log it, and the server it came from.

[PHP] How to set focus in a form field

2002-07-11 Thread Andre Dubuc
I have an annoying 'glitch' in the forms on my site: When a page loads, if it has a form on it, I would like the cursor to move to the first field, be 'set' - that is, I should see a cursor or blinking cursor in the first field. As it is now, on some pages, I either have to 'tab' to the first

[PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Hello all! Is there a flag that would tell me if the page requested is using SSL, by https, or regular http? I'm not sure I could get that from PHP, or from Apache/PHP. Thanks for your help. Jean-Louis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] How to set focus in a form field

2002-07-11 Thread Richard Black
You can do it with JavaScript. Something like: document.formname.fieldname.focus(); At the bottom of the page, replacing formname and fieldname with the appropriate values, obviously... HTH Richy == Richard Black Systems Programmer, DataVisibility Ltd

Re: [PHP] How to set focus in a form field

2002-07-11 Thread David Otton
On Thu, 11 Jul 2002 11:25:50 -0400, you wrote: >Is there anyway to automate this, so that when a page loads it automatically >goes to the first field, and 'highlights' the entry area? (Btw, I tried >'tabindex=1' but it still does not do what I'd like it to. Javascript, not PHP. Look up the foc

Re: [PHP] How to know if we're using http or https

2002-07-11 Thread R'twick Niceorgaw
if ( $_SERVER["HTTPS"]=="on" ) user using HTTPS else user usin http - Original Message - From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 8:32 AM Subject: [PHP] How to know if we're using http or https > Hello all! > > Is

[PHP] can you do exec under Windows OS?

2002-07-11 Thread Wo Chang
Dear All, Sorry to ask this simple question! I know I can do exec under unix OS but when I try it on Windows platform (running Apache), PHP gives me "Warning: Unable to fork". Off hand I don't remember do I need to modify the php.ini or semething else, can someone give me a hand? Thanks! --Wo

Re: [PHP] How to know if we're using http or https

2002-07-11 Thread Chris Boget
You can use either of the following checks to see if the user is using HTTPS... $HTTPS == "on" $SERVER_PORT == "443" Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to know if we're using http or https

2002-07-11 Thread Brian McGarvie
yip on the browser a small padlock should appear > -Original Message- > From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to know if we're using http or https > > > Hello all! > > Is there a flag that would

[PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Robert Cummings
When the 404 is caught and a PHP script is executed there doesn't appear to be any information in the environment variables indicating what URL triggered the 404. Could someone tell me how to obtain that information? Cheers, Rob. -- .-. | Robert Cummings | :-`---

Re: [PHP] How to set focus in a form field

2002-07-11 Thread Andre Dubuc
> This is JAVASCRIPT problem because it is on the client end. Thanks to everyone who responded. I sort of thought it would be a 'Client-side' problem. Oh well, since I'm not prepared to use any javascript, I guess I'll have to live with it. Sigh . . . Thanks again, Andre > > -Original Me

RE: [PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Brian McGarvie
you can get the webserver to redirect to a custom errorhandler that could be a php script to do whatever you want. > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 4:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Getting the URL that triggered

RE: [PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Henning Sittler
The $_SERVER environment variables should be there, I'm using them. Henning Sittler www.inscriber.com -Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 12:00 PM To: Robert Cummings; [EMAIL PROTECTED] Subject: RE: [PHP] Getting the URL tha

[PHP] Re: can you do exec under Windows OS?

2002-07-11 Thread Wo Chang
I might found the answer myself but correct me if I'm wrong: I was trying to pass some args (ex. echo testing) that I tried to exec but fail. But, if I put the "echo testing" inside a batch file and have the exec to call that batch file, then it works. There is also a function call escapeshel

RE: [PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Thanks to all for your prompt replies! It works just fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql question

2002-07-11 Thread Alexander Ross
I realize this isn't a php question, but I figured that someone here knows of a good mysql newsgroup and in the mean time someone here probaby knows the answer to my question. Can I set up a query like this: select * from table where start_shot <= $current_shot and end_shot >= $current_shot not

[PHP] Anybody using PEAR Auth_HTTP?

2002-07-11 Thread Tim
Hello - I am having a lot of trouble with Auth_HTTP. I am using PostgreSQL and Auth works fine (after reading the source and figuring out that passwords need to be MD5 encrypted). I can't, however, make Auth_HTTP work at all. This is what I have. I have tried plaintext, md5, and crypt password

[PHP] Re: session error ... I think

2002-07-11 Thread Alexander Ross
I'm slowly beginning to undrestand this, but please bear with a php novice. When/how were the headers sent? In other words, how do I know that they have already been sent? Thanks for humoring me alex "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >what does th

[PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Jason Soza
Well, my attempts at getting discipline for Erik Hegreberg will have to go unfinished for now. I guess a list admin would have to retrieve the original headers from Erik's original posts -before- they hit the mailing list software and got new headers and distributed. Any list admins out there

Re: [PHP] Character Array

2002-07-11 Thread Philip Olson
Yeah, it behaves like that. But keep in mind that you should use {} instead of [] for strings as [] with strings like this is deprecated. $str = 'abc'; print $str{0}; // a print $str{2}; // c The manual also talks about this use too: http://www.php.net/manual/en/language.types.string.

Re: [PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Danny Shepherd
You need to compile with GD2 if you want to use any of the 2.* functions in PHP - phpinfo will say 'GD 2.0 or higher' HTH Danny. - Original Message - From: "Kevin Waterson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 1:49 PM Subject: [PHP] PHP 4.3.0-dev and

Re: [PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Rasmus Lerdorf
No such logs are kept on our end. On Thu, 11 Jul 2002, Jason Soza wrote: > Well, my attempts at getting discipline for Erik Hegreberg will have to > go unfinished for now. I guess a list admin would have to retrieve the > original headers from Erik's original posts -before- they hit the > mailin

Re: [PHP] mysql question

2002-07-11 Thread Miles Thompson
Yes, though I'd probably add parentheses to make it clearer. select * from table where ((start_shot <= $current_shot) and (end_shot >= $current_shot)) Though that's probably not necessary. Make certain you have your less than's and greater thans set the right way, I've often sat slack-mouthed

Re: [PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Glenn Sieb
Personally I think they're copping out. How many of us forwarded EVERY piece of his crap to them? There's an old (ok not so old) saying: Eat rice. A couple billion Chinese people can't be wrong. Why these admins can't catch a clue and, by the sheer volume of the emails, do something about thi

Re: [PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Daniel Negron/KBE
Are emails still coming through from this guy. I put a block on my server for his address, so I can't tell. Thank You <><><><><><><><><><><><><><><><> Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com <><><><><><><><><><>

Re: [PHP] Table Making

2002-07-11 Thread Jason Soza
Just an idea I came up with after turning off my computer last night (don't ya hate that!) - I don't know how 'dirty' or 'crude' this would be, but in my head it seems like it would work. Basically, what if the while() printed multiple tables? In each table it made 5 rows, each row with one ce

Re: [PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Scott Fletcher
Well, you better pray that he won't return!! "I'll Be Back!!" "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No such logs are kept on our end. > > On Thu, 11 Jul 2002, Jason Soza wrote: > > > Well, my attempts at getting discipline for Erik

Re: [PHP] (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Rasmus Lerdorf
He's been blocked at the server level. He won't be able to post to any php mailing lists. On Thu, 11 Jul 2002, Scott Fletcher wrote: > Well, you better pray that he won't return!! > > > > "I'll Be Back!!" > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] Table Making

2002-07-11 Thread Chris Boget
> Like I said, I shudder at the thought of how much this would load the server > (especially on large rows (lots of fields) or large tables (lots of rows = > lots of queries)), but if the layout is imperative, then maybe this is an > option... No load whatsoever. You just need to think about how

RE: [PHP] Breaking Dynamic Content into Pages...

2002-07-11 Thread Lazor, Ed
Your approach actually seems pretty good to me. I've used two other approaches in the past though and I'll describe them to give you some other ideas. Option 1: Multi-Page Form You submit a document in stages. From the user's perspective, they click a button to "add document". This lets them

Re: [PHP] Getting the URL that triggered a 404.

2002-07-11 Thread Robert Cummings
Henning Sittler wrote: > > The $_SERVER environment variables should be there, I'm using them. My mistake, I used an absolute url with the www.foo.com and so it did an external redirect. That'll teach me to gloss over configuration details :) Thank you everyone for the help. Cheers, Rob. -- .

Re: [PHP] Table Making

2002-07-11 Thread Chris Boget
> be, but in my head it seems like it would work. Basically, what if the > while() printed multiple tables? In each table it made 5 rows, each row > with one cell in it, so it would then be vertical. I'm just not sure > how to incorporate into the loop (maybe a for() loop is better for > this?

[PHP] Re: (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread vins
Read the message from the admins from online.no carefully Don't worry i'll quote "and if he has the original headers so that we can track down the users." What a crock of shit We all sent his full name and his email address plus the copies of 78 to be exact spams that he sent to the php maili

Re: [PHP] Table Making

2002-07-11 Thread Jason Soza
This is exactly what I was looking for. Now I wish I could just leave work now to test it out! Thanks everyone for your help on this, very appreciated! Jason Soza - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> Date: Thursday, July 11, 2002 9:05 am Subject: Re: [PHP] Table

[PHP] Searching a Paradox Table with my PHP Script...

2002-07-11 Thread Kondwani Spike Mkandawire
Hallo folks: I have a bit of an issue with Paradox Table Searching... I have a fairly large table (4MB+), here is the problem: When I run a search for an element in the Table on my localhost which is running Apache and php 4.1, I have no issues with speed... However when I run it on the Server

Re: [PHP] Re: if syntax

2002-07-11 Thread Chris Earle
> when it would be just as easy, and more functional, to write this (even > saves a few characters, too!): > >if (x): > while (y): > ... > endwhile; > ... >endif; You're adding characters... "{" + "}" opposed to ":" + "endif;" Don't go for the fuzzy Math from

Re: [PHP] MAIL FROM NO ONE

2002-07-11 Thread Chris Knipe
On Thu, Jul 11, 2002 at 02:29:11PM +0200, vins wrote: > Hi... I've just checked out a script from hotscripts.com that send email > from and smtp server... The mail() does exactly the same Nothing fancy about it. > I've managed to say the email has come from a server that doesn't exist > bu

[PHP] Re: (OT) No Punishment for Erik Hegreberg, Yet...

2002-07-11 Thread Kondwani Spike Mkandawire
I don't know what part of South Africa you're from Bee... I suppose you are an Afrikanner! I know in Sandton where my pops is, things run efficiently... Except for the fact that Internet Cafes run slow connections I see nothing wrong with the S.A's setting, for that fact it means people are doing

Re: [PHP] Editing files by line

2002-07-11 Thread Chris Earle
Cool thanks, that probably will make my code execute a decent bit faster (as the file gets larger). But the array_search function never works for me (don't know why, I know exactly what I'm searching for and that it is there), so I made my own function.. //Find and return first occurance of a st

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Chris Hewitt
Alexander Ross wrote: >I'm slowly beginning to undrestand this, but please bear with a php novice. >When/how were the headers sent? In other words, how do I know that they >have already been sent? > Because something other than a header has gone out. As something other has gone out, it is not p

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Alexander Ross
ok ... but the line of code that was the culprit was simply: print "var id = ".$id.""; //for debugging how does that line constitute sending more header info? Alex "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Alexander Ross wrote: > > >I'm

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Martin Clifford
When you request a page, for instance, php.net, your web browser sends HTTP headers to the server that holds php.net on it. When the server receives these HTTP headers, it knows which page is needed, and sets up it's own headers to send back to the browser, such as location, file types, etc.

[PHP] using pdf template

2002-07-11 Thread Tobias Talltorp
Is it possible to produce a PDF, use it as a template and populate predefined sections of it from a database? The PDFs I want to create are a little too complex for me to produce from scratch. // Tobias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] using pdf template

2002-07-11 Thread Rasmus Lerdorf
Only using the commercial PDI library from pdflib.com On Thu, 11 Jul 2002, Tobias Talltorp wrote: > Is it possible to produce a PDF, use it as a template and populate > predefined sections of it from a database? > The PDFs I want to create are a little too complex for me to produce from > scratc

[PHP] Loading dynamic pages based on URL

2002-07-11 Thread Monty
Articles for an online magazine will use one template and load content dynamically from a MySQL database. Assets and images for each article will be stored in their own folder: e.g., www.mysite.com/topic/article Even though a physical HTML page will not exist at www.mysite.com/topic/article, is t

[PHP] Warning Message using pg_***

2002-07-11 Thread David Busby
List, I'm using PG functions like below and I'm wondering how to get rid of that dang Warning message? PHP.ini setting? or can I turn on/off error checking? $rs is the result from pg_exec() (inside the other function) [PHP Code] $rs = get_database_stuff("list"); $irow = 0; while ($ec

RE: [PHP] using pdf template

2002-07-11 Thread Andrew Chase
There are a couple of different PHP classes that people have written to make PDF creation easier... maybe they would streamline the process enough that you can make them from scratch after all. http://www.pc4p.net/ http://ros.co.nz/pdf/ I didn't know about those the last time I had to deal with

[PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Shane
Greetings, I am attempting to send an HTML based email using the Mail() function in PHP. I am having great luck until I include an OBJECT or EMBED tag in the HTML string. I am running PHP 4.2.1 on a WIN NT client. If I uncomment the OBJECT or EMBED lines below in the $message variable, my scri

[PHP] Newbie continued..wrong datatype

2002-07-11 Thread Rw
This is a continue from this morning (thanks so much for the responses).. yielding a data type mismatch: $CheckArr = array("Periodic", "Sale", "Return"); IF (SUBSTR($approvalcode,0,1) == "Y" && in_array($CheckArr, $type)) { PRINT "$approvalcode"; PRINT " "; PRINT "$type"; } Th

Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Martin Clifford
As far as I'm aware, the first argument to the in_array() function is the needle (what you're searching for) and the second is the array to be searched through (the haystack). So if $type represents what you're searching for, then it would be written as: in_array($type, $CheckArr); If you sup

[PHP] Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Kondwani Spike Mkandawire
Hallo folks: (Sorry for a repost on the same topic just that my first one never got through)... I have a bit of an issue with Paradox Table Searching... I have a fairly large table (4MB+), here is the problem: When I run a search for an element in the Table on my localhost which is running Apac

RE: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Shane
I'll give it a shot, but there are # symbols all over the place in the other tags (like COLOR links...etc... But thanks though? Anyone else??? Thanks folks! -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:31 AM To: Shane Subject: Re: [P

Re: [PHP] Searching a Paradox Table with my PHP Script...

2002-07-11 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: >Hallo folks: > >I have a bit of an issue with Paradox Table Searching... >I have a fairly large table (4MB+), here is the problem: > I've not been monitoring this thread so what I say may have been covered, so please bear with me. > >When I run a search for an

[PHP] Re: Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Kondwani Spike Mkandawire
Would it be that it takes time to connect to a table if it is in use? "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hallo folks: (Sorry for a repost on the same topic just > that my first one never got through)... > > I have a bit

Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Rw
That did it! Thanks! - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 1:32 PM Subject: Re: [PHP] Newbie continued..wrong datatype As far as I'm aware, the first argument to the in_array() functio

RE: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Shane
Nope, no luck. Still errors out. Is there a limit to how man characters a MAIL() call can have? -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:31 AM To: Shane Subject: Re: [PHP] MAIL() Trouble. Need your eyes. try escaping the # in ther

Re: [PHP] mysql question

2002-07-11 Thread 1LT John W. Holmes
How about SELECT * FROM table WHERE $current_shot BETWEEN start_shot AND end_shot Also, I hope you are validating $current_shot if register globals is on, to make sure it's really just an integer and not some extra SQL that'll allow someone to view your entire table/database... ---John Holmes..

RE: [PHP] MAIL() Trouble. Need your eyes.

2002-07-11 Thread Martin Clifford
I would think that there would only be a limit on the SMTP server that the mail function sends the mail through. I'm no expert on the subject though, just makes sense. :o) Martin Clifford http://www.completesource.net (Now Open!) >>> "Shane" <[EMAIL PROTECTED]> 07/11/02 02:42PM >>> Nope, no l

Re: [PHP] Searching a Paradox Table with my PHP Script...

2002-07-11 Thread Kondwani Spike Mkandawire
> Is the table layout, indices, amount of data and ODBC connection the > same in both cases? How long is ages? If minutes then is it a DNS > problem in connecting to the server computer? You could try this by > getting an item of data from a new table containing only one row. > Do I understand cor

Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Chris Hewitt
The manual says the second parameter needs to be an array. I assume it is not, but you have not shown us how $type is assigned so we cannot tell. HTH Chris Rw wrote: >This is a continue from this morning (thanks so much for the responses).. >yielding a data type mismatch: > > $CheckArr = arra

Re: [PHP] Re: Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: >Would it be that it takes time to connect to a table if >it is in use? > I don't know Paradox. Does it use row or table level locking. If table locking then if anyone is doing an update then the whole table is locked until the update is complete. If row locking

[PHP] Help a Header Headache!!

2002-07-11 Thread Shane
I am trying to send an EMBED and OBJECT tag inside an HTML email using the mail() call. My HEADER Content type is... $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "From: ".$myname."<".$myemail.">\r\n"; $headers.= "To: ".$contactname.

[PHP] uploads work sometimes

2002-07-11 Thread Tyler Longren
Hi, I have a form: And the code that processes the form: if ($_FILES['pdfFile']['name'] == "") { print "You must select a file to upload"; } else { // code to add data to db } This works on my server at home (when I select a file to upload, it sees the filename in $_FILES['pdfF

Re: [PHP] Help a Header Headache!!

2002-07-11 Thread Chris Knipe
Have you perhaps tried rather sending the mail using MIMETools ? There's a PHP class writen that's actually pretty good for sending MIME based email... I'm not sure what it's called now, but I'm sure someone else on the list will be able to elaborate on this. On Thu, Jul 11, 2002 at 12:26:45PM

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Chris Hewitt
Alexander Ross wrote: >ok ... but the line of code that was the culprit was simply: > >print "var id = ".$id.""; //for debugging > >how does that line constitute sending more header info? > It does not constitute sending more headers, but it does say that no more may be sent (as you have already

[PHP] Announcement: Smarty template engine 2.2.0 released

2002-07-11 Thread Monte Ohrt
Most notable changes are support for multiple plugin directories, grouping cache and compile files, removed overlib library from distribution, many optimizations, enhancements and bug fixes. Enjoy! Homepage: http://smarty.php.net/ Release Notes: http://smarty.php.net/misc/RELEASE_NOTES Change

Re: [PHP] Help a Header Headache!!

2002-07-11 Thread Chris Hewitt
Chris Knipe wrote: >Have you perhaps tried rather sending the mail using MIMETools ? > >There's a PHP class writen that's actually pretty good for sending MIME based >email... I'm not sure what it's called now, but I'm sure someone else on the >list will be able to elaborate on this. > I have no

[PHP] Re: Table Making

2002-07-11 Thread Michael Davey
How about working out the length of the column (by dividing the number of rows by the number of cols you want), dump your results into an array and using the col length as an offset to pick through the resulting table? // $data is an array of results $rows = count ($data) $row_len = round ($rows

Re: [PHP] Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Miles Thompson
Why are you building the array? Why not let SQL do the work? Select col1, col2, col3, ... coln from target_table where field_holding_target_value = '$target_value_i_want' If you have no records returned, then no match, otherwise you have one or more matches. In the second case you can proceed

RE: [PHP] Loading dynamic pages based on URL

2002-07-11 Thread Lazor, Ed
I use mod_rewrite from Apache to do what you're describing. Everything without a period in the name gets processed by /index.php. The index.php script knows which data to load by parsing the URL. -Original Message- From: Monty [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 11:

[PHP] PHP and geographic maps

2002-07-11 Thread Lowell Allen
A client wants a database-driven site that records information about real estate properties and includes geographic maps of property locations (throughout the US). The client has seen a presentation of a JavaScript-powered, Windows-only product that doesn't seem to fit well with my preference for

Re: [PHP] using pdf template

2002-07-11 Thread Christoph Grottolo
Maybe you could use PDF with FDF to accomplish this task (see http://www.php.net/manual/en/ref.fdf.php). Christoph Rasmus Lerdorf wrote: > Only using the commercial PDI library from pdflib.com > > On Thu, 11 Jul 2002, Tobias Talltorp wrote: > >> Is it possible to produce a PDF, use it as a temp

Re: [PHP] Help a Header Headache!!

2002-07-11 Thread Chris Knipe
On Thu, Jul 11, 2002 at 08:59:28PM +0100, Chris Hewitt wrote: > I have not responded to this before as I have not used EMBED or OBJECT > tagss but I have used Manuel Lemos's smtpclass-2002-05-13.tar.gz and > mimemessage-2002-06-08.tar.gz which are intended for html email. They > are on phpclass

[PHP] Re: compiling with mysql

2002-07-11 Thread terry chay
In <[EMAIL PROTECTED]> Michael Hall wrote: > Another PHP compilation question ... > > I've just compiled PHP 4.2.1 --with-mysql. I added no path to mysql, > --with-mysql=/somewhere/or/other/ > > 1. Is this always the case? I though the documentation stated that all path variable

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Are you really working with actual map coordinates that include longitude and latitude? This seems to be a reverse approach to what I usually see. From what I've seen, you typically display a map of the united states. Click a state to zoom in. Have the state map divided into sections, click

[PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Scott Fletcher
Are you sure these newsgroup work? I tried subscribing to it and got a response saying newsgroup server could not be found. I didn't have that problem with PHP Newsgroup or mozilla.org Newsgroup. --clip-- comp.os.linux.admin comp.os.linux.misc comp.os.linux.advocacy comp.os.linux.network co

[PHP] pgSQL Stored Procedures

2002-07-11 Thread David Busby
List, Has anyone built Functions (or Stored Procedures) in PostgreSQL that can return a dataset? I would like to contain my login in PostgreSQL (like I did on M$-SQL) and call it from my PHP script (like I did with ASP). Ex: $rs = pg_exec($db, "someprocname") while ($rec = pg_result_ob

RE: [PHP] Linux Newsgroup... ('continue');

2002-07-11 Thread Lazor, Ed
Which news service are you connecting to? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Linux Newsgroup... ('continue'); Are you sure these newsgroup work? I tried subscribing to it and got

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Lowell Allen
> From: "Lazor, Ed" <[EMAIL PROTECTED]> > > Are you really working with actual map coordinates that include longitude > and latitude? > That's what the client *WANTS*, yes. Currently, local sales agents visit each property and take digital photos. They'd like to give them hand-held GPS units s

Re: [PHP] Re: Table Making

2002-07-11 Thread Jason Soza
I really wish I was at home right now so I could test this out... I'll certainly give this a shot tonight. Taking someone else's earlier suggestion and tweaking it a bit, I was wondering if the following might work: $cells = 10; //set desired number of cells per column $numRows = mysql_num_row

[PHP] Compile errors with php 4.2.1 and gd

2002-07-11 Thread Mike
Hello, I have followed all the directions on how to compile php and gd and all the other stuff that needs to be complied for gd to work with php, but it will not compile... it keeps failing to compile with the following errors : gd.c: In function `zm_startup_gd': gd.c:303: `gdArc' undeclared (fir

Re: [PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
On Thu, 11 Jul 2002 17:19:07 +0100 "Danny Shepherd" <[EMAIL PROTECTED]> wrote: > You need to compile with GD2 if you want to use any of the 2.* functions in > PHP - phpinfo will say 'GD 2.0 or higher' I tried --with-gd2 but then I get no gd at all? the included gd version is 2.0.1 but does not s

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Peter J. Schoenster
On 11 Jul 2002 at 16:42, Lowell Allen wrote: > A client wants a database-driven site that records information about > real estate properties and includes geographic maps of property > locations (throughout the US). The client has seen a presentation of a > JavaScript-powered, Windows-only product

RE: [PHP] PHP and geographic maps

2002-07-11 Thread Lazor, Ed
Good question. Isn't GPS 3D? I'm guessing you're correct, but now I'm curious. Assuming it's a 2D-based situation, it still seems easier to use the approach I described in the last e-mail and then somehow tie the GPS coordinates into that system rather than base everything on GPS. You'd end

[PHP] Exchange LDAP Authentication

2002-07-11 Thread B i g D o g
Has anyone done LDAP auth with PHP on an Exchange 5 server? I need help finding the values to authenticate with... B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   >