[PHP] Running PHP script within stylesheet?

2002-06-09 Thread William S.
Sorry, perhaps I should have been a bit more specific. Here is my *.php file. I want the "hello world" script to output to the "Right Menu" table on my web page: http://213.84.71.105/ . %s", xslt_errno($_parser), xslt_error($_parser) ); } xslt_free($_parser); echo $result; ?> On Mo

[PHP] Running PHP script within stylesheet?

2002-06-09 Thread William S.
I am very new to PHP, Sablotron, XSLT, and MySql. Right now I have created a web page that is the result of a transformation (through php) of an xsl and xml file. What I would like to do is run a PHP script so that the result is displayed within a table on my web page. How do I do this? Here is a

Re: [PHP] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Greg Beaver wrote: > June 9, 2002 > RELEASE ANNOUNCEMENT > phpDocumentor version 1.1.0rc1 > http://www.phpdoc.org Best of all, with OSX IE 5.14, the page comes up completely blank. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] PHP/MySQL

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Jason Soza wrote: > When I make a change to the mysql_connect() function in my PHP script, > then save and reload that page, it doesn't seem to have any effect at > the time. For example, I don't allow any anonymous access to my MySQL > server, but I can take out host, user, an

Re: [PHP] Another Flat File question.

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Tom Ray wrote: > I have a flat file database that is delimited with colons. This file > will have new records added to it on a regular basis. What I want to do > is be able to search that file based on a keyword that is inputted by a > user, then it will search that database

[PHP] PHP/MySQL

2002-06-09 Thread Jason Soza
I'm wondering how PHP handles result sets and other info gathered from MySQL. The reason I ask is I've been messing with mysql_connect() functions all day, finally found a solution (or so I thought), then a couple hours later I returned to my site and got an "Unable to connect" error. When I mak

[PHP] logic question

2002-06-09 Thread Justin French
Hi, I'm working on a message board. Everything is working fine, except some of the beta testers have requested the desire to have a "6 new replies" type system, so that they can easily recognise threads with new posts. The board is open to both guests (email) and users (userid), and the plan wo

Re: [PHP] fputs/fgets working irregularly

2002-06-09 Thread Tom Rogers
Hi Why not just do it in one call? $fp = fopen("data/news.txt","w"); $np = fputs($fp,$pr.$ag); fclose($fp); Tom At 04:17 AM 10/06/2002, Kris wrote: >Hi all, > >I'm having some trouble getting my basic news script to work. Here is the >code: > > $fp = fopen("data/prev.txt","r"); > while

[PHP] fputs/fgets working irregularly

2002-06-09 Thread Kris
Hi all, I'm having some trouble getting my basic news script to work. Here is the code: $fp = fopen("data/prev.txt","r"); while (!feof ($fp)) { $pr = fgets($fp, 4096); } fclose($fp); $fp = fopen("data/news.txt","r"); while (!feof ($fp)) { $ag = fgets($fp, 4096); } fclose($fp);

Re: [PHP] Re: Date?

2002-06-09 Thread Bogdan Stancescu
JavaScript's getTimezoneOffset seems to be working just right, as shown here: http://www.tyzo.com/tools/timezone.html I think assuming that the user's computer has the correct time zone set shouldn't be too far-fetched - and you can always provide the user with a way to override that default.

Re: [PHP] simplicity with 2 queries..

2002-06-09 Thread Bogdan Stancescu
SELECT quiz_id FROM $table_quiz AS q, $table_user AS u WHERE q.user_id=u.user_id AND u.username='$valid_user' AND u.password='$valid_password'"; Bogdan Jule Slootbeek wrote: > Hey guys and gals, > > I have the following function which accesses the following tables, now > i want to

RE: [PHP] simplicity with 2 queries..

2002-06-09 Thread John Holmes
Read the JOIN chapter of the MySQL manual and it'll tell you how to do it. It's not a PHP issue. (watch for line wrapping) http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html #JOIN ---John Holmes... > -Original Message- > From: Jule Slootbeek [mailto:[EMAIL PROTECTE

php-general Digest 10 Jun 2002 03:28:04 -0000 Issue 1396

2002-06-09 Thread php-general-digest-help
php-general Digest 10 Jun 2002 03:28:04 - Issue 1396 Topics (messages 101331 through 101354): Re: Function needed 101331 by: Chris Hewitt 101332 by: Gaylen Fraley Formatting XML Data 101333 by: Sebastian A. 101335 by: Dan Hardiker Re: Date? 101334 b

[PHP] simplicity with 2 queries..

2002-06-09 Thread Jule Slootbeek
Hey guys and gals, I have the following function which accesses the following tables, now i want to know if there is a way to get the quiz_id from table quiz without runnning both these queries... thanks, Jule --tables-- mysql> describe user; ++--+--+-+---

RE: [PHP] Getting users monitor size

2002-06-09 Thread Mark
He asked about detecting monitor size, not screen resolution. I don't think any javascript will ever be able to do this. On Sun, 09 Jun 2002 20:42:58 -0400, Miva Guy wrote: >Currently, I'm developing a site that makes full use of a 1024 x 768 >display >since 90% of my users have that config. > >I

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
Ill look into gmdate. I was going to get the timezone from the user to store in the database.. David Freeman wrote: > > Speaking of which. I was thinking about this this morning. > > Is there a part of the Unix timestamp that tells php what > > timezone to > > report. > >You could use the g

[PHP] Another Flat File question.

2002-06-09 Thread Tom Ray
I know I've asked this before but I don't believe I asked the question correctly. I have a flat file database that is delimited with colons. This file will have new records added to it on a regular basis. What I want to do is be able to search that file based on a keyword that is inputted by a

RE: [PHP] Re: Date?

2002-06-09 Thread David Freeman
> Speaking of which. I was thinking about this this morning. > Is there a part of the Unix timestamp that tells php what > timezone to > report. You could use the gmt-based date manipulation to do this. > Reason why I ask, is I would like to offset the unix > timestamp relative > to

RE: [PHP] Getting users monitor size

2002-06-09 Thread Miva Guy
Currently, I'm developing a site that makes full use of a 1024 x 768 display since 90% of my users have that config. In the off chance they have a smaller display, I have this in the header of my HTML template: var smallver = {SCREEN_SIZE}; if(!smallver && screen.width < 1000) self.location.rep

[PHP] Re: Date functions & Unic Epoch

2002-06-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi! > > Say, has anybody re-written the date funtions so they work with any date and > not be crippled by the unix timestamp range limit? > > I am looking for a function which will do the equivalent of >date("w",mktime(0,0,0,8,30,1

[PHP] phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-09 Thread Greg Beaver
June 9, 2002 RELEASE ANNOUNCEMENT phpDocumentor version 1.1.0rc1 http://www.phpdoc.org Download: http://phpdocu.sourceforge.net/downloads.php The phpDocumentor Development team would like to announce the release of phpDocumentor version 1.1.0rc1. This is a release candidate for 1.1.0 to ensure t

Re: [PHP] Getting users monitor size

2002-06-09 Thread Rad0s-ław Gajewski
On Sun, 9 Jun 2002, Tom Ray wrote: ++>Is there a way to do this with PHP? I couldn't find it in the online ++>docs and the archive search is offline :( oh..You couldn't? echo ' What's your monitor size? '; Users monitor size is in $HTTP_GET_VARS["size"];

Re: [PHP] Getting users monitor size

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, Tom Ray wrote: > Is there a way to do this with PHP? I couldn't find it in the online > docs and the archive search is offline :( Use JavaScript to detect it, and then you can set a cookie or add it to a request posted to the server. In either case your PHP program can then

Re: [PHP] Re: Date?

2002-06-09 Thread Miguel Cruz
On Sun, 9 Jun 2002, John Taylor-Johnston wrote: > > Sunday, June 09, 2002 > > But I would use: > > > > Don't know why, but someone told me once it had something to do with versions. date() just wants a plain ordinary string for the first argument (as the manual clearly says). I don't know wh

[PHP] Getting users monitor size

2002-06-09 Thread Tom Ray
Is there a way to do this with PHP? I couldn't find it in the online docs and the archive search is offline :( thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Date?

2002-06-09 Thread Gerard Samuel
Speaking of which. I was thinking about this this morning. Is there a part of the Unix timestamp that tells php what timezone to report. Reason why I ask, is I would like to offset the unix timestamp relative to where a server is to a particular user. So lets say the user is in Europe, and the

[PHP] Date functions & Unic Epoch

2002-06-09 Thread Juan Antonio Ruiz Zwollo
Hi! Say, has anybody re-written the date funtions so they work with any date and not be crippled by the unix timestamp range limit? I am looking for a function which will do the equivalent of date("w",mktime(0,0,0,8,30,1934)) but that will actually *work*. Does anybody know a way to return w

Re: [PHP] populating list menus with mysql and for statements

2002-06-09 Thread Jason Wong
On Sunday 09 June 2002 17:27, electroteque wrote: > hi i am populating a list menu with mysql , i would like to find a way to > populate a form with more than one of the same list menus in a for loop > > >while ($sample = $result->fetchRow(DB_FETCHMODE_ASSOC)) { >$typeID=

Re: [PHP] restricting files

2002-06-09 Thread Jason Wong
On Sunday 09 June 2002 23:08, Justin French wrote: > Have you got a link for somewhere to look for a base set of functions for > me to build on? Search the archives, I'm sure I've posted some download code on the list before, as have others. -- Jason Wong -> Gremlins Associates -> www.gremlin

RE: [PHP] Fw: Excel Spreadsheet

2002-06-09 Thread John Holmes
It would be better to just have PHP do the calculating for you, instead of trying to figure out how to pass data back and forth between a spreadsheet. You can maybe use COM for passing the data, if you still need to do it that way. ---John Holmes... > -Original Message- > From: Jeremy Bo

RE: [PHP] PHP function for listing number of columns in table

2002-06-09 Thread John Holmes
No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net/mysql_num_fields ---John Holmes... > -Original Message- > From: [EMAIL PROTEC

[PHP] Fw: Excel Spreadsheet

2002-06-09 Thread Jeremy Bowen
Hello All, I was working on a little php today and I remembered that I had another project that I wanted to do. I have a fairly complicated excel spreadsheet that helps me price a service I provide and I would like to be able to have fields on my website that can be filled in and the data passed

Re: [PHP] Formatting XML Data

2002-06-09 Thread Dan Hardiker
> I would like some of the text to be > bold, or maybe I would like to insert a hyper-link. Unfortunately it > does not seem I can do this with ordinary HTML tags because they will > be interpreted as XML tags. I am sure, however that there is another > way of doing this. Does anyone know how? Ha

RE: [PHP] Re: Date?

2002-06-09 Thread Bruce Karstedt
works just fine for me. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 08, 2002 11:50 PM To: [EMAIL PROTECTED] Cc: Jeremy Bowen Subject: [P

[PHP] Formatting XML Data

2002-06-09 Thread Sebastian A.
Hello, I have been working with XML in the recent weeks and I have recently come across the need to format some of the data in my XML. For example I might have a large XML file and I would like some of the text to be bold, or maybe I would like to insert a hyper-link. Unfortunately it does not se

Re: [PHP] Re: Function needed

2002-06-09 Thread Gaylen Fraley
This resricts to *nix and can be disallowed due to security constraints, but thanks anyway. I just wrote my own PHP routine. -- Gaylen PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

Re: [PHP] Re: Function needed

2002-06-09 Thread Chris Hewitt
$result=`ls -R | grep 'expression' ./`; HTH Chris Jason Wong wrote: >On Sunday 09 June 2002 17:17, Austin Marshall wrote: > >>Gaylen Fraley wrote: >> >>>I am in need of a function/script that will take a directory and search >>>all filenames, recursively down, for a given file. Can anyone poin

php-general Digest 9 Jun 2002 15:11:40 -0000 Issue 1395

2002-06-09 Thread php-general-digest-help
php-general Digest 9 Jun 2002 15:11:40 - Issue 1395 Topics (messages 101306 through 101330): Re: Removing ^M 101306 by: Miguel Cruz 101326 by: Michael Hall Re: how to test if rewrite rule is working 101307 by: Miguel Cruz Function needed 101308 by: Gaylen F

Re: [PHP] restricting files

2002-06-09 Thread Justin French
Have you got a link for somewhere to look for a base set of functions for me to build on? Thx, Justin on 08/06/02 5:39 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote: > On Sat, 8 Jun 2002, Justin French wrote: >> When you say serve the files through a script, I assume you mean >> "download.php" for

[PHP] Re: MyCC Problem

2002-06-09 Thread Andy
maybe you do not have the propper rights set. Check your grant privillegs on the db. Andy -- http://www.globosapiens.net Global Travellers Network! "César l . aracena" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 002a01c20e80$743a3650$14ed0dd

[PHP] Re: populating list menus with mysql and for statements

2002-06-09 Thread Andy
seperate your layers. Create a database, display and action layer. For example: include qry_users.inc; include dsp_users.inc; in qry_users.inc get your data and store them into an array var: while($row->user) user[] = $row->user; } Then in dsp_users get them out again: foreach ($user AS $

[PHP] using HTTP-PUT-Method problem

2002-06-09 Thread Wolfram Kriesing
does someone have an example of a _working_ PUT-script? i was trying $PHP_PUT_FILENAME and even trying to dump all the GLOBALS but i couldnt find a filename which points to the PUT'-filename how does it work? obviously not as it is in the manual :-( copy( $PHP_PUT_FILENAME , $PATH_TRANSLATED

Re: [PHP] Removing ^M

2002-06-09 Thread Michael Hall
As a result of my original request, I now have half a dozen ways of doing this using php, perl, python and tr :) I guess this is sort of on topic because there may be PHP programmers who want to do this without writing a PHP script that probably has to be run by a web server. Anyway, someone on

Re: [PHP] Re: Function needed

2002-06-09 Thread Jason Wong
On Sunday 09 June 2002 17:17, Austin Marshall wrote: > Gaylen Fraley wrote: > > I am in need of a function/script that will take a directory and search > > all filenames, recursively down, for a given file. Can anyone point me > > to a source? Thanks. > > $result=`grep -r 'expression' ./`; This

[PHP] STDIN/STDOUT in PHP

2002-06-09 Thread Jimmy Lantz
I've been looking for a way to work with stdin/stdout for a mod_rewrite's rewritemap. There's a working example in Perl, (just returning the input) #!/usr/bin/perl $| = 1; while () { print $_; } I've been trying to achieve this with fopen() read and write the php://stdin & php://stdout

Re: [PHP] error reporting

2002-06-09 Thread Jason Wong
On Monday 10 June 2002 09:42, Scott 'INtense!' Reismanis wrote: > Hey all, > > I recently installed Apache2, PHP4.2 on my win2k box as a module. It > works fine however say a script has a syntax error all that happens is a > blank screen is displayed. No errors are shown and thus it is very hard >

[PHP] populating list menus with mysql and for statements

2002-06-09 Thread electroteque
hi i am populating a list menu with mysql , i would like to find a way to populate a form with more than one of the same list menus in a for loop fetchRow(DB_FETCHMODE_ASSOC)) { $typeID=$sample["typeID"]; $description=$sample["description"]; $sample_type[$sample['typeID

[PHP] Re: Function needed

2002-06-09 Thread Austin Marshall
Gaylen Fraley wrote: > I am in need of a function/script that will take a directory and search all > filenames, recursively down, for a given file. Can anyone point me to a > source? Thanks. > > > $result=`grep -r 'expression' ./`; -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] error reporting

2002-06-09 Thread Scott 'INtense!' Reismanis
Hey all, I recently installed Apache2, PHP4.2 on my win2k box as a module. It works fine however say a script has a syntax error all that happens is a blank screen is displayed. No errors are shown and thus it is very hard to debug when I don't know what the error is, and what line it occurs on.