[PHP] Re: header() and frames

2002-03-06 Thread Paul A. Procacci
Does that actually work? I'm using Mozilla, and it didn't work for me? :) Paul Jim Winstead wrote: >Alan McFarlane <[EMAIL PROTECTED]> wrote: > >>header("location: index.php; target: _top"); >> > >header("Location: index.php"); >header("Window-target: _top"); > >jim > -- PHP General Maili

RE: [PHP] $db_list = mysql_list_dbs

2002-03-06 Thread Kearns, Terry
Do a select on mysql's system database/table Mysql.db There's a column called db and one called user. Put a where clause on user. If you want more help, there is a PHP-DB mailing list. [TK] > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 7 March

RE: [PHP] #!/usr/bin/php in output?

2002-03-06 Thread Kearns, Terry
OK, the only reason you would have #!/usr/bin/php is if you're going to run it as a shell script under unix. You approach should _still_ be 2 scripts (3 if you count the include file). #!/usr/bin/php If the script really must be one and the same (name and path), then maybe #!/usr/bin/php

[PHP] Re: Caching Problem

2002-03-06 Thread Paul A. Procacci
Hah, I found the problem. It's because vmstat when called always, initially has the cpu idle at 99. This explains it. So, how would I go abouts returning used cpu time on a system? Thanks, Paul Paul A. Procacci wrote: > Hey all, > I'm trying not to cache a page. I have the followi

[PHP] Caching Problem

2002-03-06 Thread Paul A. Procacci
Hey all, I'm trying not to cache a page. I have the following code: $return = split(" ", exec("vmstat")); $cpu_top = 100; $return = $cpu_top - $return[count($return) -1]; which returns the amount of idle cpu time. The problem is this, every time the page is loaded

RE: [PHP] Calling a Variable in a weird Way

2002-03-06 Thread Jason Murray
> for ($i=1; $i < 12; $i++) { > echo state_$i; // This would print out either Yes No or Maybe. > } What you actually want is: for ($i=1; $i < 12; $i++) { $mystate = "state_".$i; echo $$mystate; // This would print out either Yes No or Maybe. } $$X tells PPH to use

[PHP] Calling a Variable in a weird Way

2002-03-06 Thread Phillip S. Baker
I am not sure I can articulate this well. But I will try. I want to combine either two variables or a variable and string to bring up the name of a previous variable name to display the data from the first. So in the first part I will have a listing that will look like // Submit etc

RE: [PHP] image creation to file

2002-03-06 Thread Tom Rogers
Hi You have to make sure that the user that your web server is running as has permission to write where you want to create the file. Tom At 12:56 PM 7/03/2002, Craig Westerman wrote: >Hi Tom, > >At first it didn't work. I had to create a blank png image in Photoshop and >uploaded it. I then c

[PHP] writing to a file

2002-03-06 Thread Marc-Andre Vallee
Hi, Here is a foo.txt file : name=foo age=100 sex=y I want to open the file, find the age line, and then replace the 100 with another value. The only way i see, is to rewrite the entire file Maybe this is a stupid question, but, i tried the online doc, and saw nothing about this T

[PHP] Is flock necessary?

2002-03-06 Thread jtjohnston
Group: Is flock even necessary? Allan: You look like you have Perled. It was necessary for Perl. Have you thought of MySQL instead? Alan McFarlane wrote: > I've just written a couple of simple routines which read an write small text > files to the server: > > function readData( $filename, &$dat

[PHP] Re: File/Directory Permissions

2002-03-06 Thread jtjohnston
I know you would want to code your chmod, but I use my CuteFTP window to auto-calculate which permissions I want to use/code. Not necessary on Windows, but on Unix it's an absolute. I use 644 (Read Owner, Read Group, Read Public,Write Owner, on a Unix server with no trouble for normal *.PHP files

Re: [PHP] include() and paths

2002-03-06 Thread michael kimsal
Patrick Teague wrote: > ok, so this makes alot of since... if I move my website from one server to > another server I'll have to go through every single file & redo the > directory structure? Isn't this the reason for the includes... so you > don't have to go through every single file to make c

[PHP] how to access an ini file using PHP

2002-03-06 Thread jtjohnston
[Posted and Replied] Salut Marc, You could find an ini file function. Something like: http://www.zend.com/apidoc/c1948.php http://ca.google.yahoo.com/bin/query_ca?p=how+to+access+an+ini+file+using+PHP&y=on&hc=0&hs=0 You would have to add one line: [MyData] name=foo age=100 sex=y I've done it

[PHP] $db_list = mysql_list_dbs

2002-03-06 Thread jtjohnston
mysql-list-dbs works but displays all databases. How do I limit to display those that a user has access rights to? http://www.php.net/manual/en/function.mysql-list-dbs.php $link = mysql_connect($server, $user, $password); $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_object($db_

Re: [PHP] include() and paths

2002-03-06 Thread Patrick Teague
ok, so this makes alot of since... if I move my website from one server to another server I'll have to go through every single file & redo the directory structure? Isn't this the reason for the includes... so you don't have to go through every single file to make changes? Maybe I should go bac

[PHP] Re: HELP UNIX vs Windows

2002-03-06 Thread michael kimsal
Christopher J. Crane wrote: > I am a PERL scripter and I am just getting into PHP. My first few pages are > simple but I am running into a few problems when changing OS. I included > below a piece of code that works fine in windows but not on a linux box. Not > sure what the differences would be..

[PHP] writing to a file

2002-03-06 Thread Marc-Andre Vallee
Hi, Here is a foo.txt file : name=foo age=100 sex=y I want to open the file, find the age line, and then replace the 100 with another value. The only way i see, is to rewrite the entire file Maybe this is a stupid question, but, i tried the online doc, and saw nothing about this T

[PHP] Re: Crontab

2002-03-06 Thread Philip Hallstrom
Try... lynx -dump -philip On Thu, 7 Mar 2002, Uma Shankari T. wrote: > > > Hello, > > I am facing some problem in the crontab...Can anyone tell me how to > solve this > > Actually i have written the php script to send mail to the users after a > week.In the crontab i have made a ent

[PHP] Re: header() and frames

2002-03-06 Thread Jim Winstead
Alan McFarlane <[EMAIL PROTECTED]> wrote: > header("location: index.php; target: _top"); header("Location: index.php"); header("Window-target: _top"); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A good PHP Shop

2002-03-06 Thread Peter Haywood
Hello,, I am looking at setting up PHP driven shop. Can anyone recommend one? Or which ones to stay away from? And why? I am reviewing phpShop at the moment, and it looks pretty nicely featured. Thanks, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] header() and frames

2002-03-06 Thread Alan McFarlane
I've got a site where the administration facilities use frames. Now, as the authentication expires after a fixed period of no use, I check to see if we are an authenticated user. If not, I would like to redirect them to a non-framed page. I'm trying something like: header("location: index.php; t

[PHP] Use of flock()

2002-03-06 Thread Alan McFarlane
I've just written a couple of simple routines which read an write small text files to the server: function readData( $filename, &$data ) { if (!$fd = @fopen($filename, "r")) { return false; } flock($fd, LOCK_SH); $data = fread($fd, filesize($filename)); fclose($fd); return true; } fun

[PHP] File/Directory Permissions

2002-03-06 Thread Alan McFarlane
I've seen and successfully used the built-in function 'mkdir()' on several occasions, but I am having trouble understanding the mode parameter. I've seen 0771, 0775 and 0777 used on several occasions but I am never quite sure what to use. Since I write and normally run scripts on a Windows platf

[PHP] Crontab

2002-03-06 Thread Uma Shankari T.
Hello, I am facing some problem in the crontab...Can anyone tell me how to solve this Actually i have written the php script to send mail to the users after a week.In the crontab i have made a entry so that it will trigger after 12.05. 5 0 * * * lynx http://info/php/MailForm.php

Re: [PHP] image creation to file

2002-03-06 Thread Jim Koutoumis
An alternative is to put the code into makeImage.php and then call it directly from your HTML page with your whenever you want that image displayed. Jim. "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > use ImagePNG($im,"test.png") > > To

RE: [PHP] image creation to file

2002-03-06 Thread Craig Westerman
Hi Tom, At first it didn't work. I had to create a blank png image in Photoshop and uploaded it. I then changed file permissions and then the image creation worked. Is there a way to write to test.png when it doesn't already exist and file permissions are set? Thanks for your help. Craig ><> [E

[PHP] HELP UNIX vs Windows

2002-03-06 Thread Christopher J. Crane
I am a PERL scripter and I am just getting into PHP. My first few pages are simple but I am running into a few problems when changing OS. I included below a piece of code that works fine in windows but not on a linux box. Not sure what the differences would be The problem is that on the windo

Re: [PHP] image creation to file

2002-03-06 Thread Tom Rogers
Hi use ImagePNG($im,"test.png") Tom At 12:17 PM 7/03/2002, Craig Westerman wrote: >The following creates a red rectangle png image > >Header("Content-Type: image/png"); >$im = ImageCreate(500, 75); >$red = ImageColorAllocate($im, 255, 0, 0); >ImageFill($im, 100, 100, $red); >ImagePNG($im); >?> >

[PHP] image creation to file

2002-03-06 Thread Craig Westerman
The following creates a red rectangle png image This sends created image to browser ImagePNG($im); How would I save this image as test.png to file to be hard coded in static web pages? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Spruce Tree???

2002-03-06 Thread Bradley Goldsmith
Hi All, Below is a bit of a post that I found in the archives... Is the Spruce tree implimentation available somewhere? Cheers, Brad From: Spruce Weber ([EMAIL PROTECTED]) Date: 09/21/00 I've created from scratch a tree class that utilizes templates. What makes thi

Re: [PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Tom Rogers
Hi Here is a script that will send any file for download, even .html files. I called it send.php usage is send.php?filename=file_to_send Looks weird but it works Tom At 06:31 AM 7/03/2002, Caleb Carvalho wrote: >Hi all, > >PHPBuilder.com Has an Easy File Upload Article, i find it to be ver

[PHP] Binary Tree Implimentation???

2002-03-06 Thread Bradley Goldsmith
Hi, Are there any binary tree implimentations avaliable for php4? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question on subscription

2002-03-06 Thread Zenith
Right, I'd like to post messag to this newsgroup. However, a auto reply message tell me to subscript the mailing list first. Hence, I join the mailing list, but I got near a hundred more mail than. Can I use this newgroup but don't recieve any mailing list mail from php.general mailinglist anym

[PHP] wordwrapping by width

2002-03-06 Thread Michael P. Carel
Hi to all, Just want to ask if there is any function that will force to wrap character by it width length and not by its character length. Wordwrap function can force wrapping by its character and not by its width. Please help. Regards, Mike -- PHP General Mailing List (http://www.php.

[PHP] Re: Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
Well, it sort of helps me (dang my quick sends :) He has a workaround... for anyone else that needs it. function my_eval($my_eval_str) { $eval_str = "?>"; $eval_str .= $my_eval_str; $eval_str .= " Looking around, I see someone else has submitted a feature request for >

[PHP] Re: Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
Looking around, I see someone else has submitted a feature request for this exact thing... http://bugs.php.net/bug.php?id=5435 Not that this helps *me*, but there's more than one of us :) On Wed, 6 Mar 2002, Philip Hallstrom wrote: > Hi - > Here's my dilema. > > include() will include a

Re: [PHP] preload dynamic image problems

2002-03-06 Thread Tom Rogers
Hi I use the following construct to avoid the "?" in the url which stops the image being cached... img src="http://www.domain.com.au/buttons/image.gif-System-3-ff-9-L/test"; then have a rewrite rule that redirects anything at /buttons/ to index.php This way I can send file name of the backgr

[PHP] Re: php-general Digest 31 Jan 2001 00:15:17 -0000 Issue 483

2002-03-06 Thread wesley

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
On Wed, Mar 06, 2002 at 06:02:15PM -0600, Craig Westerman wrote: > Would you explain what this line does? > >$out[$m[1]] = $m[2]; it assigns an entry to the output array. $m is populated by preg_match (where it was passed as the third argument) with the entire match in $m[0], the first paren

RE: [PHP] data from service into array

2002-03-06 Thread Craig Westerman
Thanks Jim. Works like a charm. Real sweet. Would you explain what this line does? $out[$m[1]] = $m[2]; Learning is a real blast. Wish I would have jumped in a couple of years ago. Thanks again. Craig ><> [EMAIL PROTECTED] -Original Message- From: Jim Winstead [mailto:[EMAIL PROTE

[PHP] Session Array Problems - Please Help

2002-03-06 Thread Jordan
I'm having issues registering and then updating a value for specific items in an array. I've read through the manual and MARC but I can't seem to find the right answer. Here's what I'm trying to do... Basic Backgroung: This is a "view cart" page. Depending on products that they have selected

[PHP] Looking for a combo of include() and eval() ????

2002-03-06 Thread Philip Hallstrom
Hi - Here's my dilema. include() will include a *file* and if there are PHP tags in it will run that PHP code, otherwise pass it along as is. eval() will parse a *string* of PHP code, but assumes it's valid PHP code. I want to something like this: - read a file that contains a mixture

[PHP] Stopping PHP from sending any headers

2002-03-06 Thread Nico Vrouwe
Hi there! I am wondering if there is any way to stop PHP from sending any headers at all. I know about php -q, but unfortunately I want it to work with the module version of PHP as well. What I do is collect all output with the ob_ functions, and send it to a pipe. And there the output is encode

Re: [PHP] Perl and PHP

2002-03-06 Thread Steve Cayford
If the value you want to send back to php is an integer you could just say exit $number; from perl and that will be put into your $var. Otherwise use exec() instead of system. exec("/path/to/perlscript.pl", $scriptOutputArray, $scriptExitValue); Anything that gets printed from the perl scrip

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
Craig Westerman <[EMAIL PROTECTED]> wrote: > I'm just now trying to learn PHP. I don't know ANYTHING about XML. I don't > even have any XML reference books yet. I did create a PHP script that is > usable (see below), but there has to be a more efficient way to do it with > PHP. I'll hunt up your p

RE: [PHP] data from service into array

2002-03-06 Thread Craig Westerman
>Is anything hindering you from using XML expat? You can use that to do it. >I already post a mail on this, search in the archive for xml related >posts. *** This is data from a data service. This is the ENTIRE source code of the URL they let m

[PHP] Re: How are they doing it?

2002-03-06 Thread Michael Kimsal
Gary wrote: > Hello Everyone. > I saw a Perl script today that the owners of the site can send an email > and pages would update automatically update. How are they accomplishing > this? > > Gary > HOW: The mail goes to an address, which is passed to procmail, which passes the mail info to

Re: [PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
$getme = $q; $qArray = explode(" ", $getme); $num = count($qArray); $sql = "SELECT * FROM `hyperlinks` WHERE 1"; for ($i = 0; $i < $num; $i++) if (strlen($qArray[$i]) > 0) $sql .= " AND `keywords` LIKE '%".$qArray[$i]."%'"; $sql .= " ORDER BY `id` ASC LIMIT 0, 30"; heh

Re: [PHP] Perl and PHP

2002-03-06 Thread lists
Ok, I got it to work.now how do I take a varaible back into PHP I do a $var = system("/path/to/cgi $varforCGI") and in the CGI script I do a print $varforPHP however it prints the varforPHP to the broswer, I need it saved it var Any (more) help would be great!! Michael On Wed, 6 Mar 2002

[PHP] How are they doing it?

2002-03-06 Thread Gary
Hello Everyone. I saw a Perl script today that the owners of the site can send an email and pages would update automatically update. How are they accomplishing this? Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a search array.

2002-03-06 Thread Hank Marquardt
I think it does what you want .. explode returns an array, so then you iterate the array and build your 'like' clauses. On Thu, Mar 07, 2002 at 10:33:54AM +1300, Philip J. Newman wrote: > So basicly what your saying is this ... > > I have to split the words into > > into the different veriables

[PHP] Re: Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
For anybody interested in this topic. I solved the prob with followin php script: $datei = "malaria_yellowfeewer.txt"; $line = file($datei); for($x=0;$x"; } */ // malaria if (substr($line[$x+3],0,4)== 'Mala'){ $malaria = str_replace("Malaria: ", "",$line[$x+3]); #insert into

RE: [PHP] passing large quantities of form data

2002-03-06 Thread Boaz Yahav
Why not split the form into several tags where only one of them is visible at a time. A "Next" button will move the users to the next part of the form (Next ). and a Previous button will allow them to go back to the previous part of the form and fix anything they like. This way, you only actually

Re: [PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
So basicly what your saying is this ... I have to split the words into into the different veriables ... count the veriables and then put them into a loop in the mysql thingie. $words = explode(" ",$keywords); don't give me veriabe1 verible2 etc - Original Message - From: "Hank Marquar

Re: [PHP] Evaluating code

2002-03-06 Thread Paul Roberts
You can do eval("?>$fp"); this will echo the evaluated $fp data. as you exit php mode before the eval, so any php in the file needs to be in tags you can also catch it with output buffering if you need to. Paul Roberts [EMAIL PROTECTED] - Original Message - F

[PHP] PHP output during longer program run times

2002-03-06 Thread Ando Saabas
Lets say i have a script that runs for a longer period of time, 1-10 minutes. Id like the script to give output as to what it is doing while it runs, but the problem is, that it wont print output on runtime, but it will output everything at the same time after it has completed the whole job. Even

RE: [PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Boaz Yahav
Search http://www.weberdev.com for "download". Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 10:31 PM To: [EMAIL PROTECTED] Sub

Re: [PHP] Help with a search array.

2002-03-06 Thread Hank Marquardt
$words = explode(" ",$keywords); foreach($words as $word) { Create your sql. } .. or $words[0] = 'first word', $words[1]='second word' That will do what you asked, though I suspect you'll be back when you want to add quoted phrases, such that you could have $q = green eggs "and

Re: [PHP] Makeing $string into CAPS

2002-03-06 Thread Jason Lotito
-- Original Message From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 4:18 PM Subject: [PHP] Makeing $string into CAPS How can I make a $string = hello into $string = HELLO?

[PHP] Makeing $string into CAPS

2002-03-06 Thread Philip J. Newman
How can I make a $string = hello into $string = HELLO? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] ImageTTFText function does not work with freetype 2 on Solaris 2.8

2002-03-06 Thread Ziying Sherwin
We installed php 4.1.2 with gd 2.0.1 and freetype 2.0.5 library support on our Solaris 2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() stopped to work properly with the new installation. No text generated in the image. When we tried to use cyberbit fonts to generate a UT

Re: [PHP] Perl and PHP

2002-03-06 Thread Steve Cayford
If you're running a perl script on the command line you would use /path/to/perl/script.pl value1 value2 value3 ... In your perl script $ARGV[1] should hold value1, $ARGV[2] should hold value2, etc. -Steve On Wednesday, March 6, 2002, at 02:48 PM, [EMAIL PROTECTED] wrote: > I need to pass a v

Re: [PHP] Perl and PHP

2002-03-06 Thread Chris Boget
> I need to pass a variable to Perl from a PHP script. I am somewhat know > PHP but I do NOT know perlI am running my perl script off of the > command line. I tried /path/to/somewhere/script.pl?var=var > but it did not work. > I would love any help you could provide me it would be /path/

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Jim Koutoumis
Not without seeing some html code. If you haven't altered any of the other font/color settings I'd have thought they'd all be the same color, black. Look up some info on 'Cascaded Style Sheets',... then it'd be as simple as and all of the text/alignment, etc,.. takes the settings of whatever is

[PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
heres my example: I want to break up the search words in a string. eg: $q = green eggs would like that to be $q1 = green $q2 = eggs ... then the mysql process $sql = ""; for ($i = 0; $i < $num; $i++) if (strlen($getme_arr[$i]) > 0) $sql .= " '%".$getme_arr[$i]."%'";

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
Yeah it is getting really off the topic i will email you in private.. :) Gurhan -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Difficulty on how to extract data out of a text w

[PHP] Perl and PHP

2002-03-06 Thread lists
I need to pass a variable to Perl from a PHP script. I am somewhat know PHP but I do NOT know perlI am running my perl script off of the command line. I tried /path/to/somewhere/script.pl?var=var but it did not work. I would love any help you could provide me Thanks, Michael -- PHP G

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread J Smith
An easier way to do it might be to use HTTP authentication with apache using .htaccess and .htpasswd files, which can be placed in the secure directories. (Or use one global .htpasswd file and have all .htaccess files point to it.) Another possibility would be to set up two PHP scripts, one b

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread Michael Kimsal
John Coggeshall wrote: > Hey all.. > > I've got a question -- I'd like to restrict access to entire directories > based on if the user has been authenticated or not. Basically, I'd like > to set up a auto-include *FROM APACHE* to run a PHP script prior to > sending any documents what-so-ever and

[PHP] Evaluating code

2002-03-06 Thread Ernesto
Hi, I have code stored on a server which I retrieve via fsockopen() and put it into a variable (It's like if it were on a database). Now, I want to eval that code, but eval() won't work because it has HTML and PHP mixed, with and everything. I know I can eval this code saving it to a file an

[PHP] PHP-Based Authentication Security?

2002-03-06 Thread Coggeshall, John
Hey all.. I've got a question -- I'd like to restrict access to entire directories based on if the user has been authenticated or not. Basically, I'd like to set up a auto-include *FROM APACHE* to run a PHP script prior to sending any documents what-so-ever and only send the requested document i

[PHP] Re: FYI Using Qmail & PHP

2002-03-06 Thread Michael Kimsal
Steven Walker wrote: > For some reason (I don't know why) qmail doesn't like the CRLF. > Probably because Dan Bernstein didn't invent it. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPBuilder.com Has an Easy File Upload Article, does any1 know

2002-03-06 Thread Caleb Carvalho
Hi all, PHPBuilder.com Has an Easy File Upload Article, i find it to be very useful and helpful for my situation, does any one know of a similar but for download the uploaded file? I would like to upload and download file in my server directory using php, please, please let me know of any art

[PHP] Re: [PHP-DB] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
Hello Gurhan, thanx for your help. You are right, the file is not consistent. But some things are. For example that every line contains one data set and that every line begins with the name of the column I would like to have followed by a : I could yous win32, linux rh72 and osx to do this. The

[PHP] FYI Using Qmail & PHP

2002-03-06 Thread Steven Walker
To whom it may concern, I recently had an ordeal trying to get PHP generated email to work using with qmail. After switching web servers, suddenly my automated emails were not working, coming out blank or with mime attachments. If anybody runs into the problem, the fix is quite simple (but obs

[PHP] PHP and Majordomo

2002-03-06 Thread Phillip S. Baker
Greetings Folks, Is there a PHP application out there that handles admin functions to majardomo email lists? If so where can I get something like that? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] COM and php.... Several issues....

2002-03-06 Thread jeremy spielmann
I've read through most of the documentation on how to use COM to create MS Word documents via PHP, but I'm still having some issues that I can't seem to find any help on. CODE: Version)\n"; $word->visible = 1 ; $word->Documents->Add(); $word->Selection->Typetext("This is a test"); ?> RE

[PHP] preload dynamic image problems

2002-03-06 Thread Adrian Murphy
This seems strange to me but i promise it's happening. I'm dynamically creating images for a page ,calling them so: I'm also preloading the mouseover versions. the problem is that the images are not being preloaded: javascript problem you say? the strange thing is that when i use the source of th

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
A few things here. Is this the full code you are using? First thing however is that you have to specifically assign values for a session variable. It is simply not enough to register the session variable. So if you >session_register("login_username"); And echo $login_username it will print not

[PHP] Multiple Time Stamps

2002-03-06 Thread James Taylor
I'm working on a project for a friend of mine that is basically a web log. When he makes a post, it inserts the data into a MySQL database, and also inserts a timestamp which is data("g:ia") (shows hh:mm am/pm). It then just displays all of the posts with the timestamps underneath them. Well

[PHP] ODBC Cobol Driver

2002-03-06 Thread William Lovaton
Hello people, I would like to use a Cobol database with PHP... it's urgente to get the information contained in that DB. I need the ODBC driver for cobol, it doesn't care the operating system, it could be Linux, Windows 2000 or Windows 98. Especifically, I have a .NDX file (indexed i guess) but

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Matthew Darcy
Hi Phil thanks for taking the time to reply back. allow me to share my code (still learning so be gentle.) I register 2 session vars from 2 input boxes. I then select * from the user table where the to variables match (username and password) if they match I want to register the auth_level field

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
Hi Andy, The little snippet you showed from the text file made me think that the data layout for each country is not consistent. For example: For Algeria there is the country name and right underneath goes the info about yellow fever and malaria as opposed to American Samoa where underneath the c

[PHP] Arrays/OOP

2002-03-06 Thread Joshua E Minnie
This is for anyone who was following this post, I found a work-around for the problem I was having with my array of objects. The original code looked like this: function getEvents($filename) { //string $filename $event_list = array(); $event_object = new event(); $i = 0; @ $fp = fopen($

Re: [PHP] contents of fetch array into a string

2002-03-06 Thread Steve Cayford
On Wednesday, March 6, 2002, at 12:13 PM, Kris Vose wrote: > I have a problem with reading the contents of $r[1] into a string > called = $mail. Does anyone have any suggestions? Any help is greatly > appreciated. > > Kris Vose > > > if ($czero != "") > { > > $t = mysql_query("SELECT * FROM

Re: [PHP] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Erik Price
On Wednesday, March 6, 2002, at 01:49 PM, Andy wrote: > I want to include some data into my website which covers malaria and > yellow > feewer related to each country. To each his own, I suppose... > Now I have a table in a MySQL db naming all those countries. The goal > is to > extract the

[PHP] Difficulty on how to extract data out of a text with string functions.

2002-03-06 Thread Andy
Hi there, I want to include some data into my website which covers malaria and yellow feewer related to each country. On the WHO website are all the infos I need. Their webmaster told me that unfortunatelly there is no db behind that and everything gos with html files. But I am free to extract th

Re: RE: [PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, I typed in 'ifconfig' and it doesn't work? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Good news... > > My next would be to telnet to the server once more and run > 'ifconfig' > (This gives a printout of current InterFace CONFIGurations) > > Let me know what tha

Re: [PHP] Dan...

2002-03-06 Thread Andrew Brampton
Can you please move your private conversation with Dan off the list... Send a email direct to him, Andrew - Original Message - From: "GENESiS DESiGNS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 11:09 AM Subject: [PHP] Dan... > Dan, > > I tried using the

[PHP] Dan...

2002-03-06 Thread GENESiS DESiGNS
Dan, I tried using the username and password that vcn gave me for mysql and I used the host name gdesigns.vcn.com and it connected (with the mysql front thing), but it wont connect with my php script? Why? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General

[PHP] contents of fetch array into a string

2002-03-06 Thread Kris Vose
I have a problem with reading the contents of $r[1] into a string called = $mail. Does anyone have any suggestions? Any help is greatly appreciated. Kris Vose if ($czero != "") { $t = mysql_query("SELECT * FROM AddExisting"); $number_of_customers = count($t); while($r = mysql_fetch_

Re: RE: [PHP] What do you mean?

2002-03-06 Thread GENESiS DESiGNS
Dan, The error is: Couldn't connect to MySQL. -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > I was asking so I could visit it, and see if there are any error messages. > The page that asks you for the mysql hostname, what is the name of that page > (eg index.php install.php etc)

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread Phillip S. Baker
What exactly are you trying to accomplish here? In my script I have a login form. On the valdation script all my session vars are registered. I run a script to check to see if the username and password are auth. If they are I then run some scripts to set the values of the various session variabl

RE: [PHP] registering a session variable from a select * query.

2002-03-06 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Any updates / takers on this problem ?? thanks, Matt. -Original Message- From: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:04 PM To: '[EMAIL PROTECTED]' Subject: [PHP] registering a session variable from a select * query. h

[PHP] What do you mean?

2002-03-06 Thread GENESiS DESiGNS
Dan, I already called my host and they are working on it. What do you mean by 'What page is it'? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok, we have to solve that problem first. > You see, linux and mysql have different 'users' > You can be gdesigns on the Linux b

Re: [PHP] How does attachment works with sybase?

2002-03-06 Thread William Lovaton
mmm... an attachment could be anything, a text file, a picture, a song, etc. May be you will need a BLOB. Look for the BLOB (at least in Oracle) data type in the SyBase documentation William. El mié, 06-03-2002 a las 10:47, Caleb Carvalho escribió: > Hi, > > How does attachment works with sy

[PHP] How it went...

2002-03-06 Thread GENESiS DESiGNS
Dan, After I entered the first line it said 'Enter Password'. I tried a couple diffent passwords, but no luck. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok, thats good, we know mysql server is up and you should be feeling a > little more comfortable. > Now

[PHP] Re: Create Word Document from PHP??

2002-03-06 Thread jeremy spielmann
Thanks for the spell check... I'm sure it will come in handy once I get this thing to work. I've adjusted my permissions for the COM permissions on the server. I have given Internet Users access to open/close/read/create the word file. Is there anything else that needs to be done?? Here's m

[PHP] RE:Re: [PHP] OK Dan!

2002-03-06 Thread GENESiS DESiGNS
Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com > Ok you tried 209.193.72.9, what does it say? > Use you

RE: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Jon Haworth
> > My wife knows I spend too much time in here. > What's a wife? // Wife class class Wife extends Human () { // Constructor function Wife () { if ($developer->priorities[0] == "usenet") die ("Can't create wife: must be higher priority than usenet"); } } HTH Jon -- PHP Ge

  1   2   >