Re: [PHP] Classes vs. Functions

2002-07-17 Thread Christopher J. Crane
Thank you for your 2 cents I am just learning and appreciate your comments. - Original Message - From: "Michael Hall" <[EMAIL PROTECTED]> To: "Chris Crane" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 11:13 PM Subject: Re: [PHP] Classes vs. Functions > > There

[PHP] Sorting array based on key string

2002-07-18 Thread Peter J. Pieczora
Pardon my sloppy explanation but here it is: how can i sort an array based on key element ie. key values are: a1, a2 ,a3 ..., b1, b2 ,b3, ...c1, c1, c3... so doing this: while (list($k, $v) = each($data)) { for ($i=0; $i"; } will list all the $k $v . a = foo a = bar b = another foo ... and s

[PHP] Some cookies are being set, some aren't

2003-08-28 Thread Thaddeus J. Quintin
I've got a problem with cookies failing. Here's the setup- A staging server, RedHat Linux, with php 4.3 Main server, FreeBSD, also php 4.3 Running identical Apache setups and Identical php setups. The staging server is only accessible behind our local firewall and does not run https. The Main s

[PHP] SQL not returning entire field

2003-09-10 Thread Christopher J. Crane
Please Help! I am using PHP to pull data from a MS SQL database. All other fields are returning data fine, but this one table PROFILE is returning only like some of the data in the field. I am using the following simplified code: MSSQL_CONNECT($HostName,$UserName,$Password); mssql_select_

Re: [PHP] SQL not returning entire field

2003-09-10 Thread Christopher J. Crane
I checked the field properties and it is set as large text or memo, and the data is complete in the field, just when I try to fetch it, it comes back truncated somehow. "Christophe Chisogne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christopher J. Crane w

[PHP] Dynamic Drill down menus

2003-09-11 Thread Dan J. Rychlik
Hello, I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address. I am not able to sucessfu

[PHP] Calling functions from Button actions

2003-09-12 Thread Dan J. Rychlik
Is their an easy way to call a function based upon a button action? -Dan

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Dan J. Rychlik
Your missing your default for your case switch statement And you ; at the end of line on your last include statement.. -Dan - Original Message - From: "Stevie D Peele" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 4:10 PM Subject: [PHP] Whats wrong with

Re: [PHP] Control Structure problem

2003-09-16 Thread Dan J. Rychlik
1 PM Subject: Re: [PHP] Control Structure problem > try > > if ( $var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { > > do something; > > } > > luke > - Original Message - > From: "Dan J. Rychlik&qu

[PHP] Control Structure problem

2003-09-16 Thread Dan J. Rychlik
This doesnt work as expected. if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { do something; } It returns true on all strings. Ive tried using the or operator and the == but these fail as well. Any Ideas? -Dan

[PHP] Flash Chat

2003-09-18 Thread Dan J. Rychlik
Hello, I was wondering if my solution would work in theory in providing a Flash chat application. I would use the AMFPHP to interface with the flash object. I would use a class to describe the chat room and creat new objects for private rooms. Do you think that this will truly work, In th

[PHP] Reading URL is changed

2003-09-19 Thread Dan J. Rychlik
I am trying to figure out the best way to accomplish this task. I have one file that performs a certain amount of functions based on a user link choice. All the links point to the same document. I know I need a control structure that reads what link was read but Im not sure how to do this.

Re: [PHP] Reading URL is changed

2003-09-19 Thread Dan J. Rychlik
That seems to work pretty good. Thank you for this technique. -Dan - Original Message - From: "Vail, Warren" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 19, 2003 7:32 PM Subject: RE: [PH

[PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Hello, Im having a bit of trouble with the DATE_FORMAT function in mysql. $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon'); I know its failing because php doesnt like the quotation before the format parameters. Ive tried to fix this without any luck.

Re: [PHP] Re: SQL statement

2003-09-23 Thread Dan J. Rychlik
Tried that, it failed. I recieve undefined index timestamp. when executing. - Original Message - From: "Ney André de Mello Zunino" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 7:04 PM Subject: [PHP] Re: SQL statement

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Ive used this $query = ("SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon"); But I recieve unknown index timestamp. *shrug* - Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Dan J. Rychlik"

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
Jennifer, you're right, I am using fetch_array... I tried to use your suggestion, and it failing as well, It wont even execute Do you have a better method of looping through all these records?? - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]>

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
. I know its got to be problem with the string terminators and or the way the fetch_array reads the elements of a record in my database. - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; "Chris W.

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
This didnt work as well. SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') as formatted_ts FROM custlogon; It caused my script to die and not execute at all - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Dan J. Rychlik

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
drychlik Host Info 127.0.0.1 Status OK Time Stamp Notice: Undefined index: timestamp in C:\Program Files\Apache Group\Apache2\htdocs\Ameriforms\admintool\includes\getlogonhist.php on line 44 - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Da

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
I tried this, and it failed. Thank you for the suggestion! - Original Message - From: "Cody Phanekham" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Chris W. Parker" <[EMAIL PROTECTED]>; <[EM

Re: [PHP] SQL statement

2003-09-23 Thread Dan J. Rychlik
M custlogon; not as formatted_ts. It worked fine even on zeus it tested fine. Thanks for your help Sincerely, Daniel - Original Message - From: "Dan J. Rychlik" <[EMAIL PROTECTED]> To: "Cody Phanekham" <[EMAIL PROTECTED]>; <[EMAIL PROT

Re: [PHP] rename variables

2003-09-24 Thread Dan J. Rychlik
Global works... - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Boyd Pearson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 24, 2003 3:44 PM Subject: RE: [PHP] rename variables > > I'm trying to rename some variables. > > > > first I have a fun

[PHP] Pause Timer ()

2003-09-25 Thread Dan J. Rychlik
Is their a pause timer or timer function in PHP to pause a script for a certain amount of seconds? -Dan

[PHP] Reading Form Buttons

2003-09-25 Thread Dan J. Rychlik
Hello, I cant figure this one out. In one form I have two button that needs to trigger their respective functions. In php, how would I read the values or the names of the buttons pressed? -Dan

Re: [PHP] Reading Form Buttons

2003-09-25 Thread Dan J. Rychlik
Oh, so its the same as reading post data from form fields. Cool. That makes it easy. Thank you - Original Message - From: "Jeff McKeon" <[EMAIL PROTECTED]> To: "Dan J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, Septem

[PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/crushme/public_html/includes/inc_members.php on line 564 Is this the server or code that needs to

Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
[PHP] Call to undefined function: imagecreatefromjpeg() > Philip J. Newman wrote: > > http://www.php.net/manual/en/function.imagecreatefromjpeg.php > > > > After using this code for some time it suddenly returns ... > > It's not suddenly, someone must have recompiled php

[PHP] Problems with ldap_modify() and very large entries

2003-12-01 Thread Peter J Hartman
Here is a problem which I've been completely unable to unravel. Basically, if I call ldap_modify (or ldap_mod_replace) with a VERY large amount of data in the attributes array (see ldif below), the browser will just turn and turn and turn and never finish or report anything. But, I can do a print_

Re: [PHP] (More Information) was Problems with ldap_modify() and very large entries

2003-12-02 Thread Peter J Hartman
Here's a followup to my problem with ldap_mod_replace and ldap_modify. Attached is a simple program demonstrating the problem. Basically, if you try to fill an attribute in ldap that is something around 17000 characters or above, ldap_mod_replace hangs. I've determined it is definately a PHP pro

Re: [PHP] (More Information) was Problems with ldap_modify() and very large entries

2003-12-02 Thread Peter J Hartman
Just to note: the problem holds true for: ldap_mod_add, ldap_modify, and ldap_mod_replace. Also, adding ldap_set_option($conn, LDAP_OPT_SIZELIMIT, 20) doesn't resolve the problem (or setting it to 0). Peter On Tue, 2 Dec 2003, Peter J Hartman wrote: > Here's a followup to my

[PHP] unpack question

2003-12-04 Thread John J Foerch
Hi, How do I unpack uint32's? I'm using the format character "L" and numbers greater than 2^31 come back as signed integers instead. This seems like a bug. Thanks, John J Foerch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unpack question

2003-12-05 Thread John J Foerch
Thanks. Neat trick with the printf command. I'll use that for now. John > I suppose it is a bug. It seems that all unsigned unpacks dont > honor this, as the documentation on unpack does note. > > I did, however, write a patch that will enable the returning of > unsigned values. It still needs

[PHP] Maximum execution time

2003-12-05 Thread John J Foerch
Hi, Is there some way to turn off maximum execution time? Preferably within the script itself? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Maximum execution time

2003-12-08 Thread John J Foerch
Thanks for the help, everyone. -John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Checking a URL string.

2003-12-12 Thread Philip J. Newman
I would like to check if i have a correct url enterend --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] The best way ...

2003-12-12 Thread Philip J. Newman
what is the best way to remove extra \'s from strings ... would be ? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What would the best way to veladate a URL string?

2003-12-13 Thread Philip J. Newman
What would the best way to veladate a URL string? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Whats wrong with this statement.

2003-12-13 Thread Philip J. Newman
Query"); $exists_hUrl = "0"; $exists_hContactEmail = "0"; while ($row = mysql_fetch_array($sql_result)) { if ($websiteUrl==$row["hUrl"]) { $exists_hUrl = "1"; break; } if ($websiteEmail==$row["hContactEmail"]) { $exists_hContactEmail = "1&q

[PHP] Trying to check for a valid URL String.

2003-12-13 Thread Philip J. Newman
so far i got ... and i can't get it to work --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What would the best way to veladate a URL string?

2003-12-13 Thread Philip J. Newman
Hay that works better thanks - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 14, 2003 2:17 PM Subject: [PHP] Re: What would the best way to veladate a URL string? > On Sun, Dec 14, 2003 at 11:23:25A

[PHP] Simple question I hope

2003-12-16 Thread Christopher J. Crane
I am using Pdf-Php to create pdf docs. I have a long text line that wraps automatically when outputted in the pdf. That is what it is suppose to do, however, it also outputs the new lines of the text in the source of the php file. That is not what I want. So I do a string replace for the "\n" and r

Re: [PHP] Simple question I hope

2003-12-16 Thread Christopher J. Crane
That worked. Thanks Robert. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2003-12-16 at 15:02, Christopher J. Crane wrote: > > I am using Pdf-Php to create pdf docs. I have a long text line that wraps > > automatically whe

[PHP] Line breaks in PHP.

2003-12-16 Thread Philip J. Newman
Question: When you hit enter in a text box is that classified as a \n? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Line breaks in PHP.

2003-12-16 Thread Philip J. Newman
HP. > On Wednesday, December 17, 2003, at 03:10 PM, Philip J. Newman wrote: > > > Question: > > > > When you hit enter in a text box is that classified as a \n? > > > > generally, yes. > > depending on the client platform, it might be an \r\n or

[PHP] Best way to store data.

2003-12-18 Thread Philip J. Newman
Hi, is the best way to store data in a mysql database in the text it was submitted, or in HTML format ... changing all the \r's and things to --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] $_POST[]

2003-12-18 Thread Philip J. Newman
Should $_POST[formReviewBy] have quotes or dose it not matter? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best place to search archives

2003-12-20 Thread Philip J. Newman
Hay guys, Where is the best place to search the general-php archives (o; --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] Ph: +64 9 576 9491 Fx: +64 9 576 2532 Mob: +64 21 0483 999 - "

Re: [PHP] PHP New Year

2003-12-31 Thread Philip J. Newman
yes HNY to you too - Original Message - From: "Larry Brown" <> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, January 01, 2004 1:37 PM Subject: [PHP] PHP New Year > Happy New year all! > > Looking forward to bigger better things this year. > > Larry > > -- > PHP General Mailing

Re: [PHP] A simple instruction

2004-01-01 Thread Philip J. Newman
echo"$PHP_SELF"; maybe? - Original Message - From: "Dino Costantini" <> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 02, 2004 11:30 AM Subject: [PHP] A simple instruction i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name

[PHP] counting charactors

2004-01-06 Thread Philip J. Newman
can someone point me to the right place for a thing that would count charactors in a string? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php on linux..

2004-01-08 Thread "Miguel J. Jiménez"
khoa vo wrote: I am a newbie. I'm trying to write a php script and put it on the linux server at school. Your name: #!/lusr/bin/php Hi . I did locate php to find the path where php is installed and i got /lusr/bin/php. inde

Re: [PHP] $_SERVER['PHP_AUTH_USER'] doesn't work with location header for Mozilla.

2004-01-09 Thread "Miguel J. Jiménez"
I think it's because all headers must be sent BEFORE doing anything else ... Scott Fletcher wrote: Hi! The login page where the HTTP Authentication would pop-up asking the web user to enter the user id and password to log in. I'm using the PHP's $_SERVER['PHP_AUTH_USER'] and it work okay in

[PHP] Hiding files away from /public_html/

2004-01-09 Thread Philip J. Newman
Hi, just wanted to pick someones brain. I want to store some images outside the /public_html/ how ever my isp has decided that i'm not aloud to write files in that area. Would the next best solution that wold be as secure to maybe put them in a folder with a .htaccess file in it? --- Phi

Re: [PHP] Re: how to open a webpage

2004-01-12 Thread "Miguel J. Jiménez"
bernard wrote: Hi, Thanks for the suggestions ! Problem is solved sofar. But how can I open the link in a new window, I tried (with my limited php knowlegde) a lot of things, but i'ts not working :-( To open the URL in a new window, you MUST use javascript.. You can output a HTMP page l

Re: [PHP] Script Needed

2004-01-14 Thread Philip J. Newman
payme $80 a hour and i can write one ... (o; - Original Message - From: "Eric Belardo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 2:33 PM Subject: [PHP] Script Needed > Good evening all, > > I am designing a website were different users will be postin

Re: [PHP] Is this code right?

2004-01-19 Thread "Miguel J. Jiménez"
Radwan Aladdin wrote: Hi all.. I made this code for the login.php page.. it will compare A value from the users machine (Serial) and with a value inside the database (In that users' row).. so after logging it will check if also this value is the same and then echo something..is the following code

Re: [PHP] date fiedl

2004-01-19 Thread "Miguel J. Jiménez"
Diana Castillo wrote: Does anyone know if there is any speed advantage to saving a date as a unix timestamp or a numeric field instead of a date field? (in Mysql) thanks, Well, I prefer using an int(14) field for saving unix dates (so, I save the date as unix and not as date field). Thus is easi

[PHP] Downloading Question

2004-01-20 Thread Rogelio J. Samour
OK, I'm at my wits' ends with this problem. I have a download page that sends the correct headers to the browser and downloads a blob file from a MySQL table. Everything works great on Mozilla, Netscape, and IE until I try to download a Zip file. What's puzzling is that the SAME EXACT file works

[PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the following line- $ ./configure --with-mysql=/usr/local/mysql \ --with-a

Re: [PHP] Compiling Apache Module, missing Header files?

2004-01-22 Thread Thaddeus J. Quintin
Brad Pauly wrote: On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote: I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with

[PHP] Hello

2001-01-17 Thread Karl J. Stubsjoen
Hello, I'm an ASP guy gone PHP. So, be patient with me as I struggle my way with PHP. I have a some experience with writing C like syntax, as with JavaScript and TCL. I hope to pick up PHP quickly. 2 Questions: How to declare function and sub routines. How to call functions and sub routines.

[PHP] Functions

2001-01-17 Thread Karl J. Stubsjoen
Okay, There aren't Sub Routines, just Functions? I've been to the manual recommended by Augusto *thank you*, that is helping! I created a function called Foo with a single argument (and I set it up as optional, that is way cool, I can't do that in ASP) ... and my question is: I can call foo like

[PHP] ASP to PHP

2001-01-17 Thread Karl J. Stubsjoen
Is there such thing as program that will convert ASP code to PHP code? I have built some nice libraries with ASP and am interested in converting those over to PHP, rather than rewriting them! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] include statement

2001-01-17 Thread Karl J. Stubsjoen
What about the security issue mentioned? Is it then possible (using the include and/or readfile) to grab anything found on the server? 1 More thing: what if I wanted to place the contents of a file into a variable. How do you achieve that? Karl *also a newbie, and this is a great group* --

[PHP]

2001-01-17 Thread Karl J. Stubsjoen
Is PHP the implied script, so that it is okay to begin PHP code like this 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] Ver3.0 Includes

2001-01-17 Thread Karl J. Stubsjoen
Are includes supported in ver 3.0? I'm having troubles with my includes. Here is the include (after this evening we will ver 4.0): include ($DOCUMENT_ROOT . "/gophp/Main.php"); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

[PHP] PHP Editors

2001-01-18 Thread Karl J. Stubsjoen
So what editor is recommended? I'm a little familiar with Emacs (kinda cool, but I'm use to keywords and such being colored - as in Interdev). Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Print vs. Echo

2001-01-18 Thread Karl J. Stubsjoen
What is the basic difference between print and echo? As I am understanding it, Echo allows you to define a multi-line area to output text without having to repeat quoting for each line but then what is the advantage of print? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Variable Scope

2001-01-18 Thread Karl J. Stubsjoen
I'm a bit troubled with the fact that variables declared at the top of your script are not then global to functions within that script. That in order to see that variable within a function you'd have to declare it as global in the function (understanding that the variable could have been set at t

[PHP] Quotes and Values

2001-01-18 Thread Karl J. Stubsjoen
Hello, I am trying to do this: $myVal = " *trying to accomplish putting " qotes around my string values* Thanks! -- 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,

[PHP] Where is information about Forms?

2001-01-18 Thread Karl J. Stubsjoen
Hello, Looking through the PHP Site (someone needs to improve the search features), and can't find information about querying form field values etc... Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

[PHP] ASP Guy Looking for "Select Case" equivalent

2001-01-19 Thread Karl J. Stubsjoen
Hello, What is the equivalent command to Select Case as in: Select case 10 + 2 case 10 'nope case 11 'nope case 12 'yep case > 13 'yep - but case 12 comes first! end select -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] Form Problems

2001-01-19 Thread Karl J. Stubsjoen
I'm having troubles : ( I can't seem to figure out how to retrieve the posted data. I'm trying this: $HTTP_POST_VARS["Login"] ! WAIT ! as I write this, I'm guesing that maybe my problem is *scope* (and not the mouthwash). I'm going to try that right now, set the above var to global within that

[PHP] Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
Okay, what is wrong with this: echo "...are you logged in: $LoggedIn()"; // outputs:...are you logged in: () Function is: function LoggedIn(){ global $HTTP_POST_VARS if ($HTTP_POST_VARS["Login"] == "PHPIsCool") {return "YES";} else {return "NO";} }

[PHP] "but what if.." Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
What if I want the function to be processed within the " " quotes? Same as a variable might be interopelated? IOW, can I call a function without concantenating the function together with the string? *being a little stubborn* - Original Message - From: "Karl J. Stu

[PHP] Local Path of Script

2001-01-22 Thread Karl J. Stubsjoen
How do I obtain the path of the local script? Or do I have to build it from the $DOCUMENT_ROOT? -- 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 PROT

[PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
Hi, I need to test for cookies. What is the simplest way to do this? Thanks - Karl -- 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]

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
> Karl J. Stubsjoen [[EMAIL PROTECTED]] wrote: > > Hi, > > > > I need to test for cookies. What is the simplest way to do this? > > Be a little more specific - do you want to know if there > are cookies at all, or if there are specific cookies? > > Depends

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
> By trying to set a cookie and read it back. Okayhere is the scenario: User originates from STATIC Html page, Links to my PHP Cookie Test Page I set a cookie in my PHP Cookie Test Page Can I then check (safely) for cookies right away in my PHP Cookie Test Page without involving a 3rd page?

[PHP] ->

2001-01-24 Thread Karl J. Stubsjoen
What does -> do? As in: $Something->then_something_over_here -- 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]

Re: [PHP] ->

2001-01-24 Thread Karl J. Stubsjoen
p! Karl - Original Message - From: "Cal Evans" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 12:08 PM Subject: RE: [PHP] -> > It's means th

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
uot; And what about NS? Karl - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 12:56 PM Subject: RE: [PHP] Test

[PHP] Redirect

2001-01-24 Thread Karl J. Stubsjoen
What is wrong with this redirect: http://www.dogpile.com"; header ("Location: " . $rdrct); exit; ?> Thanks! Karl -- 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,

[PHP] Test for Cookies (Stored vs. Session)

2001-01-24 Thread Karl J. Stubsjoen
So my Point is: What if you require "stored cookies" - cookies written to the users disk? Hmmm, this cookie test would return true if "per-session" cookies was enabled and "stored cookies" was disabled. Karl - Original Message - From: "Karl J. Stubsjo

[PHP] Loop Through all Querystring Variables

2001-01-24 Thread Karl J. Stubsjoen
What is the simplest way to set up a procedure to loop through all passed querystring values and/or form values? I'm very new to PHP, and don't know how to set up loops at all. Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] Look for and Trim Last Character

2001-01-24 Thread Karl J. Stubsjoen
Hello, I'd like to check for a character at the end of a string, if it exists remove it, example: Looking for - Z In string - StringZ Result would be - String -or- Looking for - Z In string - StringZzz Result would be - StringZzz (no change) Thanks! Karl BTW: You guys are great! -- PHP Gen

[PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
I've tried and tried to figure out what is wrong with this function, but I can't. Could you please have a look. This function reconstructs the querystring values passed in the querystring: function PassOnGetVars() { global $HTTP_GET_VARS; #initialize retrn value $retrn = "?"; #loop th

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
Freak'n Duhh! My eyes are still blury to PHP *obviously*. Thanks! So $QUERY_STRING eh? I'll look that one up. Karl - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Cc: "PHP Ma

php-general@lists.php.net

2001-01-24 Thread Karl J. Stubsjoen
Should this correctly find '&' or is & and special searching character? # looking for an & at the end $retrn = AASIDFIFJ& if($str{strlen($retrn)-1}=='&') Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

[PHP] Best way to describe Doc as HTML

2001-01-25 Thread Karl J. Stubsjoen
Hello, So I think I've found 3 ways to describe the HTML Doc as "HTML". Which one is the best? 1) Via MetTag (this was generated in Dreamweaver): 2) Print Statement at top of page: print "Content-type: text/html\n\n"; 3) Using the PHP Header command:

[PHP] Read Vs. Include

2001-01-25 Thread Karl J. Stubsjoen
Hello, I want to *read* a file into a page and not process any PHP. I'm just reading an HTML file. I though it was simple, I thought I had it figured out, but now when I try, I get the following error: Fatal error: Call to unsupported or undefined function read() in /var/www/wherever.com/betas

[PHP] Ver 3 vs. Ver 4

2001-01-25 Thread Karl J. Stubsjoen
Hello, Does Version 4 support either { } "squiglees" or [ ] "brackets" in this code: if($retrn{strlen($retrn)-1} == '&') -or- if($retrn[strlen($retrn)-1] == '&') I am developing on ver 3.0 and the { } don't work in the above, but the brackets do. Karl -- PHP General Mailing List (http://www

[PHP] Why the Change in Ver 4?

2001-01-26 Thread Karl J. Stubsjoen
> > >Does Version 4 support either { } "squiglees" or [ ] "brackets" in this > > >code: > > > > > >if($retrn{strlen($retrn)-1} == '&') > > >-or- > > >if($retrn[strlen($retrn)-1] == '&') > > > > Yes. This is a 4.x feature only. The idea is that in the long run, [] > > will no longer be supported

[PHP] Check for Page

2001-01-26 Thread Karl J. Stubsjoen
How could I: How could I check to make sure a page exists before I redirect to it (a page within my own server, but page name passed in querystring - therefore it could be changed by client)? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] Detect if Header has been written

2001-01-26 Thread Karl J. Stubsjoen
How can I check if Headers have been written to the browser? Thank You! -- 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] AS400 Insert - The answer

2001-02-21 Thread Karl J. Stubsjoen
Okay, To insert data into an AS400 system (proven on Ver 4.4) you must first: Begin Journaling for the the file to insert into This is done by issuing the following command at the command prompt: STRJRNPF FILE(lib/file) JRN(jrnllib/jrnlfile) (where test is your libs and files) Let me know ho

[PHP] Alternate 2 schedules...

2001-02-22 Thread J-Frs Dubé
I' m searching a way to programmatically alternate 2 schedules each sunday at 00:00. Schedule1 start on first sunday and seven days later, schedule2 replace schedule1,and seven days later, schedule1 replace schedule2 etc... Waiting... John

[PHP] Enumerate files in a folder

2001-02-26 Thread Karl J. Stubsjoen
Hello, I need a little help getting started with my project (i'm new to PHP). I need to enumerate all of the files in a folder, their name mostly. How would I do that? Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP] Stream Content

2001-02-27 Thread Karl J. Stubsjoen
Does anyone know how to stream information to a browser (without the client having to hit refresh)? What do I need to get started? We want to have 2 numbers we want to display on the browser, we want these numbers to change as the data changes in the table, but done "streaming". * I am coding t

<    3   4   5   6   7   8   9   10   11   12   >