[PHP] ntp client??

2003-06-11 Thread Paul
Hey Guys, I've had a look around but no luck watsoever. If someone could give me a short answer on this one? Is it possible to make a php ntp client? If so give me your opinion on getting it done please? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] LDAP problems

2003-06-11 Thread Caleb Walker
Can anyone tell me what is wrong with this simple code? It errors with the ldap_get_values and says: "supplied resource is not a valid ldap result entry resource" I am very new at PHP LDAP so pardon my error... -- Caleb Walker CCSE, MCSE -- PHP General Mailing List (http://www.php.net/)

[PHP] Mssql error after upgrading to 4.3.2

2003-06-11 Thread Javier
Hi, yesterday I upgraded to php 4.3.2 from 4.3.1 with the freebsd ports. There were any problems on the process, but many of the pages I had running with mssql, now doesn't work. These are the errors I get: Warning: mssql_num_rows(): supplied argument is not a valid Sybase result resource in xx

[PHP] includes, forms, and funtions mess

2003-06-11 Thread Ben Houlton
In this code I'm tring to make it that It includes the 5 files (main, menu, pages, add a page, images add/view) and will also be editable, the add a page one is messed up becasue everytime I try and update it it doesnt update! But when I go and add a page it works... So please look over my code, Th

Re: [PHP] Downloading a file.

2003-06-11 Thread Jeff Harris
On Jun 11, 2003, "Alex Earl" claimed that: |> |> If he wants to download, in the file downloadit.php, there is: |> header("Content-type: application/octet-stream\n"); |> header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); |> header('Cache-Control: public'); |> header("Content-

[PHP] LDAP resources

2003-06-11 Thread Caleb Walker
Are there any good resources out there that discuss the use of LDAP with PHP. It seems that because LDAP is not used as much as most database technologies the PHP site is not very good at explaining how to use the LDAP functions. My only other option was to go and buy an advanced PHP book. Thank

Re: [PHP] PHP extensions and multiple source files?

2003-06-11 Thread Evan Nemerson
Good question, but wrong place for it. Ask [EMAIL PROTECTED] On Wednesday 11 June 2003 08:31 pm, Ed wrote: > Howdy folks! > > Is there a way to have multiple *.c source files and still end up with a > single *.so while using gcc? How would that be reflected in the config.m4 > file? > > I searche

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 12:25:05 AM, you wrote: AH> for example i have form with a dropdown selection as shown below. AH> AH> AH> 1 AH> 2 AH> 3 AH> 4 AH> 5 AH> AH> AH> Just say I have a function to generate form fields based on the total variable from above... so AH> function gen

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread John Taylor-Johnston
Lars, Thanks. I am getting this error however: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in It does not like addslashes() because of the {}? What is a sensible work around? Or do I even need addslashes?? if ($found) { $sql = "INSERT INTO $dbtable (RNu

Re: [PHP] can't figure out how to get this dynamic dropdown to work correctly

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 1:16:26 AM, you wrote: AM> I have a form with two dynamic dropdowns that submit the form when an AM> option is chosen. There is also a button at the bottom of the form that AM> submits the form. AM> The first drop down is a list of all customers. The user chooses a

Re: [PHP] Generating Related Drop Down Boxes

2003-06-11 Thread Jackie Young
Hi, Please keep in mind that I am a newbie to PHP, however I have just solved this same type of problem (for County, City, and Zip) as follows: // COUNTY print ""; print "* County:"; print ""; if ($countyX != "") { $county = $countyX; } print " "; print ""; $result =

Re: [PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Leif K-Brooks
$$ is perfectly explained in the variable variables section. Shawn McKenzie wrote: Can you expand on this? I haven't found a ref to the $$ except for variable variables. $$ What does it do? How is it used? Thanks! Shawn "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

[PHP] PHP extensions and multiple source files?

2003-06-11 Thread Ed
Howdy folks! Is there a way to have multiple *.c source files and still end up with a single *.so while using gcc? How would that be reflected in the config.m4 file? I searched for examples in the source tree, but did not find one. I tried different things, but ended up with multiple *.so's.

[PHP] Directory Security and Managemrnt.

2003-06-11 Thread Jason Marks
Hi there, I'm trying to ristrict access to a directory in my public root. /members/ should only be access able to people who have access .. and access rights are stored in a mysql databace. Should I be using .htaccess? Can anyone open a discussion about this ... because i would like to lean more

Re: [PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Shawn McKenzie
Can you expand on this? I haven't found a ref to the $$ except for variable variables. $$ What does it do? How is it used? Thanks! Shawn "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Use $$ unless you need to use eval. Easier to read, faster to process. > Also s

Re: [PHP] Generating Related Drop Down Boxes

2003-06-11 Thread Tom Rogers
Hi, Thursday, June 12, 2003, 5:19:00 AM, you wrote: MW> Hello all: MW> I have searched the archives, and although I know this is probably there can MW> not find it. I'm probably just not searching for the right subject. Here MW> is what I am looking for. MW> I have a table with Location and Ho

[PHP] parse_str and NULL entry problem

2003-06-11 Thread Adrian Bolzan
Greetings, We use debian package: php44.1.2-6. We use a GET request to initiate a "status request" process on another server and want to split the output into fields. My php code is: -- $send = "GET \ /servlet/gateway?Client=TEST&Q=CacheRefreshReque stStatus \ H

RE: [PHP] SQL SERVER QUESTION

2003-06-11 Thread Clint Tredway
How about the need to add prices together, or store binary data, or using a bit for true false... There are numerous reasons for datatypes in a database. HTH, Clint -Original Message- From: Dale [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 8:43 PM To: [EMAIL PROTECTED] Subjec

Re: [PHP] nl2br

2003-06-11 Thread Miles Thompson
Leif, The users I'm talking about here are two internal people, not the subscribers. Budget was tight, and rather than wrangling text from both Netscape and IE, we just made a decision. I don't remember the quirk exactly, I think it was the way wrapping was handled in the textarea in NN. Subsc

Re: [PHP] checking is session_start is already set

2003-06-11 Thread Leif K-Brooks
if(!session_id()){ //Session not started } [EMAIL PROTECTED] wrote: dumb question but how can i check if i have loaded the session_start function without actually checking for a particular session variable , i need to know as to prevent it being called twise within my DB class which is seperate fr

Re: [PHP] piping email directly into PHP

2003-06-11 Thread Robert Cummings
Just a small addendum, I also suggest using -C if you are using a non CLI PHP binary. This prevents PHP from changing directories to the location of the script. Perhaps not important for your needs, but if like me, you do many shell based scripts without the CLI version, it is very useful. Cheers,

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
Dvdmandt wrote: It's not that killing... :p preg_match("#^-?[0-9]+$#",$_POST["var_int"]); Not *that's* a mouthful ... I was also thinking about that === operator.. And this: if(((string)((int)$_POST["var_int"]))==$_POST["var_int"]) Cute. Might actually work too! Wonder if there would be any differ

[PHP] SQL SERVER QUESTION

2003-06-11 Thread Dale
I am still new to web programming. I have a question regarding sql databases. Since variables in php don't require a type, why is it so important that you specify a type for each of the colomons in your tables in your sql database. It seems to me that you could potentially make everything chars and

[PHP] checking is session_start is already set

2003-06-11 Thread daniel
dumb question but how can i check if i have loaded the session_start function without actually checking for a particular session variable , i need to know as to prevent it being called twise within my DB class which is seperate from my authentication class where session_start is set so then the DB

[PHP] Re: How to format a strign with a generic mask??

2003-06-11 Thread Hugh Bothwell
"Felipe Desiderati" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need a simple function that takes a string and formats > with a generic mask. Like this example above: > >$string1 = "12345678" >$string2 = "11062003" > >echo format_string ("#.###.###-#", $string1); // --> Returns

Re: [PHP] dotnet module?

2003-06-11 Thread DvDmanDT
Damn, that was a fast response! 5 secs? anyway, why was the w32api functions removed from PHP 4.3? And I can only guess from 5.0 as well? They seem very intresting you see... Thanks in advance / DvDmanDT "Sterling Hughes" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > In php5 yo

Re: [PHP] dotnet module?

2003-06-11 Thread Sterling Hughes
In php5 you can use the mono module. -Sterling On Wed, 2003-06-11 at 21:43, DvDmanDT wrote: > Hello, I was wondering if anyone has a working php_dotnet.dll? I was also > wondering is anyone was going to add class constructor support for it? Or is > that already supported? > > Thanks in advance /

[PHP] dotnet module?

2003-06-11 Thread DvDmanDT
Hello, I was wondering if anyone has a working php_dotnet.dll? I was also wondering is anyone was going to add class constructor support for it? Or is that already supported? Thanks in advance / DvDmanDT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] getting file contents

2003-06-11 Thread olinux
you could do something like this $buffer = ''; $fd = fopen($filename, 'r'); while (!feof($fd)) { $buffer .= fgets($fd, 4096); } fclose($fd); a better option would probably be to make your "text" file a "php" file and echo your value where you want them note: whatever you include will be parsed

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread DvDmanDT
It's not that killing... :p preg_match("#^-?[0-9]+$#",$_POST["var_int"]); I was also thinking about that === operator.. And this: if(((string)((int)$_POST["var_int"]))==$_POST["var_int"]) "Jean-Christian Imbeault" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Felipe Desiderati

Re: [PHP] Re: mail() function & exchange

2003-06-11 Thread Manuel Lemos
Hello, On 06/11/2003 05:38 PM, Diana wrote: Hi, just today I stumbled into the same problem. It is true, I got this answer from an expert: "Unfortunately this will not work. SMTP relaying is disabled on all the Exchange connector servers and a standard Exchange mailbox server does not support

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
Felipe Desiderati wrote: try this: if (ereg("^[0-9]+$", $_POST["var_int")) echo "is int"; That's not the best regexp. It doesn' take into account negative integers and isn't there a [[:numeric:]] or something like regexp that would work better. I'm looking for the simplest method and the on

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread Felipe Desiderati
try this: if (ereg("^[0-9]+$", $_POST["var_int")) echo "is int"; []´s Felipe - Original Message - From: "Jean-Christian IMbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 9:44 PM Subject: [PHP] How to find if a string is an integer? > I would like

[PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
I would like to test wether a $_POST var is an integer or not. What is the best way? I ahve tried is_int() but that fails b/c $_POST vars are always strings. is_numeric() doesn't help because it doesn't differentiate bewteen numbers (1.0) and integers (1). The best I have been able to come up

[PHP] How to format a strign with a generic mask??

2003-06-11 Thread Felipe Desiderati
Hi Folks, First of all, sorry for my english, but it isn´t good. I ´ll try to be cleary. Weel, I need a simple function that takes a string and format with a generic mask. Like this example above: $string1 = "12345678" $string2 = "11062003" echo format_string ("#.###.###-#", $string1); // --

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
and what consequences would that be.. its not law -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 3:27 PM To: chris sherwood Cc: [EMAIL PROTECTED] Subject: Re: [PHP] nl2br Standards-compliant HTML can be written just as cheaply and easily as IE-compl

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 15:55, jtjohnston wrote: > Can someone see clearly through what I'm trying to do please? > I've been at this for 4 hours trying to see where I have gone wrong. [snipped] Might something like this work? array ( 'Description' => 'Title: (TI)', 'Option' => 'ST', ),

[PHP] 4 hours staring - can't see clear.

2003-06-11 Thread jtjohnston
Can someone see clearly through what I'm trying to do please? I've been at this for 4 hours trying to see where I have gone wrong. # contents of a text file # Enregistrement TI: ... So They Understand ...: Cultural Issues AU: Schneider,-William PB: Logan, UT : Utah

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
Standards-compliant HTML can be written just as cheaply and easily as IE-compliant HTML. If I chose to make my restraunt inaccessible to wheel chairs, I would have to face the consquences. chris sherwood wrote: That's true but how would you feel if you made some choices and then had people cri

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
That's true but how would you feel if you made some choices and then had people criticizing it when you have no choice due to resource and funding restrictions? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 3:13 PM To: chris sherwood Cc: [EMAIL PROT

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
And it's my choice to tell him to go to hell. chris sherwood wrote: if they choose to limit to ie thats their choice ... -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Maili

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> > PS some mailservers do not like \r\n, check the manual on mail() and see > what they suggest, i think it was just \n. RFC for SMTP states that CRLF (\r\n) should be used. A lot of mail servers will accept just \n, but it is best to try and be standards compliant, you have less potential for p

[PHP] Easiest way to forward email using imap functions?

2003-06-11 Thread David Yee
Hi all- I'm wondering what's the easiest way to forward a message using the imap functions. The emails I want to forward have attachments so I'm hoping there's an easy way to do this. Or do I have to break down the messages and then send via imap_mail_compose()? BTW the email address I want to f

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
if they choose to limit to ie thats their choice ... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 2:51 PM To: Miles Thompson Cc: [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] nl2br That's plain wrong. This is the /world wide/ web, not the IE users

RE: [PHP] piping email directly into PHP

2003-06-11 Thread Adrian Teasdale
Wow, thanks! A nice detailed reply that should keep me busy for a good few hours All the best Ade > -Original Message- > From: John S. Huggins [mailto:[EMAIL PROTECTED] > Sent: 11 June 2003 23:02 > To: Adrian Teasdale > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] piping email directly int

Re: [PHP] piping email directly into PHP

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Adrian Teasdale wrote: >-Hi there >- >-We are wanting to create a little help/crm tool for internal use. Rather >-than reading (and parsing) in an email from a pop account, is it now >-possible to pipe email in directly to a database via PHP? If so, any >-pointers on how to

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
That's plain wrong. This is the /world wide/ web, not the IE users' club. Either stop that BS or keep off of the internet! Miles Thompson wrote: We limited our users to using IE -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pro

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Chris Hayes
(darn, this one was already answered, i hate it that some people ask questions with a future time.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Chris Hayes
When using my yahoo account as test-target for this script, I get this in return from my Mercury server: == quote from error message == The mail server has encountered errors processing your request: * Unrecognized command "Reply-to:". From: "DeltaPower" <[EMAIL PROTECTED]> Reply-to: "DeltaPowe

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Miles Thompson
Check out stripslashes(). MT At 04:16 PM 6/11/2003 -0400, Matt Palermo wrote: I wrote a small script that creates a link to all the .php and .txt files in a given directory. When one of these links is clicked, it brings up another window with the files contents inserted into a text area. From

Re: [PHP] piping email directly into PHP

2003-06-11 Thread Matt Matijevich
I am no expert in email, but with a little help, I figured out how to use procmail to pipe email into a perl script and work with the data from the email in that script. So I am pretty sure it is possible using php as well. >>> "Adrian Teasdale" <[EMAIL PROTECTED]> 06/11/03 04:31PM >>> Hi there W

Re: [PHP] nl2br

2003-06-11 Thread Miles Thompson
At 04:15 PM 6/11/2003 -0400, Edward Peloke wrote: Ok, I am trying to create a very basic page where we can all easily work on a document. I just have a huge textarea that inserts the text into a longtext field in the mysql db. I use nl2br to keep the formatting. Of course, when the document is v

[PHP] piping email directly into PHP

2003-06-11 Thread Adrian Teasdale
Hi there We are wanting to create a little help/crm tool for internal use. Rather than reading (and parsing) in an email from a pop account, is it now possible to pipe email in directly to a database via PHP? If so, any pointers on how to do it and anything to watch out for? Thanks in advance

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> >// pull fields from form query >$to = "[EMAIL PROTECTED]"; >$name = $HTTP_POST_VARS['name']; >$address = $HTTP_POST_VARS['address']; >$listname = $HTTP_POST_VARS['listname']; >$action = strtoupper($HTTP_POST_VARS['action']); > >// build headers >$from = "\"$name\"

[PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread -{ Rene Brehmer }-
Hi gang I've got this newsletter for my website. It runs of my own mailserver, running Mercury. To simplify subscribing and unsubscribing, I've built a PHP script to handle sending those commands to the server. The maillist for the newsletter is setup to send confirmations out to anyone who wis

Re: [PHP] getting file contents

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 10:45, Matt Palermo wrote: > I would just copy the file, but I am not sure how to copy the file and paste > it in the same folder with a different name. Any advice you can give for > that? Thanks. > > Matt I may be missing something, but: copy('/path/to/origname.txt', '

Re: [PHP] Sending TCP/IP string using PHP??

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 15:58, AES Security - Brian Celenza wrote: > Okay hopefully I can explain this system well enough. > > What I am trying to do is send a tcp/ip request to a visual basic program > using php. > > Is there anyway to send raw data over tcp/ip using php, or how would i be > able

Re: [PHP] Sending TCP/IP string using PHP??

2003-06-11 Thread Mark
--- AES Security - Brian Celenza <[EMAIL PROTECTED]> wrote: > Okay hopefully I can explain this system well enough. > > What I am trying to do is send a tcp/ip request to a visual basic > program > using php. > > Is there anyway to send raw data over tcp/ip using php, or how > would i be > able t

Re: [PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread Nick Wilson
* and then John S. Huggins declared > >-Has anyone written a function that does what nl2br() does but wraps text > >-in a 's instead? I'm a bit of a clean html type and nl2br() just > >-leaves me wishing there was a better way... > > Several examples appear in the user comments section of: >

Re: [PHP] undefined variable: action

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 13:40, Mark wrote: > Or you can simply turn off NOTICE error reporting in the php.ini file > or use ini_set or error_reporting() to not include notices. This > should not affect functionality. That's not a good idea; it's treating the symptom, not the problem. A better idea

Re: [PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Nick Wilson wrote: >-Hello everyone, >- >-Has anyone written a function that does what nl2br() does but wraps text >-in a 's instead? I'm a bit of a clean html type and nl2br() just >-leaves me wishing there was a better way... Several examples appear in the user comments se

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Alex Earl
Sounds like you have magic quotes turned on in your php.ini. I would check that out. Alex > Will the stripslashes() remove the slashes that are supposed to be in the > file? Because often times there are slashes in the file that need to be > there. > > Matt > - Original Message - > From

Re: [PHP] array sort help...

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 12:10, Dan Joseph wrote: > Hi, > > I cannot figure this out... Need some assistance. > > I have an array: > > $jack[#] = array( > "loan_info" => 101, > "first_name" => jack, > "last_name" => mother > ); > >

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
Will the stripslashes() remove the slashes that are supposed to be in the file? Because often times there are slashes in the file that need to be there. Matt - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sen

Re: [PHP] undefined variable: action

2003-06-11 Thread Mark
Or you can simply turn off NOTICE error reporting in the php.ini file or use ini_set or error_reporting() to not include notices. This should not affect functionality. --- Lars Torben Wilson <[EMAIL PROTECTED]> wrote: > On Wed, 2003-06-11 at 12:22, Ryan M wrote: > > Thanks for the advice... The

Re: [PHP] slash trouble when editing text

2003-06-11 Thread CPT John W. Holmes
Use stripslashes() to remove the slashes. Use htmlentities() on the text before you put it into the , also. ---John Holmes... - Original Message - From: "Matt Palermo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 4:16 PM Subject: [PHP] slash trouble when edi

Re: [PHP] Re: mail() function & exchange

2003-06-11 Thread Diana
Hi, just today I stumbled into the same problem. It is true, I got this answer from an expert: "Unfortunately this will not work. SMTP relaying is disabled on all the Exchange connector servers and a standard Exchange mailbox server does not support SMTP. The only way that you can send SMTP em

Re: [PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Leif K-Brooks
Use $$ unless you need to use eval. Easier to read, faster to process. Also safer if you don't validate form data. Jason Lehman wrote: Is $$ the same as eval or is it different and my main question is, is it safer to use to for processing form data? -- The above message is encrypted with

[PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread Nick Wilson
Hello everyone, Has anyone written a function that does what nl2br() does but wraps text in a 's instead? I'm a bit of a clean html type and nl2br() just leaves me wishing there was a better way... I'm afraid my regex is dreadfull so I just hoped someone might have already done it and be willing

RE: [PHP] nl2br

2003-06-11 Thread Edward Peloke
thanks John, I will give that a shot. -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 4:18 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] nl2br > I am trying to create a very basic page where we can all easily work

Re: [PHP] undefined variable: action

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 12:22, Ryan M wrote: > Thanks for the advice... The link worked Now it is saying this: > > Notice: Undefined index: action in > > It only says this if there is no action...it goes away once I click the link > and the action=someaction Is there a way to fix my php

[PHP] Passing the value of a variable from 1 PHP form to another

2003-06-11 Thread Denis Croombs
I am trying to pass the value of a variable from 1 PHP form to another but cann find out how to do this any clues or links very welcome Thanks Denis Croombs www.just-servers.co.uk www.just-hosting.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
I wrote a small script that creates a link to all the .php and .txt files in a given directory. When one of these links is clicked, it brings up another window with the files contents inserted into a text area. From there the user can edit the text file then click a submit button to make the c

Re: [PHP] nl2br

2003-06-11 Thread CPT John W. Holmes
> I am trying to create a very basic page where we can all easily work on a > document. I just have a huge textarea that inserts the text into a longtext > field in the mysql db. I use nl2br to keep the formatting. Of course, when > the document is viewed in the textarea, all of the are there.

[PHP] Sending TCP/IP string using PHP??

2003-06-11 Thread AES Security - Brian Celenza
Okay hopefully I can explain this system well enough. What I am trying to do is send a tcp/ip request to a visual basic program using php. Is there anyway to send raw data over tcp/ip using php, or how would i be able to make some sort of adapter to take the request and be able to read it from a

[PHP] nl2br

2003-06-11 Thread Edward Peloke
Ok, I am trying to create a very basic page where we can all easily work on a document. I just have a huge textarea that inserts the text into a longtext field in the mysql db. I use nl2br to keep the formatting. Of course, when the document is viewed in the textarea, all of the are there. TH

[PHP] escapeshellarg() equiv. for cmd.exe?

2003-06-11 Thread Jeff Stewart
I'm finding that escapeshellarg() doesn't "protect" against malicious strings used against Windows' shell, cmd.exe. Is there a function in PHP for escaping strings according to the Windows shell's rules? For example, the command separator in cmd.exe is &&. -- Jeff S. -- PHP General Mailing L

RE: [PHP] Questions, questions, questions...

2003-06-11 Thread Jay Blanchard
[snip] I'm not sure what your point is except to attempt to educate me that coding standards are a Good Thing, which is rather obvious. My point is that there has been no conclusive argument made that Hungarian notation is a quantitatively better method than any other. [/snip] You are correct of c

RE: [PHP] Questions, questions, questions...

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 05:21, Jay Blanchard wrote: > I think that part of the problem is that many PHP developers come to > programming from the largely self-taught web community (not that there > is anything wrong with that). They have never programmed before (doing > HTML and CSS is NOT programmin

[PHP] Re: shorthand "if" notation

2003-06-11 Thread Shawn McKenzie
Ternary operator. Look in the comparison operators section: http://us2.php.net/manual/en/language.operators.comparison.php -Shawn "Adrian Greeman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I am confused by the shorthand "if" notation. > For example I just saw this PHP snipp

[PHP] [Success Story] PHP 4.3.2+ Apache 1.3.x + MySQL 4.0.x + mod_auth_mysql

2003-06-11 Thread Rénald CASAGRAUDE
Hello, When I installed php-4.3.2 I realised that phpinfo() from mod_php said : Client API version => 3.23.56 And from CLI, he said : Client API version => 4.0.x (this one is the mysql-client version installed) And Browse link from PhpMyAdmin didn't worked, apache died, from the apache error log:

RE: [PHP] Quickie array question

2003-06-11 Thread Jennifer Goodie
> > foreach($newlines as $newline) { > > #how do I get the index of the array each time $newline is printed out? > > echo ??; > } foreach($newlines as $id=>$newline){ echo $id.''.$newline; } read the documentation http://us3.php.net/manual/en/control-structures.foreach.php -- PHP Gener

[PHP] Re: PHP and XML-RPC on MS Windows

2003-06-11 Thread Erich Kolb
Nevermind. Duh, I can do it by: include ("xmlrpc.inc"); or include ("xmlrpcs.inc"); "Erich Kolb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What do I have to do in order to use the XML-RPC functionality on a Windows > based machine? It was fairly easy to drop the .inc files i

[PHP] Quickie array question

2003-06-11 Thread jtjohnston
foreach($newlines as $newline) { #how do I get the index of the array each time $newline is printed out? echo ??; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Jason Lehman
Is $$ the same as eval or is it different and my main question is, is it safer to use to for processing form data? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and XML-RPC on MS Windows

2003-06-11 Thread Erich Kolb
What do I have to do in order to use the XML-RPC functionality on a Windows based machine? It was fairly easy to drop the .inc files into the PHP include directory on a Linux box, but I am not sure if it is possible to do the same on a Windows machine. -- PHP General Mailing List (http://www.p

RE: [PHP] Generating Related Drop Down Boxes

2003-06-11 Thread Jay Blanchard
[snip] I have searched the archives, and although I know this is probably there can not find it. I'm probably just not searching for the right subject. Here is what I am looking for. I have a table with Location and Hotel, and another one with Hotel and Accommodations. I need to generate the fir

RE: [PHP] undefined variable: action

2003-06-11 Thread Jay Blanchard
[snip] Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the action=someaction Is there a way to fix my php so that I dont have to change all of the web si

[PHP] Generating Related Drop Down Boxes

2003-06-11 Thread Mike Walth
Hello all: I have searched the archives, and although I know this is probably there can not find it. I'm probably just not searching for the right subject. Here is what I am looking for. I have a table with Location and Hotel, and another one with Hotel and Accommodations. I need to generate t

Re: [PHP] undefined variable: action

2003-06-11 Thread Ryan M
Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the action=someaction Is there a way to fix my php so that I dont have to change all of the web sites hos

RE: [PHP] undefined variable: action

2003-06-11 Thread Jay Blanchard
[snip] Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: Some Action"; if ($action == "someaction") { echo "Anything"; } ?> It says: Notice: Undefined variable: action in ..

[PHP] array sort help...

2003-06-11 Thread Dan Joseph
Hi, I cannot figure this out... Need some assistance. I have an array: $jack[#] = array( "loan_info" => 101, "first_name" => jack, "last_name" => mother ); # = 0 thru 12 I want to sort the array by

[PHP] undefined variable: action

2003-06-11 Thread Ryan M
Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: Some Action"; if ($action == "someaction") { echo "Anything"; } ?> It says: Notice: Undefined variable: action in . Iv

[PHP] Re: ereg_replace question

2003-06-11 Thread Rob Adams
"Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a string, This does not work $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; $fullpath = ereg_replace("\\[^\\]+$","",$fullpath) . '\\'; What have I missed? Todd -- You could just use: $path = dirname($fullpath

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ray
so your one of those people tha bounce them. i have had my email address used in a number of spams (and a few virus sends) and it blows! the bounces follow the from. the spammer has no clue that it bounced, nor do they really care. instead there is someone (sometimes) at the other end of the

Re: [PHP] getting file contents

2003-06-11 Thread Matt Palermo
I would just copy the file, but I am not sure how to copy the file and paste it in the same folder with a different name. Any advice you can give for that? Thanks. Matt - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 12:

[PHP] Apache to compile PHP and Ruby languages in the same document?

2003-06-11 Thread Keith Hamilton
Hello, I'm trying to create one document with PHP and Ruby scripts in the same document. Is this possible? I've tried to configure mod_ruby to compile php documents as well but when I do that PHP doesn't work. Is it possible to have 2 languages in the same document? -- Keith -- PHP G

[PHP] ereg_replace question

2003-06-11 Thread Todd Cary
I have a string, D:\Htdocs\gilardi\barcode\php\testwrite.php from   $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; I want to remove the "testwrite.php" leaving D:\Htdocs\gilardi\barcode\php\ This does not work   $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED];   $fullpath = ereg_replace(

RE: [PHP] fastest parsing first!

2003-06-11 Thread Thomas Hochstetter
It really depends, mostly it is external ... to accommodate small variations I have some style attributes around. T -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 06:30 PM To: Thomas Hochstetter; [EMAIL PROTECTED] Subject: RE: [PHP] fastest parsing f

RE: [PHP] fastest parsing first!

2003-06-11 Thread Jay Blanchard
[snip] I have a question concerning the parsing of scripts. The question is what will be parsed the quickest: much inline php (dirty) code, or let the code generate the html on the fly? I frequently use css ALOT! Does that make any difference to php (apart from making the file quite messy)? [/snip]

  1   2   >