[PHP] Inclusion error

2002-07-15 Thread Sachin Keshavan
> Failed opening '/var/www/html/BOOKS/newbooks.php' for inclusion > (include_path='.:/php/includes:/usr/share/php') in Unknown on line 0 > > I am getting the following error, when the file newbooks.php is invoked. > The first lines in this entire file starts with the 4 lines of comments. What c

RE: [PHP] Problem on file_exists()

2002-07-15 Thread David Redmond
Jack, try using forward slashes instead of backslashes;eg $fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+"); Cheers -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 5:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Proble

[PHP] Problem on file_exists()

2002-07-15 Thread Jack
Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through (\\nedcoraa\pd

Re: [PHP] Submit code

2002-07-15 Thread Peter Janett
The Snoopy class would do this nicely. http://snoopy.sourceforge.net/ That may be too complicated of class as you mentioned, but it's probably the best solution for you, and once setup, your task will be very easy to do with this class. I had a similar situation where I needed to do a simple fo

Re[2]: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Latex Master
Hello andy, Well i do work on the same project. Now i got little lost with headers. If anyone can help me I'll be glad. as for all othe issues like updating databases they are solved :) With now cron job :) Monday, July 15, 2002, 7:27:19 PM, you wrote: >> It would

RE: [PHP] Submit code

2002-07-15 Thread Martin Towell
three methods that I can think of: 1. header("location: url"); 2. 3. Hidden form + JavaScript -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Submit code I am looking for PHP code that will submit

[PHP] Submit code

2002-07-15 Thread MindHunter
I am looking for PHP code that will submit (post) a form automaically to a ANOTHER php page. I do not want to press a submit button. I have found a class at PHPClasses but it is too complicated for my needs. What is the simplest way of doing this? What is the theoretical approach? The reason

[PHP] Complex session issue

2002-07-15 Thread Divyank Turakhia
I have a situation where I have one browser window open for lets say web application 'x'. Now I want my user to goto application 'y' on the same domain in a new browser window by passing the authentication information from application 'x' to application 'y'. I obviously donot want my session varia

[PHP] Re: [PHP-DEV] OOH Forms ?

2002-07-15 Thread Arnaud Limbourg
Hello, There is such a library, you can find it in PEAR. It needs some cleanup and improvements though. Arnaud. > Hi there > > I came across with some reference indicating there was a library called OOH > forms, wondering if anyone knows about the status of that lib, or has those > features b

[PHP] Re: PHP and Jigsaw

2002-07-15 Thread Richard Lynch
>With Jigsaw's debug facility Enabled, I get two lines on the page and the >same two lines (without html tags of any sort) in "view source" display: >X-Powered-By: PHP/4.2.1 >Content-type: text/html If these two lines are showing up in the BROWSER, then something is pretty wrong... They're suppo

[PHP] Re: Multi-Part PostToHost?

2002-07-15 Thread Richard Lynch
> fputs($fp, "Content-Type: multipart/form-data; boundary=AaB03x\n"); > fputs($fp, "--AaB03x\n"); > fputs($fp, "Content-Disposition: form-data; name="variable1"\n"); > fputs($fp, "\n"); > fputs($fp, "Variable 1 Data\n"); > fputs($fp, "--AaB03x\n"); > fputs($fp, "Content-Disposition: form-data; nam

[PHP] Re: Installing MYSQL on Windows

2002-07-15 Thread Richard Lynch
>Can anyone tell me steps for installing MYSQL on >windows ?? 1. Download from http://mysql.com 2. Follow the instructions in the download. If you get stuck, you've *GOT* to say which *VERSION* of Windows, since they are all too damn different. :-) -- Like Music? http://l-i-e.com/artists.htm

[PHP] Re: Solaris 8 + php 4.2.1 setup problem

2002-07-15 Thread Richard Lynch
>I am trying to get PHP 4.2.1 installed on Solaris 8 with apache 1.3.22. >It installed ok, but when I restart apache I get the follow error in my >error_log file. > >/usr/local/apache/logs/error_log >[Thu Jul 11 13:13:11 2002] [notice] Apache/1.3.22 (Unix) PHP/4.2.1 >configured -- resuming normal

[PHP] Re: newbie: mysql statement

2002-07-15 Thread Richard Lynch
>I want to update the most recent record (based on the timestamp in field >posted) where the parent field == a specified value (in a table called >header). > >I tried the following mysql statement: > >"UPDATE header WHERE parent = '$this->postid' ORDER by posted SET >parent='$this->parent' LIMIT1"

[PHP] Re: outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-15 Thread Richard Lynch
>this is fine under netscape but IE has problems. > >consider the following code: >but this code which only has the difference of using the POST method >instead of the GET metod results in a "file is corrupt" message! Assuming there's not something more subtle going on... My best rationalizati

[PHP] Re: PHP 4.3.x..

2002-07-15 Thread Richard Lynch
>One of the threads above Speak of PHP 4.3 I was not >aware that it existed... Is it still in its Testing stages? >How come its not on the PHP Website? Are there any >great modifications to it? If other need to look even farther ahead, http://cvs.php.net is a safe bet for the most recent devel

[PHP] Re: Detecting network connections

2002-07-15 Thread Richard Lynch
>Is there any way I can set up a php script so that it will detect the >login of the current Netware user on a PC and use that user's >information to customize a greeting for the user? Almost for sure, no. But, to be 100% sure, do this: And surf from that Netware box to it. If Netware is t

[PHP] Re: dio_seek, dio_tell

2002-07-15 Thread Richard Lynch
>Hi, >I have two questions: >what is the meaning of (int type) return value of dio_seek() function in PHP ? >second question: >how can I get the position in file, pointed by file descriptor (dio_*() )? >In C/C++ language, this is implemented in ftell function. http://php.net/fseek http://php.ne

[PHP] Re: fputs - need help!

2002-07-15 Thread Richard Lynch
> >Hi > >I use this line > >fputs ($sysname_log, "$time - SystemName: $sysname\n"); > >I would like to get a log file, and everytime I refresh this page it will >make a new line and write >$the local time - SystemName: $sysname >So after a while it will look like this > >$the local time - SystemNa

[PHP] Re: ignore_user_abort question

2002-07-15 Thread Richard Lynch
>Hi, got a question. > >What happend if ignore_user_abort is true, and the user closes the window? > >Also, i tried, but i push the stop button, and the script stops, shouldn >ignore that?. I *THINK* ignore_user_abort() is only useful with some browsers... Or, perhaps, it relies on Apache figur

[PHP] Re: IF inside LOOP?

2002-07-15 Thread Richard Lynch
>I’ve been fooling around with a LOOP which should show one or more text >string stored in separate rows in a DB. The trick would we to separate >them with commas (,) when there’s another string to show or end it with >a period (.) if no other row is found according to the SELECT criteria. >This i

[PHP] Re: DOM XML : experimental ?

2002-07-15 Thread Richard Lynch
>I am planning to use PHP to develop some scripts that will need to >create and manipulate html pages. One of the things that will be >created is a DOM tree of the html. > >After reading the manual I've found that php supports the event-driven >and dom xml, but with the latter tagged as EXPERI

[PHP] Re: Training / Courses in Australia

2002-07-15 Thread Richard Lynch
>Would anyone know of any PHP training or courses in Australia... Luke and Laura :-) run a fabulous PHP program through the Royal Mumble Iblle T-something... Royal Melbourne Institute of Technology? >Also for the devolopers... > >Is there at present, or a future plan for a PHPCE >A certified en

[PHP] Re: Creating an PHP program and C program

2002-07-15 Thread Richard Lynch
>I wrote some times ago an library to draw graphics in 2 and 3 D, but >this sources are write in C, whats the procedures I need to use this rotines >in PHP. You need to create a PHP "extension" library. Samples are in Rasmus' talks at http://conf.php.net They are Un*x .so files on steroids

[PHP] Re: hello the list

2002-07-15 Thread Richard Lynch
>i'm new and i'm trouble with this code :'( can U help me please ?? This would be much easier if you told us what was going wrong... I'll point out the ones I see, but it's just a guessing game (not a very fun guessing game). >while ($cd_tbl = mysql_fetch_array ($result)) >{ >if(is_int("$cd_id

[PHP] Re: is_null question

2002-07-15 Thread Richard Lynch
>It looks like I should be using is_null(), but I'm not sure how to use it, >especially since all of this is embedded in a print statement. Disclaimer: is_null() is new-fangled, and while I assume it matches up with SQL NULL, it's *POSSIBLE* that PHP's NULL is for something entirely different tha

[PHP] Re: Gainesville, Florida PHP Users? (Re: [PHP-WIN] PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area)

2002-07-15 Thread Richard Lynch
> >Well I don't see a user group listed for Gainesville, FL... and we could >have a cool acronym too > > PUGG > >(php users group of gainesville) > >ok, that's a first attempt, but anyway > >So are there other Gainesville, Florida folks around? If so please drop >me a link and maybe we can

[PHP] Re: PHP codes and variables

2002-07-15 Thread Richard Lynch
>Anyone know how to do have a variable equal the contents of a file? I tried >the include function, but it just prints the file out on the screen rather >than including the contents in the variable itself. I need help with this >ASAP. Thanks. -- Like Music? http://l-i-e.com/artists.htm

[PHP] Re: Multiple Tables -add, edit, delete

2002-07-15 Thread Richard Lynch
>Problem: How do I display all the tblCountriesOfOperation for one >tblContacts record SO THAT MULTIPLE COUNTRIES CAN BE ADDED OR DELETED FOR >THAT RECORD? create table contacts( contact_id int(11) unsigned auto_increment unique not null primary key, name text ); create table countries(

[PHP] how can I log to my cvs in php.net and translate files

2002-07-15 Thread Alawi
Hi I want to use my cvs to log to php.net servers and get the manual files and translate it to arabic .. How can I log to cvs and what the important setting and info for that ? How can I log using Wincvs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Installing MYSQL on Windows

2002-07-15 Thread Yamin Prabudy
you might want a phptriad (apache,mysql,php) find it in sourceforge On Tuesday 16 July 2002 06:15 am, Analysis & Solutions wrote: > On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote: > > Can anyone tell me steps for installing MYSQL on windows ?? > > Very simple, step by step, instruc

[PHP] Sorting getmxrr()

2002-07-15 Thread Chris Knipe
Lo all, if (getmxrr($DomainPart, $DomainMX, $Weight)) { for ($Counter = 0; $Counter < count($DomainMX); $Counter++) { echo "$DomainMX[$Counter] ($Weight[$Counter]) "; } } How can I manage to sort $DomainMX from the lowest $Weight to the highest, while still preserving the prope

RE: [PHP] OOH Forms ?

2002-07-15 Thread John Holmes
> I came across with some reference indicating there was a library called > OOH > forms, wondering if anyone knows about the status of that lib, or has > those > features been incorporated into some others? OR simply, Is there any > similar one, thanks. http://www.google.com/search?sourceid=navc

[PHP] OOH Forms ?

2002-07-15 Thread DoL
Hi there I came across with some reference indicating there was a library called OOH forms, wondering if anyone knows about the status of that lib, or has those features been incorporated into some others? OR simply, Is there any similar one, thanks. /dl -- PHP General Mailing List (http://

RE: [PHP] Free PHP Books in PDF or HTML Format

2002-07-15 Thread Martin Towell
try out http://www.informit.com -Original Message- From: Chris Carlson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Free PHP Books in PDF or HTML Format Hey guys, I was wondering if anyone on the list could recommend web sites to

[PHP] Free PHP Books in PDF or HTML Format

2002-07-15 Thread Chris Carlson
Hey guys, I was wondering if anyone on the list could recommend web sites to visit to find free PHP books available on the 'net in either PDF or HTML format. Thanks, CHRIS(.deletedscenes.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] Online Document

2002-07-15 Thread John Holmes
I hate to say it, but the easiest way to maintain this might just be to do all of the hyperlinking from within Word, with its own function/buttons, etc, and then save the Word document as HTML. Yeah, it'll be bloated and crappy HTML, but it'll load into a browser. Then, when she needs to update it

RE: [PHP] Date () Help please

2002-07-15 Thread John Holmes
You could use mktime() with date, too... $first_day = date("w",mktime(0,0,1,$month,1,$year)); Set your $month and $year accordingly. ---John Holmes... > -Original Message- > From: Attila [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:07 PM > To: [EMAIL PROTECTED] > Subject:

RE: [PHP] Installing MYSQL on Windows

2002-07-15 Thread John Holmes
> Hi, > Can anyone tell me steps for installing MYSQL on > windows ?? Umm...download, unzip, run the setup program. How hard is that? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: NMTP server and db

2002-07-15 Thread John Holmes
> > - how is it possible to run a php script periodicly? > > Depends on your OS. If you're on Linux or similar then use cron. If you're > on > Windows NT/2k, use AT. If you're on Windows 9x IIRC there is a scheduler > in the > control panel. AT seemed flaky when I tried to use it. You can use th

Re: [PHP] Re: Editing files by line

2002-07-15 Thread Analysis & Solutions
On Mon, Jul 15, 2002 at 08:46:14PM -0400, Onaje Johnston wrote: > > I've written a script that edits a specific line in a text file and saves > the changes to the file for that specific line. I've noticed though that I > can't edit the first line in the file Without seeing the script, it'd be har

RE: [PHP] Re: Editing files by line

2002-07-15 Thread Onaje Johnston
-Original Message- From: Analysis & Solutions Sent: Friday, July 12, 2002 9:57 AM To: PHP List Subject: Re: [PHP] Re: Editing files by line >Unfortunately, if a file is opened for appending via fopen('name', 'a'), >the manual says the data is put at the end of the file regardless of using

[PHP] PHP and Jigsaw

2002-07-15 Thread Murray Nicholas
I've been trying to get a simple php page to produce any output through a Jigsaw server. I've got past the problem of cgi.redirect and now my server launches php and returns a "page" but it's blank. There is no evidence of my html or php code having been seen by the server. I've run the php scr

Re: [PHP] Date () Help please

2002-07-15 Thread Attila
OK thought I should share in case any needs it but got it to work. Here is what it looks like and thanks to Richard Baskett for the help. $yr= date (Y); $mnth = date (F); $dy= 1; $string = "$dy $mnth $yr"; $today = date("w",strtotime($string)); Thanks for the help Attila http://www.glorynaspira

Re: [PHP] Date () Help please

2002-07-15 Thread Attila
Ok your way works and thanks for the help but still struggling a little bit here is what I have. $year = date (Y); //This gets me the current year 2002 $month = date (m); //This gets me the current month 07 $day= 1; //always looking for the 1st day of the month

Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Gerard Samuel
I dont think Apache 2 or php 4.3.x are meant for production boxes.. My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test box is 4.2.1 but thats ok) Michael Hall wrote: >I've had a hunt through the mail archives but can't find a definite >answer: > >Is Apache 2.0.x and PHP 4.2.x/

Re: [PHP] Date () Help please

2002-07-15 Thread Richard Baskett
$today = date("w"); // $today will result in '1' $today = date("D"); // $today will result in 'Mon' $today = date("l"); // $today will result in 'Monday' Now if you wanted to feed the script something like this: $string = "01 Jul 2002"; $today = date("l",strtotime($string)); This will result in

[PHP] Date () Help please

2002-07-15 Thread Attila
Hello all, I am very new to PHP and I have added some minor PHP to my website. I would like to make a PHP calander to keep track of things going on. Could someone tell me how I can get the first day of every month. For Example: 01 Jul 2002 was a Monday. 01 Mar 2002 will be a Thursday I nee

Re: [PHP] Installing MYSQL on Windows

2002-07-15 Thread Analysis & Solutions
On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote: > > Can anyone tell me steps for installing MYSQL on windows ?? Very simple, step by step, instructions: http://www.analysisandsolutions.com/code/mybasic.htm --Dan -- PHP classes that make web design easier

Re: [PHP] Encoding problem ONLY with _command line_ PHP.exe

2002-07-15 Thread Analysis & Solutions
On Fri, Jul 12, 2002 at 11:02:54PM +0100, Emile Axelrad wrote: > Hello - My problem is as follows (I am trying to migrate from a mssql > server to a mysql server) OH! > The data in the MSSQL table is: Æã > > IF I call this PHP code from my browser (IE6) it results in the > following output: Æ

Re: [PHP] Online Document

2002-07-15 Thread Kevin Stone
I would recommend applying a simple templating system to the file. Anything that needs to be extracted out of the page for navigation purposes will be enclosed in special characters such as a chapter title.. [:chapter = "CHAPTER 2: Beating a Dead Horse":]. A very simple script parses the file an

[PHP] Multi-Part PostToHost?

2002-07-15 Thread Steve Keller
First, thanks to the people who've helped me so far. I'm a UI designer who's suddenly found himself responsible for a very large website that integrates services from no less than four different providers, and I've been dumped into learning PHP on my own under a heavy deadline. Anyway, I'm catch

Re: [PHP] Installing MYSQL on Windows

2002-07-15 Thread Lee
Have a look at http://www.mysql.com/doc/W/i/Windows_installation.html Cheers Lee. - Original Message - From: "Varsha Agarwal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 10:12 PM Subject: [PHP] Installing MYSQL on Windows > Hi, > Can anyone tell me steps

[PHP] Online Document

2002-07-15 Thread Glenn Antoine
We are currently looking to put a very sizable document on a website so that it will be easily. The document is currently maintained by a single user in a MS Word format. Ideally it would be very nice if the index would take the user to the index of the appropriate section of the document, which

[PHP] Installing MYSQL on Windows

2002-07-15 Thread Varsha Agarwal
Hi, Can anyone tell me steps for installing MYSQL on windows ?? -Varsha __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] ^k ? -- how do I match that?

2002-07-15 Thread Martin Clifford
Just try eregi_replace("\^k[.+]", "", $container); Regular expressions are the MASTERS of the INTARWEB! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Jimmy Brake <[EMAIL PROTECTED]> 07/15/02 04:32PM >>> Hi! I keep ge

Re: [PHP] cleaning HTML TAGS (headed)

2002-07-15 Thread Kevin Stone
Sorry.. I screwed up my preg_match string. It should have $file as the second parameter and also included an 'i' after the closing delimeter for a case-insensitive search. preg_match('/(.*)<\/title>/i', $file, $result); - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[

[PHP] ^k ? -- how do I match that?

2002-07-15 Thread Jimmy Brake
Hi! I keep getting that evil little character ... ^k from mac users (pre X) and I need to remove it. Does anyone know how to remove? This site has that character as a vertical tab. This character is what is used in MS Excel when people hit return inside a cell. If they copy and paste that into

Re: [PHP] cleaning HTML TAGS (headed)

2002-07-15 Thread Kevin Stone
This isn't any more effective but it is fewer lines of code.. $file = implode('', file("file.html")); preg_match('/(.*)<\/title>/', $result); $title = $result[1]; -Kevin - Original Message - From: "Juan Pablo Aqueveque" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 15,

RE: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-15 Thread Matt Schroebel
> From: gilles [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 1:19 PM > Subject: [PHP] outputting a pdf file to IE browser? POST/GET > method bug or not? > error_reporting(E_ALL); > > session_start(); > if (!isset($_SESSION['download'])) { > @$_SESSION['download'] = $_POST['down

RE: [PHP] Credit Card Processing - Take Two

2002-07-15 Thread Vail, Warren
You might check out http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/ Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Daniel Guerrier [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:5

Re: [PHP] Credit Card Processing - Take Two

2002-07-15 Thread olinux
www.x-cart.com looks like a good and inexpensive option - I will be implementing it soon, but I have not tried it yet. Anyone used x-cart? Thanks, olinux --- Daniel Guerrier <[EMAIL PROTECTED]> wrote: > > Can anyone recommend a good and cheap shopping cart > and credit card processing combo

[PHP] cleaning HTML TAGS (headed)

2002-07-15 Thread Juan Pablo Aqueveque
Hi everyone. Sorry for the trivial question. I want insert a .html inside of one .php file but without and tags. I built a routine (shown it down) it's running OK but show me the title () of my html. somebody can help with a routine a little me more effective than mine? Thanks in advance.

[PHP] Credit Card Processing - Take Two

2002-07-15 Thread Daniel Guerrier
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com --- Begin Message --- Can anyone recommen

RE: [PHP] newbie: mysql statement

2002-07-15 Thread Vail, Warren
I like this form better but it's not clear to me if this would only update the row for parent='$this->parent' if it were the last row "posted" to the table. Depends on whether the max function in the where clause is bound to the max in the table or the max in the sequence set (I tend to think it

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Martin Clifford
You're right Andrew, got a little ahead of myself :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Andrew Brampton" <[EMAIL PROTECTED]> 07/15/02 03:23PM >>> Shouldn't this be "UPDATE header SET parent='$this->parent' WHE

[PHP] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area

2002-07-15 Thread Martin Clifford
Yes, everyone please join up! I would love to find more developers in the Maryland area, and I'm sure others would in their areas as well! Let's do the great american get togeth... err... the great php get together! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: h

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Andrew Brampton
Shouldn't this be "UPDATE header SET parent='$this->parent' WHERE posted = max(posted)" Otherwise the max(posted) = max(posted) is true for all records (therefore all records get updated) Andrew - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <

[PHP] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area

2002-07-15 Thread Jay Blanchard
[snip] No, it's not a dating service :) Want to meet other PHP developers in your area? Check out: http://php.meetup.com/ Pretty nifty idea... especially given the lack of user groups in the U.S. I thought for others who had not seen this I would post this. There is probably already a user

RE: [PHP] newbie: mysql statement

2002-07-15 Thread Vail, Warren
If you could retrieve the max(posted) prior to doing the update you could; SELECT max(posted) from header WHERE parent = '$this->postid' and substitute the value in the following query; Update header SET parent='$this->parent' WHERE parent = '$this->postid' AND posted = $retrieved_posted A sub

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Martin Clifford
I would rewrite the query as: "UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)" I would think this to work, though I don't have the facilities to test it, and have never needed to do a query such as this. In theory, it should update ONLY the row where the maximum valu

RE: [PHP] newbie: mysql statement

2002-07-15 Thread Vail, Warren
Oops, looks like I missed your Set after the ORDER BY. I've never seen it there, usually I see it immediately after the update. Seem to me some things in SQL are positional, but could be wrong here. Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Greg Donald
On Mon, 15 Jul 2002, Alexander Ross wrote: >I want to update the most recent record (based on the timestamp in field >posted) where the parent field == a specified value (in a table called >header). > >I tried the following mysql statement: > >"UPDATE header WHERE parent = '$this->postid' ORDER b

RE: [PHP] newbie: mysql statement

2002-07-15 Thread Vail, Warren
not only that, but you seem to be missing any SET field = value to cause updates to occur. I suspect the reason that the ORDER BY is rejected is be cause the database wants to use an index determined from your where clause to optimize the update process. Keep in mind that no rows are returned to

[PHP] Solaris 8 + php 4.2.1 setup problem

2002-07-15 Thread Mark McCulligh
I am trying to get PHP 4.2.1 installed on Solaris 8 with apache 1.3.22. It installed ok, but when I restart apache I get the follow error in my error_log file. /usr/local/apache/logs/error_log [Thu Jul 11 13:13:11 2002] [notice] Apache/1.3.22 (Unix) PHP/4.2.1 configured -- resuming normal operati

[PHP] newbie: mysql statement

2002-07-15 Thread Alexander Ross
I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but a

Re: [PHP] PHP 4.3.x..

2002-07-15 Thread Tyler Longren
You could have found the answer to this question right on the front page of php.net. 4.3.x is indeed the current development version. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 15 Jul 2002 14:00:26 -0230 "Kondwani Spike Mkandawire" <[EMAIL PROTE

Re: [PHP] Any sites like www.webcron.org?

2002-07-15 Thread Stuart Dallas
On Monday, July 15, 2002, 6:49:06 PM, Leif K-Brooks wrote: > I'm making a web site with a friend. For now, we're stuck on a free > host with no cron. We need it, and I tried www.webcron.org, but it > seems to be down. Does anyone here know of similar services? Thanks > for any help. I don't

[PHP] Any sites like www.webcron.org?

2002-07-15 Thread Leif K-Brooks
I'm making a web site with a friend. For now, we're stuck on a free host with no cron. We need it, and I tried www.webcron.org, but it seems to be down. Does anyone here know of similar services? Thanks for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] paid consultant need

2002-07-15 Thread Jeff Schwartz
I need someone to help me compile the c-client library for IMAP and re-compile PHP to support it, ASAP. Please contact me with your background and rate. Thanks, Jeff __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.ya

[PHP] outputting a pdf file to IE browser? POST/GET method bug or not?

2002-07-15 Thread gilles
hi, i've run in to a strange problem, i'm trying to output a pdf file from disk to the browser. this is fine under netscape but IE has problems. consider the following code: --- -- the above code runs fine on

Re: [PHP] Self Modifying PHP Code Working on IIS

2002-07-15 Thread Greg Donald
On Mon, 15 Jul 2002, Kondwani Spike Mkandawire wrote: >Am I the only one who seems to be irritated by the tremendous amount >of settings you have to do on the IIS Server if testing a PHP Script... You are not alone, I am irritated by IIS everytime I am forced develop for it. >I am testing a Se

Re: [PHP] Re: NMTP server and db

2002-07-15 Thread Stuart Dallas
On Monday, July 15, 2002, 6:00:44 PM, I wrote: > You can do it 2 ways: either using the sockets or with the IMAP functions. I'm > not too sure about sockets, but the IMAP function require the IMAP module to be > loaded. D'oh, forgot the link: http://www.php.net/manual/en/ref.imap.php -- Stuart

[PHP] Re: NMTP server and db

2002-07-15 Thread Stuart Dallas
Please don't contact me privately unless you want to hire me. On Monday, July 15, 2002, 5:13:35 PM, "andy" wrote: > ok sounds logical. Don't have any experiance on doing anything nntp related > in php. > > There are some questions I am wondering about: > > - do I have to compile php with a specia

Re: [PHP] replacing multiple spaces with one

2002-07-15 Thread Jason Wong
On Tuesday 16 July 2002 00:15, David Russell wrote: > Hi all > > (easy one - I think) > > I need to replace all instances of multiple spaces in a string with a > single space. > > I tries the following: >$ArticleText = str_replace(' ', ' ', $ArticleText); > but if I have four spaces, I am lef

[PHP] PHP 4.3.x..

2002-07-15 Thread Kondwani Spike Mkandawire
One of the threads above Speak of PHP 4.3 I was not aware that it existed... Is it still in its Testing stages? How come its not on the PHP Website? Are there any great modifications to it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replacing multiple spaces with one

2002-07-15 Thread nico_free
Hellorgh !! $ArticleText = ereg_replace("[[:space:]].*", " ", $ArticleText); Should be fine... But AFAIK, using preg_replace should be faster, but I don't know the exact syntax to solve your probem :-( -- Nayco - Original Message - From: David Russell <[EMAIL PROTECTED]> To: php-general

[PHP] replacing multiple spaces with one

2002-07-15 Thread David Russell
Hi all (easy one - I think) I need to replace all instances of multiple spaces in a string with a single space. I tries the following: $ArticleText = str_replace(' ', ' ', $ArticleText); but if I have four spaces, I am left with two - this is wrong... I am sure that I am really looking fo

RE: [PHP] MSSQL and NT

2002-07-15 Thread John Holmes
Not sure if this helps, but if you turn on NT-Authentication in IIS, then you'll have a variable $_SERVER['LOGGED_ON'] or something similar that'll hold the username of the person that's logged on. Check a phpinfo() page in a NT-Authenticated directory to see which variables are available. ---Jo

[PHP] Credit Card Processing

2002-07-15 Thread Daniel Guerrier
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.ph

[PHP] Self Modifying PHP Code Working on IIS

2002-07-15 Thread Kondwani Spike Mkandawire
Am I the only one who seems to be irritated by the tremendous amount of settings you have to do on the IIS Server if testing a PHP Script... I am testing a Self modifying Script runs perfectly on Apache 1.3 /PHP4.2.1 However it is meant to sick Chunks of code at the beginning of my File... Hence

RE: [PHP] Alley-OOP! ... or not?

2002-07-15 Thread Cal Evans
Building off of what Jay said... I'm a hardcore OOP developer but agree that you must use it judiciously. Used in the correct way it makes maintaining/extending your applications much easier. There are times though when you don't want it. I usually find myself coding pages that have PHP in them

Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread andy
> It would be relatively straight-forward to have a PHP script run periodically, > read from an NNTP server .. ok sounds logical. Don't have any experiance on doing anything nntp related in php. There are some questions I am wondering about: - do I have to compile php with a special flag to do

RE: [PHP] Alley-OOP! ... or not?

2002-07-15 Thread Jay Blanchard
[snip] I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me about

RE: [PHP] Alley-OOP! ... or not?

2002-07-15 Thread Henning Sittler
Why not try it for yourself? If it seems helpful then use it, if not then don't. Henning Sittler www.inscriber.com -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Alley-OOP! ... or not?

[PHP] Alley-OOP! ... or not?

2002-07-15 Thread Martin Clifford
Hey all, I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me

Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Rasmus Lerdorf
> Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a > production environment? Nope -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fputs - need help!

2002-07-15 Thread Greg Donald
On Mon, 15 Jul 2002, MAAS wrote: Try adding a \r. fputs ($sysname_log, "$time - SystemName: $sysname\r\n"); -- --- Greg Donald http://destiney.com/public.key --

[PHP] Detecting network connections

2002-07-15 Thread Brad Harriger
Is there any way I can set up a php script so that it will detect the login of the current Netware user on a PC and use that user's information to customize a greeting for the user? Thanks, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Peter J. Schoenster
On 15 Jul 2002 at 14:55, Andy wrote: > I just found a site where they have integrated a usenet forum into > their own forum. I am wondering how this is technicaly done? The > postings seem to be pretty up to date ( I did compare them with the > usenet ones) Here is the link: > Has anybody an ide

  1   2   >