[PHP] PHP, SWF and XML

2001-10-25 Thread Michiel van Heusden
I needto use php to open *.swf, and then send some xml code to it. anyone knows if this is possible, and if so, how to send code (via POST) to the *.swf after opening it? thnx Michiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] What is the best way to do this...

2001-10-25 Thread
From: DeloX <[EMAIL PROTECTED]> Date: Fri, Oct 26, 2001 at 03:18:33AM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] What is the best way to do this... > Let s say i have 5 pages on my site. I want some content to appear on each > page so that when i want to change that content on all the

Re: [PHP] What is the best way to do this...

2001-10-25 Thread David Robley
On Fri, 26 Oct 2001 16:48, DeloX wrote: > Let s say i have 5 pages on my site. I want some content to appear on > each page so that when i want to change that content on all the pages i > have only one place to modify. I used to write that content in a .txt > file and having it read each time any

[PHP] MySQL4

2001-10-25 Thread Leon Mergen
Hello, Just curious, before I get into the heat, but did anyone who already has installed MySQL 4 had any problems compiling PHP? Thanks in advance, Leon Mergen

[PHP] What is the best way to do this...

2001-10-25 Thread DeloX
Let s say i have 5 pages on my site. I want some content to appear on each page so that when i want to change that content on all the pages i have only one place to modify. I used to write that content in a .txt file and having it read each time any of the 5 pages was loaded. So i had to modify th

[PHP] fsockopen and https

2001-10-25 Thread John
Hello All, I am new to this list and am sure most of you are tired of this subject appearing. Please forgive me as I am becoming tired of searching archives and the internet and I am hoping someone here can help me. I am using fsockopen to post data to a dll on a SSL server. I setup the socket

[PHP] problem with a while loop

2001-10-25 Thread Richard Kurth
I am trying to get the data out of the while loop if I echo $email inside the } it gives me all of the data but if I echo it out side of the loop it only gives me one record even though I know there is more. How can I get this to work $query = "SELECT * FROM members Where Company LIKE '%$sea

RE: [PHP] security

2001-10-25 Thread Joseph Blythe
ok thanks, think I fall in that category too, but doing my best to change it :) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, 26 October 2001 4:05 PM To: Joseph Blythe Cc: [EMAIL PROTECTED] Subject: Re: [PHP] security Has been around for quite a while

RE: [PHP] tail a file

2001-10-25 Thread Martin Towell
if you're using unix, there's the "tail" command: $results\n"; ?> -Original Message- From: Yamin Prabudy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 4:08 PM To: [EMAIL PROTECTED] Subject: [PHP] tail a file Hi there I need help here I got a file say it's a logs file and ke

Re: [PHP] security

2001-10-25 Thread Rasmus Lerdorf
Has been around for quite a while and pretty much all the points are address right in the PHP documentation at http://php.net/security which is a much more informed source to study. The guy who wrote that scarlet report only had a very thin grasp of the concepts. -Rasmus On Fri, 26 Oct 2001,

[PHP] tail a file

2001-10-25 Thread Yamin Prabudy
Hi there I need help here I got a file say it's a logs file and keep update ever changes I need to tail this files and pharse it into web, so I can see this the update without login into server (jst thru web browser ) how can i do this Thanks for Help -- PHP General Mailing List (http://www.p

Re: [PHP] PHP->ASP

2001-10-25 Thread Tshering Norbu
Is the PHP code you provided below working, I need something like than and i wonder if i could use it. NOBBY (ps: sorry, i can't show u ASP equiv of it coz I do not know) - Original Message - From: MrBaseball34 <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001

[PHP] security

2001-10-25 Thread Joseph Blythe
just stummbled across this great study by Shaun Clowes on php security, this is just the kind of information I have been looking for, thought others could also benefit from it. http://www.securereality.com.au/studyinscarlet.txt found during google search: PHP Security cheers, joseph -- PHP

[PHP] error compiling LDAP support into PHP, causes Apache to crash.

2001-10-25 Thread Scott Singleton
Could someone glance at my situation and the enclosed PHP error log snippet and give me an idea as to where to procede? I'm pretty stuck. Stats: OS: Linux (RH 7.1) Apache 3.19 Have latest openLDAP and Berkeley DB 3 Installed with no build errors (/usr/local;/usr/local/BerkeleyDB.3.3) My PHP c

RE: [PHP] Help, need the scripts of processing the to-be-confirmed email.

2001-10-25 Thread Martin Towell
Question 2: you'll notice the 4th parameter to mail() is the headers to send. You can use something like: "From: Name <[EMAIL PROTECTED]>\r\n" or "From: Name <[EMAIL PROTECTED]>\r\nReply-To: Name <[EMAIL PROTECTED]>\r\n" (can't remember if this the right format for the name/email address, but thos

RE: [PHP] Re: authentication help

2001-10-25 Thread Martin Towell
If you wanted to check for more than one username/password set, then extend this line if ($userid == "somename" && $password == "somepassword") { to something like if (($userid == "somename1" && $password == "somepassword1") || ($userid == "somename2" && $password == "somepassword2") ||

RE: [PHP] editor for working with php

2001-10-25 Thread Joseph Blythe
active states komodo (www.activestate.com) or ZendIDE 2 (www.zend.com) I have used both and are really good as you can debug both local and remote scripts both are commercial though, komodo is free for non-commercial use. I believe you can beta test them both (ZendIDE2 requires you to be ZPal) :)

[PHP] Help, need the scripts of processing the to-be-confirmed email.

2001-10-25 Thread Web user
I need to some help about example scripts on: Question 1: How to process the confirmation email by clicking the url given in the email and by replying the email. Question 2: I know if using mail(), the "From" field of the mail sent out is always the web host server's mail sendout server, not from

Re: [PHP] editor for working with php

2001-10-25 Thread David Robley
On Fri, 26 Oct 2001 13:59, Kurt Lieber wrote: > Oh please please please check the archives. This thread has been > thrashed around and beat until it's nothing more than a bloody mass of > quivering flesh... > > http://marc.theaimsgroup.com/?l=php-general > > On Thursday 25 October 2001 21:10, Ray

Re: [PHP] editor for working with php

2001-10-25 Thread Kurt Lieber
Oh please please please check the archives. This thread has been thrashed around and beat until it's nothing more than a bloody mass of quivering flesh... http://marc.theaimsgroup.com/?l=php-general On Thursday 25 October 2001 21:10, Ray Todd Stevens wrote: > I ahve been using go-live (4.0) t

[PHP] editor for working with php

2001-10-25 Thread Ray Todd Stevens
I ahve been using go-live (4.0) to edit pages containing php scripts. this is not really working well. Is there a better way or a better editor to use for this? Ray Todd Stevens Specialists in Network and Security Consul

Re: [PHP] authentication help

2001-10-25 Thread Kodrik
"thename" and $pass<>"thepass") { tothis } else { dothat } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: authentication help

2001-10-25 Thread Gaylen Fraley
Here would be one of many ways. This assumes that login.php and index.php are in the same directory. login.php User Password -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v2.1 Guestbook http://www.gaylenandmargie.com/phpwebsite "Norman Zhang" <[EMAIL PROTE

[PHP] Does unset() help performance?

2001-10-25 Thread Julio Nobrega
Hi All, If I unset variables/arrays/etc, that I will not use on my script anymore, should I expect a performance increase? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread Jim Lucas
try this ", $output); echo $output; ?> make sure you put the correct paths to the .exe and file otherwise it will think that it is realtive to where you are in the file system. Jim - Original Message - From: "John A. Grant" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Oc

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread David Robley
On Thu, 25 Oct 2001 22:37, John A. Grant wrote: > "John A. Grant" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I've installed ActivePerl, which gives me a way to run .pl files, > > i.e. : > > c:\> perl someprogram.pl > > > > Does the Win32 php insta

[PHP] Microsoft Access

2001-10-25 Thread Alex Shi
Hi Folks, Does any one here know how to access MS Access file in PHP? And is it possible to do it on a platform other than Window NT/2K, such as Linux or FreeBSD? Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] aaaaaaaaaaaaaaa

2001-10-25 Thread Lasse
"Douglas Winslow" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Franco Breciano wrote: > > > a > > > for($i=0;$i<13;$i++){echo chr(97+($i?3:0));} LOL! Brilliant... :-) -- Lasse -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
"Jim Lucas" <[EMAIL PROTECTED]> wrote: > the bad thing about using the "#&160", mac user won't be able to view this. > mac uses a different ASCII set 160 isn't a space :) Jim, Thanks for the info. I'll definitely have to research this further. I had been using   since '96 and only started us

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
"Jim Lucas" <[EMAIL PROTECTED]> wrote: > the bad thing about using the "#&160", mac user won't be able to view this. > mac uses a different ASCII set 160 isn't a space :) Jim, Thanks for the info. I didn't realize that. I actually recently started using that instead of   a few months ago b/c

Re: [PHP] Displaying images in another page

2001-10-25 Thread Matt McClanahan
On Thu, Oct 25, 2001 at 10:30:24PM +0200, Rudi Ahlers wrote: > I would like to setup a banned ad server, and I will need the images > to be displayed in standard html pages, where the users don't have > php access. Thus, they should be able to call up the image from a > normal html page, ie: src

Re: [PHP] Truncating Lines

2001-10-25 Thread brett
> > I have the following code, which reads in an html file > > > > $fd = fopen("somefile.html", "r"); > > while (!feof($fd)) { > > $buffer = fgets($fd, 4096); > > $body .= $buffer; > > } > > fclose($fd); > > > > I am then mailing this: > > > > if (mail($username." <".$email.">", $mailsubje

Re: [PHP] Truncating Lines

2001-10-25 Thread DL Neil
Please define "long", and perhaps think of that in the context of the RFC ?822 is it? =dn - Original Message - From: "BT News" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 25 October 2001 17:38 Subject: [PHP] Truncating Lines > Hi, > > I have the following code, which reads in an

Re: [PHP] PHP File not found

2001-10-25 Thread DL Neil
> I have just set up PHP on my webserver (IIS 4 on NT4). > I have set up the script mapping so that I can save php files as .html and > php processes them. > > This works fine until someone goes to a page that doesn't exist - instead of > getting the customised error 404 page (i.e. the page you r

[PHP] New to PHP need a quick training program?

2001-10-25 Thread Ben Clumeck
I am new to PHP and have been experimenting with it for couple of weeks now. I need to take a course that can make me very proficient in a short amount of time. I am in Orange County, CA. Anywhere in Southern California would be fine. Please let me know suggestions. -- PHP General Mailing L

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Jim Lucas
the bad thing about using the "#&160", mac user won't be able to view this. mac uses a different ASCII set 160 isn't a space :) Jim - Original Message - From: "Steve Werby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 4:06 PM Subject:

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread DL Neil
> "John A. Grant" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I've installed ActivePerl, which gives me a way to run .pl files, > > i.e. : > > c:\> perl someprogram.pl > > > > Does the Win32 php installation give me a command-line > > interpreter lik

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
"Marcus James Christian" <[EMAIL PROTECTED]> wrote: > How do you call for a space in an email put out by mail(); ? Similar > to the way we call \n newlines with backslash n?? Within an email create a space by typing " " or ' '. If you want 10 spaces do str_repeat( ' ', 10 ). If you wanted to

Re: [PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Jim Lucas
function foo($arg1, $arg2="") // or you can replace the "" with array() { blah } Jim - Original Message - From: "Kurt Lieber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 3:57 PM Subject: [PHP] account for missing/optional arguments in functions? >

[PHP] New to PHP need a quick training program?

2001-10-25 Thread Ben Clumeck
I am new to PHP and have been experimenting with it for couple of weeks now. I need to take a course that can make me very proficient in a short amount of time. I am in Orange County, CA. Anywhere in Southern California would be fine. Please let me know suggestions. -- PHP General Mailing L

RE: [PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Johnson, Kirk
Two php functions may help, func_num_args() and func_get_args(). For example, $numargs = func_num_args(); $arg_list = func_get_args(); Kirk > -Original Message- > From: Kurt Lieber [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 4:58 PM > To: [EMAIL PROTECTED] > Subjec

[PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Kurt Lieber
Is it possible to account/trap missing arguments in functions? For instance, say I have a function foo: function foo($arg1,$arg2) { blah } If someone calls that function as: foo($arg1); Can I somehow code around the fact that $arg2 is missing? I've tried: function foo($arg1,$arg2) { if

Re: [PHP] Re: Loading message

2001-10-25 Thread DL Neil
> I suspect that PHP does all of it's work and, only when complete, will it > send the generated html to the client. > > No matter what you try and do there's no way you can output the progress of > your script to the browser while it is still being parsed. > > I could be wrong, but this is my und

[PHP] Multiple Includes

2001-10-25 Thread Andy Muth
I was just curious what sort of performance hit is taken with multiple includes per page? Or maybe if there was a way to cache includes? Thanks Andy Muth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jim Lucas
are you trying to have one column not be a dup or a combination of columns? jim - Original Message - From: "Jeff Gannaway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 2:31 PM Subject: [PHP] Setting A MySQL Column to NO DUPLICATES > Does anyone know how t

Re: [PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Steve Cayford
I think you want UNIQUE. create table sometable ( somecolumn char(40), someothercolum int, unique somecolumn ) ...something like that. I haven't messed with it much. -Steve On Thursday, October 25, 2001, at 04:31 PM, Jeff Gannaway wrote: > Does anyone know how to set

[PHP] Re: Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jason Wood
I'm not sure if you can... What I usually do is do a query to see if there's already an entry there, and display an error message if there is. Another thing to you can do is allow duplicate entries, and use the DISTINCT option in the SELECT statement. This wouldnt be as efficient, so i'd try the

Re: [PHP] Looking for a text editor for Mac

2001-10-25 Thread Richard Baskett
I use BBEdit and because of the syntax highlighting for many code languages, grep search and replace, multifile search and replace, plus many other features I find it to be the best code editor out there. I have also heard it said that it is the best editor out there period, from multiple sources

[PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jeff Gannaway
Does anyone know how to set a column in a MySQL table to disallow any duplicate entries. I've already got a PRIMARY KEY defined for this table. I tried setting the other field to a MUL KEY, hoping that it would not permit duplicates, but it does. I've searched the MySQL docs without success. I

[PHP] Zork!

2001-10-25 Thread Kodrik
I wrote a php pipe that allows people to play Zork from their browser http://phpzork.com Zork is a 20 years old command based adventure games. One of the first and most popular. It's source code was released. Many of us here should remember it. For those who don't know how to play, just type y

[PHP] PHP Session song...

2001-10-25 Thread German Pablo Gentile
I get that error when i try to start a session. Warning: Cannot send session cookie - headers already sent by (output started at What is happen? Germán Pablo Gentile IT Manager Horizonte Soluciones de IT www.horizonteit.com.ar [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] php/Oracle db connection

2001-10-25 Thread Andrew Hill
Toni, Note the "Unknown host". Check your odbc.ini for the Host field of the DSN you are using. Ensure it's resolvable. Try an IP address instead maybe. Also, set the variables in the environment and see if your DSN works in odbctest without PHP in the mix. Best regards, Andrew Hill Director o

Re: [PHP] php/Oracle db connection

2001-10-25 Thread Frewuill Rodriguez
Check data1.tsl.state.tx.us it I can't even ping it.. try using IP adress instead or check that name. - Original Message - From: "toni baker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 4:56 PM Subject: [PHP] php/Oracle db connection > I have successfull

[PHP] php/Oracle db connection

2001-10-25 Thread toni baker
I have successfully compiled php with linked iODBC driver manager as an Apache shared module. However when trying to connect php to the Oracle database I get an error. The error and the sample connection code is below. Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host, SQL state 08004 in SQ

[PHP] Displaying images in another page

2001-10-25 Thread Rudi Ahlers
Hi I would like to setup a banned ad server, and I will need the images to be displayed in standard html pages, where the users don't have php access. Thus, they should be able to call up the image from a normal html page, ie: http://www.adserv.webonline.co.za/phpads.php3?what=main";> Can anyone

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
I don't think so, but if I have to suspect my code or a bug in php, I'll suspect my code. :) I did a quick "if (isset($companyID_string)) { print "true"; } else { print "false";} and that didn't turn up anything, but I didn't spend a whole lot of effort on it. Like I said, I'm pretty sure I s

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Jim Lucas
what I guessed was that you were using the variables somewhere else in the script above this code. then you were adding on to them again. without resetting them to blank. Are you using these vars somewhere else (above this) in your code? jim - Original Message - From: "Kurt Lieber" <[E

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
OK, so I defined the variables before using them and that solved the problem. (Thanks!) I'm still curious as to why not defining them ahead of time would cause the data within each string to get duplicated. In other words, if the query results are "a,b,c,d", then by not defining the variable

Re: [PHP] how do i give optional arguments to functions??

2001-10-25 Thread Jason G.
Umm... function top($image = '') { echo("bla bla $image bla"); } Might need to use an IF (because of having 2 spaces if the image is empty) -Jason Garber IonZoft.com At 10:14 AM 10/24/2001 -0700, Richard S. Crawford wrote: >function top ($image) { > if ($image) echo "blah bla

Re: [PHP] Looking for a text editor for Mac

2001-10-25 Thread Thomas Deliduka
On 10/25/2001 3:51 PM this was written: > Out of curiosity, what's wrong with BBEdit, that'd be my choice. It has > color syntax highlighting for PHP, and is IMHO, the best editor on MacOS. > Another one I used briefly was Alpha. So, if BBEdit isn't to your liking, > maybe check out Alpha. I d

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Jim Lucas
I notice that you are concatinating then each time. try setting them to ="" before using them $companyID_string = ""; $companyName_string = ""; then: while() { $companyID_string .= "," . $query_data[0]; $companyName_string .= "," . $query_data[1]; } Jim

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Mike Eheler
Trying using mysql_fetch_array, and using the field names. This is the recommended behaviour in PHP4: $result = mysql_query($myQuery) //$myQuery gets defined earlier $resultCount = mysql_num_rows($result); $companyID = array(); while($query_data = mysql_fetch_

RE: [PHP] Looking for a text editor for Mac

2001-10-25 Thread Chris Bailey
Out of curiosity, what's wrong with BBEdit, that'd be my choice. It has color syntax highlighting for PHP, and is IMHO, the best editor on MacOS. Another one I used briefly was Alpha. So, if BBEdit isn't to your liking, maybe check out Alpha. I don't know if Alpha is still being kept up or not,

[PHP] while() looping over query results twice?

2001-10-25 Thread Kurt Lieber
I'm executing a query that returns some a UID and a company name. I'm using the following code to loop over that query result set: $result = mysql_query($myQuery) //$myQuery gets defined earlier $resultCount = mysql_num_rows($result); $companyID = array(); wh

RE: [PHP] Re: URL variables

2001-10-25 Thread Boget, Chris
> > the only way you may go wrong with this is with scoping, > > $yourvar isn't available in a function inside yourpage.php. > It can be, though. You just need to tell the function to look for the > global variable $yourvar: > function yourFunction() { > global $yourvar; > ... > } or f

[PHP] upload file using socket/fopen

2001-10-25 Thread speedfreak
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

Re: [PHP] Making a string from an Array

2001-10-25 Thread Jim Lucas
try this out $words = explode(" ", $keywordText); $compare = array('on', 'the', 'in', 'at', 'is', 'it'); foreach ($words AS $value) { if (in_array($value, $compare)) { $ignored[] = $value; } else { $included[] = $value; } } Jim Lucas - Original Message

Re: [PHP] function names

2001-10-25 Thread Steve Cayford
On Thursday, October 25, 2001, at 02:08 PM, Martín Marqués wrote: > On Jue 25 Oct 2001 15:36, you wrote: >> Hello php-general, >> >> I have such code: >> >> class A >> { >> var $xxx; >> >> function print() >> { >> echo $xxx; > > $xxx is internal to

[PHP] Upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

[PHP] How upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

[PHP] Re: URL variables

2001-10-25 Thread Mike Frazer
> If the link is > > Then in yourpage.php ... > > echo($yourvar); > > the only way you may go wrong with this is with scoping, $yourvar isn't > available in a function inside yourpage.php. It can be, though. You just need to tell the function to look for the global variable $yourvar: function

[PHP] Looking for a text editor for Mac

2001-10-25 Thread Ladonna Green
Does anyone know of a text editor for PHP similar to BBedit for the Mac 9.0 or better platform? -- Ladonna Everett-Green O'Connors Church Goods, Inc. 3720 El Cajon Blvd San Diego, CA 92105 800-854-6567 619-283-2076 fax [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http:/

[PHP] Re: function names

2001-10-25 Thread Mike Frazer
Actually your problem is with the function itself. In order for it to work you need to use the "this" keyword: class A { var $xxx; function print() { echo $this->xxx; } } You may also run into problems with calling the function print(), I don't know for sure. But the probl

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Kurt Lieber
On Thursday 25 October 2001 11:41, you wrote: > How do I set permissions for a certain user (ie nobody) for a directory? > If I do this, won't anyone on teh server be able to write to that > directory? If you're going to start messing around with *nix permissions, you really, really need to have

Re: [PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
An update... I had register_globals turned off. Now that I've turned register_globals on and changed my references from $HTTP_SESSION_VARS['ucAuthoUser'] to $ucAuthoUser it works as I expect. I'm not real happy with having register_globals on, though, and I'd like to figure out what I was doin

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Jeff Gannaway
How do I set permissions for a certain user (ie nobody) for a directory? If I do this, won't anyone on teh server be able to write to that directory? Thanks, Jeff At 10:39 AM 10/25/01 -0700, Kurt Lieber wrote: >On Thursday 25 October 2001 10:08, you wrote: >> > $GalleryPHPName = "Pins"; >> mkdir

[PHP] function names

2001-10-25 Thread Olexandr Vynnychenko
Hello php-general, I have such code: class A { var $xxx; function print() { echo $xxx; } } And that's what I get: "Parse error: parse error, expecting `T_STRING' in xxx.php on line nn" Php doesn't let any function or class membe

[PHP] where can i found us this and free in php +mysql

2001-10-25 Thread Alawi
I want script for maillists as yahoo groups where i can found as this script

[PHP] DTD validation with DOM parser

2001-10-25 Thread Vikram Vaswani
Hi all, Anyone know how to validate an XML document with the PHP DOM/libxml parser? Code would be helpful. :) TIA, Vikram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

Re: [PHP] www.php.net offline for a bit

2001-10-25 Thread Mike Eheler
Don't forget www.ca.php.net, for us Canadian PHP junkies. Mike Rasmus Lerdorf wrote: >Some servers are being moved around. Use a mirror. Here are some for you >to try: > >us.php.net >us2.php.net >rack1.php.net >uk.php.net >dk.php.net >dk2.php.net > >Any one of those will have a full mirror l

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Chuck Theobald
Jeff, If this script is running as nobody, or some other low-class user, and the permissions on the directory in which you are attempting to create a sub-directory do not allow the creation of the sub-directory by this user, then mkdir will fail. Say your script resides in 'php-stuff' with permi

[PHP] www.php.net offline for a bit

2001-10-25 Thread Rasmus Lerdorf
Some servers are being moved around. Use a mirror. Here are some for you to try: us.php.net us2.php.net rack1.php.net uk.php.net dk.php.net dk2.php.net Any one of those will have a full mirror listing available for you so you can find one closer to you. www.php.net will be back shortly. -R

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Mike Eheler
a) check to see if the user that apache is running as has access to the directory you're trying to write to. b) try removing the quotes around 0775 Mike Jeff Gannaway wrote: >$GalleryPHPName = "Pins"; >mkdir ("../$GalleryPHPName", "0775"); >?> > >Results in... > >MkDir failed (Permission denie

[PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Marcus James Christian
Hello, How do you call for a space in an email put out by mail(); ? Similar to the way we call \n newlines with backslash n?? Thanks, Marcus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

RE: [PHP] help!! ¡¡ayuda!!

2001-10-25 Thread Mark Roedel
> -Original Message- > From: Sebas [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 12:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP] help!! ¡¡ayuda!! > > > I need to open a dbase file, so I use the "dbase_open" > function and then I compile it but it tells me > > Fa

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Kurt Lieber
On Thursday 25 October 2001 10:08, you wrote: > $GalleryPHPName = "Pins"; > mkdir ("../$GalleryPHPName", "0775"); > ?> > > Results in... > > MkDir failed (Permission denied) When you use a file-related command (fopen, mkdir, etc.) you're executing that command under the same user-context that a

[PHP] Problem accessing database using php

2001-10-25 Thread Sebas
I need to open a dbase file, so I use the "dbase_open" function and then I compile it but it tells me Fatal error: Call to undefined function: dbase_open() it seems like this function does not exists!.Does anybody could help me? Thanks [EMAIL PROTECTED]

[PHP] Re: Truncating Lines

2001-10-25 Thread Mike Frazer
Try the following: $body = join('', file("somefile.html")); That one line of code will help you avoid the idea of a buffer; it reads clear through to the newline and splits it there, dumping each line into an element of an array. join() just puts it all into one single variable for output. Mik

[PHP] help!! ¡¡ayuda!!

2001-10-25 Thread Sebas
I need to open a dbase file, so I use the "dbase_open" function and then I compile it but it tells me Fatal error: Call to undefined function: dbase_open() it seems like this function does not exists!.Does anybody could help me? Thanks [EMAIL PROTECTED]

Re: [PHP] Using PHP for server utilities

2001-10-25 Thread Chuck Theobald
Scott, This seems a pretty elementary task, ATC, though the detection of when the transfers are done is problematic. You could use the filesystem functions, particularly stat(), for assistance. I run php code as regular programs, not for web-based access, pretty regularly. You simply use the s

Re: [PHP] SIMPLE, secure user authentication

2001-10-25 Thread Chuck Theobald
RenAt 9:02 AM -0700 10/25/01, RenÈ Fournier wrote: >I'm looking for a good (simple) tutorial on user authentication. I want to >create a login system that's secure, but I don't need all the features that >PHPBuilder's "A Complete, Secure User Login System" scripts provide. (I >don't need the the

[PHP] MKDIR Permission Denied

2001-10-25 Thread Jeff Gannaway
Results in... MkDir failed (Permission denied) Any thoughts? -Jeff Gannaway ___ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hopper22ct Offer Good Through October 31, 2001 _

[PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
Well, it's probably me that's confused. I have an authenticate() function which should start a session and if the user is not logged in then show the login screen otherwise return after storing and registering a user object in a session variable. This object has accessor methods to get the log

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread l0t3k
search for "APC Cache" or "BWare Cache" or "PHP Accelerator" on google Thomas <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > did you check www.zend.com and their caching/optimizing products? > > They dont seem to have anything free, I need something free. >

RE: [PHP] Portland, Oregon

2001-10-25 Thread Jerry Lake
Rasmus, I'm not sure how I missed that, I would have liked to attend. where were you ? Jerry Lake -[EMAIL PROTECTED] Interface Engineering Technician -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 3:54 PM To: Richard Baskett

Re: [PHP] SIMPLE, secure user authentication

2001-10-25 Thread Mike Eheler
Wish I could point you to a good tutorial, but instead I'll try and give you the gist of it, based on my experience. A great way to do what you want to do is to combine MySQL user lookups with .htaccess security. This prevents anyone from accessing the pages you don't want them to, and cuts do

[PHP] Truncating Lines

2001-10-25 Thread BT News
Hi, I have the following code, which reads in an html file $fd = fopen("somefile.html", "r"); while (!feof($fd)) { $buffer = fgets($fd, 4096); $body .= $buffer; } fclose($fd); I am then mailing this: if (mail($username." <".$email.">", $mailsubject, $body, "From: ".$Fromname." <".$Fromadd

RE: [PHP] PHP object communication

2001-10-25 Thread Dennis Gearon
interobject communcation when objects are not inside another: - versionA: class some_classA{ global $semaphore; function use_semphore(){;} function write_semaphore(){;} function read_semaphore(){;} }

Re: [PHP] Making a string from an Array

2001-10-25 Thread Mike Frazer
A small addition: the code below would make a string, but it would be a single word (no spaces or other word boundaries). Use this instead: $ignored .= " " . $words[$i]; That inserts a space before each additional word. Unfortunately it also adds a space at the beginning but you can get rid o

Re: [PHP] conjob etc.

2001-10-25 Thread Mike Eheler
1. Just re-compile with the same options as before, just without --with-apxs or --with-apache (however you did it before). Run make all install and a php binary should be installed in $PREFIX/bin (default: /usr/local/bin). Then to use it to run shell scripts, put #!/usr/local/bin/php -q at the

  1   2   >