RE: [PHP] Formating datevariables...

2002-07-22 Thread David Buerer
Select TIMESTAMP(date_column) AS mydate Then when you display it use the date function DATE('mdY',mydate) -Original Message- From: Ragnar [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Formating datevariables... I have a col

Re: [PHP] web page function

2002-07-24 Thread David Buerer
Try This if(strtoupper($REQUEST_URI)=='INDEX.PHP') { ...statements... } - Original Message - From: "Steve Minter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 7:50 PM Subject: [PHP] web page function I am tring to refer to a web page using a function. Wha

RE: [PHP] Speeding up PHP or MySQL

2002-07-25 Thread David Buerer
John, You made one comment which is caught my attention: > that's a no go :( Or is there a way of storing common query results? If the results to a commonly called query are the same for a time period, than why don't you right a routine that just stores the results into a new database that als

RE: [PHP] pulling records from mysql

2002-07-25 Thread David Buerer
Create a column like.person_id with the auto_incr flag set. Every record will be given a unique id starting at 1 and incrementing by 1 each time. Then you can query based on person_id field to get an individual record -Original Message- From: Tyler Durdin [mailto:[EMAIL PROTECTED]]

RE: [PHP] Paying Job...

2002-07-25 Thread David Buerer
And Tyler...rest assured you would never be working for me with an attitude like that. Nor would I ever recommend that you work for one of my clients. It's not about making as much as you can, it's about making what is fair, deserved, and reasonable. Someone else said that what we're providing

RE: [PHP] pdf to html

2002-07-25 Thread David Buerer
I can think of many reasons why displaying the pdf in the browser is a last resort and not a first resort. Especially in situations where the reader is not installed. Like Tyler, I would be quite interested to see if anyone has any ideas on how to convert from pdf to html. -Original Mes

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
thing. I know (X)HTML, CSS-1-2-P, JS, PHP, SQL, etc. The list just goes on. And the thing is, I use ALL of them ALL the time ;o) -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 8:27 AM To: 'David Buerer'; [EMAIL PROTECTED] Subj

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
What's ASP I don't know if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know?? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 8:27 AM To: 'David

Re: [PHP] Automatically send email on special day

2002-08-14 Thread David Buerer
Hey guys, you're all making this too dificult. Windows NT, Windows 2000, Windows XP, and even Window 98 all have a built in schedule utility. On NT, it's accessed via the AT command. In order to use it, the "Scheduler" system service must be installed. Once it's installed, tell it to call the P

RE: [PHP] Automatically send email on special day

2002-08-15 Thread David Buerer
. I guess I was keying off of NoWhErMan's statment "Since my server in on my local windows machine" which I interpreted to mean that he had control of the the machine. Maybe I was wrong. DAvid -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursd

[PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
Has anyone bumped into or written a set of good searching routines? I need to search across one,two, or three fields in an MySQL database in either exact phrase (easy) or keyword with relavence (difficult.) I'm thinking something like a google/yahoo style search. I've tried MySQL full text searc

RE: [PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
doesn't work on BLOB fields. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 8:37 AM To: David Buerer; '[EMAIL PROTECTED]' Subject: Re: [PHP] Keyword & exact phrase search I only just started getting into this, but it se

RE: [PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
[mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:08 AM To: David Buerer Subject: Re: [PHP] Keyword & exact phrase search Why would you have text in blob fields? Justin French on 16/08/02 1:25 AM, David Buerer ([EMAIL PROTECTED]) wrote: > I'd like to agr

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread David Buerer
Try this, it should work great. $starttag='' $endtag='' $pos_starttag=strpos(strtoupper($origstring),$starttag); $pos_endtag=strrpos(strtoupper($origstring),$endtag)+strlen($endtag); if($pos_starttag===False OR $pos_endtag===False) return 0; $newstring = substr(origstring,$pos_starttag,$pos_endt

[PHP] secure files acess

2002-08-16 Thread David Buerer
I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my computer without allowthem to just enter the URL into their

RE: [PHP] secure files acess

2002-08-16 Thread David Buerer
Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:06 PM To: David Buerer Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] se

[PHP] HTML - iframe

2002-08-19 Thread David Buerer
Yes I know it's a PHP list, but I thought someone might have an idea on how to fixt this problem anyway. I have a page with (2) iframes. While the source file for the iframes is being loaded, the iframe shows up as a big white area, similar to a . How do I make it so this doesn't happen?

[PHP] Unexplained Socket Error

2002-08-20 Thread David Buerer
Anyone know why I might get this error? I was working on development of a socket server several weeks ago and it was working fine. When I returned to it this morning, I am getting this error: Listening on port 1482 (sucess message from socket_create) Warning: socket_bind() unable to lookup host

[PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Anyone ever seen this error before? What causes it? It happens on a call to socket_bind after a successful call to socket_listen. Any ideas would be appreciated. Warning: socket_bind() unable to lookup host [1001]: Recursion too deep, stack overflowed. in f:\public\www\josiah\josiah2\consultat

RE: [PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Here is the code per your request mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:42 AM To: David Buerer Subject: Re: [PHP] unable to lookup host [1001] error Show the code and we might be able to help better... maybe line 20-35 ish, or anything you feel useful thx Andrew

[PHP] Fun with Binary Numbers

2002-08-28 Thread David Buerer
Here's a question, Say I have a binary number like this 1101 0100 0110 0110 And I want to pull out of the binary number the third quartet (is that the right word) I want to know how to apply the mask to the number above so that the result would be

RE: [PHP] question

2002-09-04 Thread David Buerer
while($a) { [statments] } while($b) { [statments] } while($c) { [statments] } or while(isset($a)) { [statments] } while(isset($b)) { [statments] } while(isset($c)) { [statments] } would both work well depending on your particular situation -Original Message- From: Richard Black [m

[PHP] file download/open and ie bug

2002-09-05 Thread David Buerer
I'm using version 6 of IE and Netscape I'm allowing the user to open/dowload a file from a secure locaiton on our server. Under Netscape it works great! Under IE, it doesn't work at all. IE complains about not being able to read from the server. Anyone know of any workarounds? here's the comm

RE: [PHP] sort dinamic generated table

2002-09-05 Thread David Buerer
stick the values in an array and use asort() to sort it. -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 8:30 AM To: PHP Subject: [PHP] sort dinamic generated table Hi, I have a resume system that put a rank in it resume at runtime.

RE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
Reading the users hard drive is impossible from php, but it's really easy with Java. -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 7:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Web based FTP client Hi Mark, > I am trying to buil

IRE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
e tag "file" and upload, not ftp. Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] - Original Message - From: "David Buerer" <[EMAIL P

RE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
se of our obsession with security we've failed. -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 11:11 AM To: Mark McCulligh Cc: David Buerer; [EMAIL PROTECTED] Subject: Re: [PHP] Web based FTP client Mark McCulligh wrote: > >I kn

RE: [PHP] Upload Progress

2002-09-09 Thread David Buerer
Ya' know guys i'm sitting here thinking about this problem because I have the same problem on one of my sites. A bunch of inpatient stupid users whom are click happy when they get impatient. Event a 100K upload can take to long! I don't like the ASP idea. It's really not a good solution. I'm a

RE: [PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Buerer
I would bet money on the fact that one of your pages doesn't have a session start in it. Or there is a link which which requires resets the browser and initiates the creation of new session. I've had some problems before with javascript and top.window.location redirections that when set to http:/

RE: [PHP] Help getting count to show up.

2002-09-10 Thread David Buerer
SELECT feild1, field2, COUNT([insert field name here]) FROM tables GROUP BY category,format --or-- SELECT feild1, field2, COUNT([insert field name here]) as mycount FROM tables GROUP BY category,format -Original Message- From: Chuck Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Septem

RE: [PHP] Re: mysql query

2002-09-11 Thread David Buerer
Look into the LIMIT command, it will limit the number of rows in the result set to the number you specify -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: mysql query function mysql_one_element(

RE: [PHP] basic voting

2002-09-11 Thread David Buerer
Justin, you've just asked for a way to restrict the possible number of votes from any one person to 1, however, you don't want to find out anything about that person! Although I certainly understand your position, you either have to get from them some information specific to the person, like, nam

RE: [PHP] Re: mysql query

2002-09-11 Thread David Buerer
") or die (mysql_error()); $row=mysql_fetch_array($result); $euro =$row[0]; -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 7:50 AM To: David Buerer Subject: Re: [PHP] Re: mysql query Maybe I wasn't clear. The value returned should

RE: [PHP] basic voting

2002-09-11 Thread David Buerer
n everyones end. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 8:10 AM To: David Buerer; '[EMAIL PROTECTED]' Subject: Re: [PHP] basic voting on 12/09/02 12:12 AM, David Buerer ([EMAIL PROTECTED]) wrote: > Justin, you've

RE: [PHP] Will return break loop?

2002-09-11 Thread David Buerer
really quik answer... yes. really long answer... from php manual: "the return() statement immediately ends execution of the current function, and returns its argument as the value of the function call." -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, S

RE: [PHP] Extracting Numbers from a string.

2002-09-12 Thread David Buerer
OK y'all, go ahead and shoot me, but this is what I'd do: $mystring="enters $56.55 for example"; $mynumber=$mystring+1-1; $mynumber now equals 56.55 If you want the . to go to, use the other methods. -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Se

RE: [PHP] Re: unless something...

2002-09-12 Thread David Buerer
True, but isn't unless just a negated while? q.e.d. while ($c==$a OR $c==$b) { blabla exit 0 } -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: unless something... There is

[PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
Are sessions domain specific? What I mean is this. Suppose I have two websites: secure.web.com www.web.com and both web sites point to the same set of data. If I looking at web page http://www.web.com/index.html and have a set of

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:06 AM To: David Buerer Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Sessions /Cross Domain Domains are specific, and so you do not get the same sesion variables. here's are ways around this, but you need control of the content of both s

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

2002-09-19 Thread David Buerer
1) Large Includes 200K of includes? Piece of cake! Remember, it is the server that is doing all of the work, not your clients. The issue is how many requests can your server simultaneously process and is there enough overhead to do it. With respect to speed, your server will cache the files aft

RE: [PHP] MySQL vs. basic text file

2002-09-23 Thread David Buerer
Speed Accessability Features Security Performance Simplicity Reusability Indexing Record-Locking To name a few. however, in your situation, it's an existing application which is working great and which no one has any complaints over. If it ain't broke, don't fix it. For your next application,

RE: [PHP] authenticating and redirecting with special access

2002-09-24 Thread David Buerer
make the directory outside of the web server root path and create some PHP routines to display the directory data as you see fit. PHP can see the entire file store, whereas the webserver can only see data below it's root. That way you keep security and can also display the data. -Original Me

RE: [PHP] remote files to servers

2002-09-26 Thread David Buerer
Of Course! You can use the fopen functions or curl functions depending on what and how you want to manage the data once you get it. Look at the manual in both of these sections and it will show you how to do it. BTW: What you are talking about doing is building a caching webserver. Apache can

RE: [PHP] Looking for some help on web header coding.

2002-09-26 Thread David Buerer
go look at the tutorial for using php with flash to retrieve variables from a database. it's pretty self explanatory and clear in how/what to do. -Original Message- From: Joshua Patterson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:35 AM To: 'PHP' Subject: [PHP] Looki

RE: [PHP] I don't want multiple form submitted

2002-09-26 Thread David Buerer
There is a header you can send which has a page expires time which will prevent the posting page from being reposted. Do some research on this and see what you can come up with. -Original Message- From: Clemson Chan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 1:57 PM To

RE: [PHP] Keeping your published script safe?

2002-09-26 Thread David Buerer
www.zend.com -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 2:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Keeping your published script safe? Hello, I have many scripts published at various script sites and I just got a report of a

[PHP] Windows Sockets Problem Socket_Read

2002-07-18 Thread David Buerer
I'm trying to setup a basic TCP server which I will later expand. Right now I get this error on the loop after it receives data the first time: Warning: socket_read() unable to read from socket [317]: in f:\public\www\josiah\josiah2\consultation\chat\test_server2.php on line 43 socket_read() fai

[PHP] Windows NT Server, FORK, SOCKETS, and seperate processes

2002-07-22 Thread David Buerer
I've got effectivly a glorified chat server which upon the arrival of a message thorugh a socket connection goes off and runs a bunch of database processed. My questions is this: How can I seperate the database processing into a seperate processor process? I really don't want the chat server to

RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes

2002-07-22 Thread David Buerer
How to I inovoke a new Thread from the middle of a PHP script? -Original Message- From: Paul Maine [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 10:08 AM To: David Buerer; [EMAIL PROTECTED] Subject: RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes You can

RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes

2002-07-22 Thread David Buerer
process it go_do_this_in_a_new_thread($new_connection_id); } What do I put in place of go_do_this_in_a_new_thread() -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:01 PM To: 'David Buerer'; [EMAIL PROTECTED] Subject: RE: [PHP] Windows NT Server

RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s

2002-07-22 Thread David Buerer
yone else have any other ideas? -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:47 PM To: David Buerer; [EMAIL PROTECTED] Subject: Re: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s Either exec(), system(), or one of the functio