[PHP] Re: Sorting parsed XML

2002-11-24 Thread Chris
I'm trying to write PHP code that will not only parse the XML but also allow me to sort the parsed information by the values parsed. Current code == class RSSParser { var $insideitem = false; var $tag = ""; var $ServerName = ""; var $ServerStatus = ""; var $ServerType = ""; var $Ser

[PHP] Re: Sorting parsed XML

2002-11-25 Thread Chris
Sorry, use to using to a listserv that auto-plants the listserv address, not the responder's address on replies :P > From: @ Edwin [mailto:[EMAIL PROTECTED]] > If you'd like to sort these, then I think you might be able > to do something like this: 1. Instead of printf()'ing your > 's or 's ins

RE: [PHP] Re: Sorting parsed XML

2002-11-25 Thread Chris
Unavailable as I am reading an XML file produced by another web site and it dynamically updates the information on the sheet every 5 minutes or so. At least to my knowledge of what XSLT can do. > From: Geoff Hankerson [mailto:[EMAIL PROTECTED]] > > This seems to me to be more easily handled by

RE: [PHP] Re: Sorting parsed XML

2002-11-26 Thread Chris
Okay, that's neat and I get what you're saying with xml_process() to handle this. >From what I'm reading, it would not allow this sort of procedure, but please let me know otherwise: == echo "" . $ServerName; if ($ServerType) { echo " ("

[PHP] xslt_process problem

2003-02-14 Thread Chris
I am trying to figure out the whole XML/XSL thing and am experimenting with the Gentoo docs which have a simple XSL sheet. I downloaded the XML, XSL and DTD, and ran the files through the Sablotron module in php using: $xp = xslt_create(); xslt_set_base($xp, 'file://c:/shared/mywebs/beta/test

[PHP] Array instead of Switch

2003-02-21 Thread Chris
Let's say I need to take one of 20 actions depending on a form selection. I could use a switch statement with 20 cases, but I could also do something like: // Pretend this comes from a form $formchoice = "mars"; $response = array( "mars" => "go_mars()", "mercury" => "go_mercury()", "earth"

[PHP] PHP Job Opening

2003-02-21 Thread Chris
http://www.alaska.edu/hr/jobs/external/tmp19_3.xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-07 Thread chris
We've been having a nightmare of a time with this IIS machine that was recently upgraded to 4.3.1 from 4.2.3. Of course, using google to find out what the error means only brings up other sites that have the message displayed... Warning: Unknown(): Your script possibly relies on a session side

Re: [PHP] Displaying few words from record in mySQL

2003-03-08 Thread chris
On Fri, 7 Mar 2003 10:22:01 -0800 (PST), Rahul.Brenda <[EMAIL PROTECTED]> wrote: Glory & Supreme Power What i'm looking to do is.. i want to display only the first few words of the record in my mySQL database.. For example.. i have a table with a field "title".. and let's say my last record has

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread chris
On Sun, 9 Mar 2003 04:37:47 -0800 (PST), Rahul.Brenda <[EMAIL PROTECTED]> wrote: I want to display the first 3 words of my record in the my table and following is the code i'm using. When i use the SQL Query in mySQL.. it works great.. but when i try to implement it in my php page.. i'm not gett

[PHP] Re: Persistent values between executions

2003-03-10 Thread chris
On Mon, 10 Mar 2003 11:30:25 -0500, Mike Mannakee <[EMAIL PROTECTED]> wrote: I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server

[PHP] Re: Error in $_POST

2003-03-10 Thread chris
On Sun, 9 Mar 2003 20:01:33 +0530, Aspire Something <[EMAIL PROTECTED]> wrote: Hi guys , I am getting this error in php ___What I am doing; 1. I am posting data from one form and collecting it for execution as follows $_POST['cust_id[0]']; // cust_id is an array of length 1 which is selected f

[PHP] Re: help needed with code!!

2003-03-10 Thread chris
On Tue, 11 Mar 2003 01:14:09 -0500, Karl James <[EMAIL PROTECTED]> wrote: Can anyone give me some pointers on why im note seeing Any output to the browser. Thanks Karl my link http://66.12.3.67/webdb/webdb13/assignment_1.php my code http://nopaste.php-q.net/7560 ultimatefootballleague.com/inde

[PHP] Re: seperate streetname from number

2003-03-11 Thread chris
On Tue, 11 Mar 2003 17:17:52 +0100, André Sannerholt <[EMAIL PROTECTED]> wrote: Hi everyone! I wondered how to sepearate string variables that contain streetnames and numbers: If for example $variable="Hauptstraße 15"; $variable_string[0] should be "Hauptstraße" $variable_string[1] should be "15

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread chris
On Wed, 12 Mar 2003 14:42:04 +1300, Philip J. Newman <[EMAIL PROTECTED]> wrote: how ever i don't think most ISPs let users pick names with the + sign in it - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAI

Re: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-12 Thread chris
On Thu, 13 Mar 2003 10:35:29 +1100, Justin French <[EMAIL PROTECTED]> wrote: My *GUESS* is that you're using: session_register('var') session_unregister('var2') rather than $_SESSION['var'] = 'something'; unset($_SESSION['var2']); Either that, or you're referring to session vars as $var instead

[PHP] Parsing fgetcsv using tab (\t)

2003-07-01 Thread Chris
d from my form the records are not getting parsed. Any suggestions would be appreciated. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing fgetcsv using tab (\t)

2003-07-01 Thread Chris
Yea, that is what I'm going to do for a back up. After mucking with this for a couple of days, I've about had it. Jeff Harris wrote: > On Jul 1, 2003, "Chris" claimed that: > > |I'm trying to create an form where the user can upload a datafile to the > |se

Re: [PHP] small request

2003-07-27 Thread chris
Ryan, I'm getting the PHPSESSID variable. Chris Quoting Ryan A <[EMAIL PROTECTED]>: > Hi, > I want to find out if this is my browsers fault or the settings in my > php.ini, can you goto http://bestwebhosters.com/my.login.php then look at > the page source and tell

[PHP] deprecated function list?

2003-08-20 Thread Chris
How can I find a list of PHP functions that are deprecated? Also, how can I print to the browser the Notice message that would indicate that a function is depricated? Like: Notice: mysql(): This function is deprecated; use mysql_query() instead Thanks for input Chris -- PHP General Mailing

Re: [PHP] Problem with the post variables.

2003-08-23 Thread chris
On Mon, 18 Aug 2003 18:35:09 +0200, Wouter Van Vliet <[EMAIL PROTECTED]> wrote: The problem is probably in the 'enctype="multipart/form-data"'. You should only use this enctype if you're gonna upload a file through the form. If not, just leave it away or use text/plain Wouter Why would that be

[PHP] Re: Retrieve values from checkboxes

2003-03-24 Thread chris
On Mon, 24 Mar 2003 13:06:45 -, Shaun <[EMAIL PROTECTED]> wrote: Hi, I have some checkboxes on my form and am using the following code to populate it. The box will be checked if the user is allocated to the project. My problem is if I uncheck a checkbox and send the form I don't know what the

[PHP] Re: Help-- 255 characters limitation in .

2003-03-24 Thread chris
On Mon, 24 Mar 2003 16:11:00 +0800, Larry Li <[EMAIL PROTECTED]> wrote: But MS SQL SERVER saved all characters. Only first 255 characters was shown in . What's wrong? Thanks for your input, Larry What does the html source look like? Sounds like some sort of html closing tag prematurely ended

[PHP] Re: NewB Q on Arrays.

2003-03-25 Thread chris
On Tue, 25 Mar 2003 21:18:48 +1000, Inpho <[EMAIL PROTECTED]> wrote: Hey All, I'm still a newB in php and mysql so I'm asking for your patience up front. i want to get a list of results from an array, which I can do with: $result=mysql_query("select * from mvlogtbl",$db); while ($row=mysql_fet

[PHP] Re: ho to remove an empty space

2003-03-25 Thread chris
On Mon, 24 Mar 2003 22:10:28 -0800, Webdev <[EMAIL PROTECTED]> wrote: somehow when I have try to develop an application where I read five or six values into an individual arrays the array who carries the emails has the email and an additional empty field after the email somehow complex well

[PHP] get modification date of remote page

2003-06-01 Thread chris
I have a database full of links. I need to write a script to go to each one and check the modification date of the file. My plan is, once that is logged, to do this every week and indicate which pages have "changed." What is the simplest approach to this? Do I need to use CURL functions or rem

Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-18 Thread chris
On 17 Jun 2003 09:37:12 -0500, Tom Woody <[EMAIL PROTECTED]> wrote: On Tue, 2003-06-17 at 09:09, nabil wrote: A side question along with this ,,, how can I include $_POST['foo'] in the : $sql ="select * from db where apple = '$_POST['foo']' "; without getting an error ?? should I append it as

[PHP] Re: Is there an RTFM for 'use strict' ?

2003-06-27 Thread chris
On Mon, 23 Jun 2003 14:51:22 +0100, Dave Restall - System Administrator <[EMAIL PROTECTED]> wrote: Hi, Done a lot of Perl & PHP coding over the years and one thing I _really_ liked about Perl is its 'use strict;' directive. For those of you not familiar with Perl, this made the script die if yo

[PHP] Re: sessions and browser back

2003-06-27 Thread chris
On Wed, 25 Jun 2003 18:56:13 +0530, Bibhas Kumar Samanta <[EMAIL PROTECTED]> wrote: Hi, I am trying to create restricted pages for my php/mysql/apache server with sessions and passing session varibales to other pages for validation. Eventually I am doinng session_start() at the begining and ch

[PHP] sessions nightmare

2002-09-11 Thread Chris
ample): test1.php: Goto next page test2.php: After you click the hyperlink on test1.php, test2.php will load and the session ID is in the URL, but nothing is displayed in the echo for $SESSION[item] in test2.php. What is going on?!#!#!$# Thanks a million in advance!! -

Re: [PHP] Re: session_start function breaks flush function in 4.2.1

2002-09-25 Thread Chris
ate my script, since I'd written a work around - basically I echo the message, and recall the script with a meta refresh to do the actual processing. Thanks again, Chris "Michael Sims" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] is there a php version with curl already integrated?

2003-09-04 Thread Chris
hello, i must admit, i'm quite a nub when it comes to compiling php myself, so i'm wondering if there is any version of php with curl already bein part of it? i'm running xp with apache 1.3. cheers, chris -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Cleaning up my messy code

2003-09-29 Thread Chris
I am working on a fairly large scale (for myself anyway) project using PHP and MySQL. I am victim of teaching myself to program, not separating presentation from my code-- all the things that lead to masses of spaghetti code so atrocious even I can't figure out what I was doing an hour ago. I'm

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Chris
[EMAIL PROTECTED] (Warren Vail) wrote in news:[EMAIL PROTECTED]: > My own experience has shown that separation of a presentation layer > from an application layer, doesn't occur where we think it should. > HTML as a language has no capability to be dynamic, and if we are > going to ask that the

[PHP] mail(): can it reply with quoted text?

2003-10-01 Thread Chris
I wrote an ultra basic mail interface as a part of my client's customer administration area to handle emails. Basically, the standard email form gets stored in a database, and when they respond to the help request, they fill out the form and PHP emails the message. Now, they want to have the o

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Chris
On Wed, 01 Oct 2003 14:22:30 -0400, Greg Watson <[EMAIL PROTECTED]> wrote: I'll check up on the security implications. Unfortunately for me, this is the way I was taught PHP. I'll have to rethink things I suppose! (and make sure you understand the security implications that may arise from having

[PHP] Creating a blogrolling/link management system

2003-10-08 Thread Chris
I'm looking at using PHP to create a link/bookmark system similar to blogrolling.com, but for many links both weblog and not. Basically the system would archive 3-500 links, display them hierarchically, etc. Standard stuff that I see a lot of PHP code for. What I am wondering is what is the be

[PHP] Check for page change efficiently [was Re: Creating a blogrolling/link management system]

2003-10-08 Thread Chris
[EMAIL PROTECTED] (Paul Van Schayck) wrote in news:[EMAIL PROTECTED]: > First of all you need to check with the website you are going to check > if they really enjoy all bandwith required. And people will not see > their banners anymore. I'm not sure I understand-- I want to check to see if the

[PHP] Image resize with background.

2003-11-02 Thread Chris
place' image. Just a though. What do you guys think? -Chris [EMAIL PROTECTED]

[PHP] can I license a php script?

2003-11-14 Thread Chris
perty? Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I license a php script?

2003-11-14 Thread Chris
re, and sell it with Smarty? A: Yes, you can. Smarty is licensed under the [LGPL] and distributing an unmodified smarty source as part of a commercial product is just fine. Chris "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Robert Cummings <mailt

[PHP] Is PHP License GPL?

2003-11-17 Thread Chris
PHP become as popular as possible. 3 - What is dual-licensed mean? 4 - Where can I find this "loose license (Apache-style)" agreement? Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Unicode translation

2003-12-02 Thread Chris
n the submitting page and displaying page are identical. If a character doesn't fall into a particular character set, there is no way to store it. UTF-8 is a good catch all because it can handle just about any character out there. Plenty of information about Unicode can be found here:

RE: [PHP] register_globals problem

2003-12-03 Thread Chris
The only problem I see with that is that you're using the constants E_ALL and E_NOTICE in the .htaccess file. You can't use constants there, you need to use the actual number. (2047 & ~8) == 2039: php_flag register_globals 1 php_flag error_reporting "2039" Chris -Or

RE: [PHP] register_globals problem

2003-12-03 Thread Chris
Heh, sorry about that.. one more thing, php_flag is only for bollean values, this should work: php_flag register_globals on php_value error_reporting "2039" -Original Message----- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:10 AM To: [EMAIL PROTECTE

RE: [PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Chris
You would need to have two separate pages, theimage.php and displayimage.php. theimage.php will just return the image data in a readable format the browser knows is an image.: displayimage.php will be a normal php page with an image tag like this: Chris -Original Message- From

RE: [PHP] Cannot Use Database

2003-12-10 Thread Chris
se_db() is doing for you. Chris -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 7:41 PM To: Jason Wong Cc: PHP List Subject: Re: [PHP] Cannot Use Database Found the problem. I was using the query of "use database_name" rather t

RE: [PHP] How to use anchor with php post string to jump to a page???

2003-12-12 Thread Chris
PHP never sees the #RowNum3 part. That is used exclusively by the browser as it is not parsing instructions, just tells you what part of the parsed page to look at. Chris > > > http://www.yourserver.com/yourpage.htm?color=red#RowNum3 > > > target="doc">Jump --

RE: [PHP] can't access a GET variable on function?

2003-12-15 Thread Chris
$emailto is in the global scope, so it's not accessible like that. You can do it one of three ways: $emailto = $_GET['EmailTO']; function wtemp_mainbody() { global $emailto; print "Contact ("; echo $emailto; print ") Info"; } or $emailto = $_GET['EmailTO']; function wtemp_main

RE: [PHP] mail question (mime)

2003-12-16 Thread Chris
pace or a tab), otherwise it trys to create the boundary as a new header. 3) The final boundary must end in -- as well as start with it so: $message .="--i0o9u8h7g65v"; should be $message .="--i0o9u8h7g65v--"; Chris -Original Message- From: Bill Green [mailto:[EMAIL PR

[PHP] Internal Searches on Windows 2000 Server / Apache

2003-12-16 Thread Chris
long time and would be much better if there was another solution out there. Are there any other options out there for me? I'm open to just about anything. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Internal Searches on Windows 2000 Server / Apache

2003-12-16 Thread Chris
t needs to work reliably and quickly. Thanks once again, Chris -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 4:42 PM To: Chris; PHP List Subject: Re: [PHP] Internal Searches on Windows 2000 Server / Apache Try mnogosearch or aspseek

RE: [PHP] PHP: remote file open problem

2003-12-17 Thread Chris
FILES['Filename'] to access the various bits of data about the file. Try doing print_r($_FILES); in upload.php to see if it's there. I would guess that a host that does not allow the POST method would not allow file uploads at all. CHris -Original Message- From: [EMAIL PROTE

RE: [PHP] strange!

2003-12-17 Thread Chris
That should be $_POST['dowork'] , $_POST[dowork] will attempt to use dowork as a constant -Original Message- From: manoj nahar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 10:51 AM To: Tom Holton Cc: [EMAIL PROTECTED] Subject: Re: [PHP] strange! Change this line if($dowo

RE: [PHP] html or php to pdf whith pdflib?

2003-12-20 Thread Chris
d to do something about page wrapping but that should be quite easy. Also you could exec() an external programme like txt2pdf (<http://www.codecuts.com/mainpage.asp?WebPageID=156>). I have seen a html2pdf as well but can't remember where right now. Chris > -Original Message

RE: [PHP] mysql load_file retreival

2003-12-20 Thread Chris
LOAD_FILE() shouldn't be escaping the data. Are you actually calling : echo header()? the header function should not be echoed. header('Content-type: application/pdf'); echo result[0]; -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 9:29 AM

RE: [PHP] mysql load_file retreival

2003-12-20 Thread Chris
r print's, that would very likely cause the pdf to not be able to be read properly. Chris -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:36 AM To: Chris; PHP List Subject: RE: [PHP] mysql load_file retreival Oops, my bad on the pos

RE: [PHP] mysql load_file retreival

2003-12-20 Thread Chris
Gald to hear it works now. Are you base64 encoding it for any particular reason? Seems to me that it would waste a lot of db space as base64 encoding adds quite a bit to the filesize. Chris -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 2

RE: [PHP] List values

2003-12-21 Thread Chris
$value){ ?> > > -Original Message- > From: Chakravarthy Cuddapah [mailto:[EMAIL PROTECTED] > Sent: 21 December 2003 12:47 > To: [EMAIL PROTECTED] > Subject: [PHP] List values > > Can anyone pls tell me how to dynami

[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-22 Thread Chris
me to solve. Perhaps we can together find a solution Chris "Volker DåHn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, The following script works on any browser on windows xp. But not on a mac (osx) It simply shows the temp-directoryname. Is anybody out there who

[PHP] Can't upload file greater than 11kb

2003-12-22 Thread Chris
know the upload_max_filesize is 2M but something else is stopping the upload and I don't have a clue what it is. I know you should include in the above form but that is only a convenience for the user. This particular server is running php as a cgi module. Thanks Chris -- PHP General Ma

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
file is deleted from the temp dir. Still no idea what is going on. Chris "Larry Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The must be before the ...type="file"... tag and after Mozilla Firebird as the client) If you have it in there and

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
post_max_size: 8M upload_max_filesize: 10M what quota and disk space affect the web server process and temp dir This site is hosted by a third party: Disk space is 400MB only a fraction is used. temp dir -- unknown Chris -- ...and then Chris said... % % script on many php servers. However I

Re: [PHP] Can't upload file greater than 11kb

2003-12-23 Thread Chris
It has been my experience that max_file_size does terminate the upload process if you include it in the form. But you are right, if it gets to the upload, your stuck. LimitRequestBody is beyond my control as the site is hosted by a third party. Thanks Chris "Raditha Dissanayake&quo

RE: [PHP] How do I make these two MySQL queries into one line?

2003-12-24 Thread Chris
You should *really* consider yourself lucky, because this is a PHP list, not MySQL. "SELECT members.email FROM groups LEFT JOIN members USING(member_id) WHERE '$chosenGroup'=group_id AND 'yes'=active" You should really find a tutorial on Joins, jsut search

RE: [PHP] newbie mysql and php

2003-12-28 Thread Chris
alue is:',$dbdo; while($row= mysql_fetch_array($dbdo)){ ... Chris -Original Message- From: tony [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] newbie mysql and php hello I'm new with php just learning and i hav

Re: [PHP] Can't upload file greater than 11kb

2003-12-28 Thread Chris
Unfortunately, creating/editing .htaccess is not an operational requirement. Thanks anyway. Chris "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > if you are lucky LimitRequestBody could go into a .htaccess file (not > s

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Chris
[EMAIL PROTECTED] > post_max_size should be greater than upload_max_filesize. > > What is the setting for max_input_time? > > Chris wrote: > > post_max_size: 8M > > upload_max_filesize: 10M > > > > what quota and disk space affect the web server process and temp dir > >

Re: [PHP] Can't upload file greater than 11kb

2003-12-29 Thread Chris
r the same problem. Chris "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Both Marek and Asegu have raised a very valid point about > upload_max_filesize < post_max_size > hower Chris seems to have set this in megabytes but

[PHP] Re: Can't upload files > then 400K to MySQL

2003-12-29 Thread Chris
Have you taken a look at the post below: Can't upload files Greater than 11KB? We may have the same problem. "Ahmetax" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have the following PHP code to upload files to a MySQL table. > > It works fine, but, I can't upload any f

RE: [PHP] Optional Vars in Functions

2004-01-02 Thread Chris
http://www.php.net/functions -Original Message- From: Jason Williard [mailto:[EMAIL PROTECTED] Sent: Friday, January 02, 2004 1:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Optional Vars in Functions Is there a way to make a variable of a function optional? Thank You, Jason Williard

RE: Re[2]: [PHP] End slash, small problem.

2004-01-02 Thread Chris
You forgot to double slash the windows slash like: '\\' I would write that same functionality as follows: $sep = (PHP_OS == 'Windows')? '\\':'/'; if(substr($template_path,-1) == $sep)) $template_path .= $sep; -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Friday, Jan

[PHP] replacing null characters

2001-01-09 Thread Chris
n a 0 is the first character in $value, the rest are ok. I've tried like this.. - $value = str_replace(0,"",$value); $value = str_replace("","0",$value); this - $value = str_replace(0,"0",$value); no luck. any suggestions? Thanks,

[PHP] Warning

2001-01-10 Thread Chris
For those of you using Interbase: Chris CERT Advisory CA-2001-01 Interbase Server Contains Compiled-in Back Door Account Original release date: January 10, 2001 Last revised: -- Source: CERT/CC A complete revision history is at the end of this file. Systems Affected

[PHP] Easy Path ?

2001-01-11 Thread Chris
if I have a dir like this root\main\test.php how could I access this: from that script root\test\test.php basicly I mean how do I access a path before the current one

[PHP] Dir Help PLEASE

2001-01-11 Thread Chris
2 things, first how do I give something the filepath of a folder that proceeded it? Also, how can I set up subdomains like sub.domain.com?

[PHP] Apache Problem

2001-01-13 Thread Chris
I was always using pws until recently when I got Apache for windows. Unfortunately when apache gets to a php file it doesnt parse it, it thinks its a file to download. I uncommented the php lines in the http.conf file but still no use. Does anyone know how to fix this?

[PHP] MySQL + PWS Problems

2001-01-16 Thread Chris
Whenever I try to connect with ANY Mysql code on my cpu, I get an error saying it can't connect. I installed usingthe 4.04 win32 installer(heresey I know) which has mysql built in. Do I have to edit anything to all me to try the scripts on my personal cpu?

Re: [PHP] MySQL + PWS Problems

2001-01-18 Thread Chris
i downloaded the binaries but when I compiled it said I was missing string.obj - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001

Re: [PHP] MySQL + PWS Problems

2001-01-18 Thread Chris
i downloaded the binaries but when I compiled it said I was missing string.obj - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001

[PHP] Post without submit?

2001-01-25 Thread Chris
is there anyway to post without clicking a submit button?

[PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Chris
I've installed PHP using the 4.04 win32 installer. I recently downloaded the mysql(latest version) win32 installer and used that. But STILL mysql doesnt work. Can someone give a code snipet i can use to see if it is working?

Re: [PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Chris
ollowed the instructions and all went fine. Might be one place to start. > > HTH, > jb > > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 26, 2001 8:21 PM > To: PHP > Subject: [PHP] Help Please, MySQL is driving me insane > &

Re: [PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Chris
insane > Ummm try going into c:\mysql\bin and running winmysqladmin.exe or > MySqlManager.exe - I can't remember which one I ran. > > HTH, > jb > > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 26, 2001 8:29 PM > To

[PHP] Encryption

2001-02-21 Thread Chris
he problem? Or is the the access database that isn't properly storing the  ? Is there a better way to do this? Thanks, Chris

[PHP] PHP not proccessing input?

2001-02-23 Thread Chris
can read the posted info just fine. PHP does work fine with normal php forms. Why can PERL recognize my data, but PHP not, how are they handling the posted info differently? Is there a way I can get PHP to display the raw data that the script receives so I can see what is happening? Thanks for any help, Chris

[PHP] Help, Perl can, Php can't !

2001-02-26 Thread Chris
ead the posted info just fine. PHP does work fine with normal php forms. Why can PERL recognize my data, but PHP not, how are they handling the posted info differently? Is there a way I can get PHP to display the raw data that the script receives so I can see what is happening? Thanks for any help, Chris

Re: [PHP] Help, Perl can, Php can't !

2001-02-26 Thread Chris
Unfortuanetly, phpinfo is not telling me anything. It returns all the normal info, but it still seems to act like there was no data posted. > Put phpinfo() in the script to see what is going on.. > > > On Monday, 26 February 2001, at 09:12:11 (-0800), > Chris wrote: > >

Re: [PHP] Help, Perl can, Php can't !

2001-02-26 Thread Chris
fer, $ENV{'CONTENT_LENGTH'}); > Put phpinfo() in the script to see what is going on.. > > > On Monday, 26 February 2001, at 09:12:11 (-0800), > Chris wrote: > > > > > I am trying to post some info to my php script using the microsoft internet control: > > > >

[PHP] File sending?

2001-02-27 Thread Chris
file to a temp dir then give them the link, then worry about deleting the temp dir again. Thanks, Chris

[PHP] File downloading?

2001-02-27 Thread Chris
file to a temp dir then give them the link, then worry about deleting the temp dir again. ( I am not sure if my first email went through, I got an error back about the mailbox being full) Thanks, Chris

Re: [PHP] Help, Perl can, Php can't !

2001-02-27 Thread Chris
fer, $ENV{'CONTENT_LENGTH'}); > Put phpinfo() in the script to see what is going on.. > > > On Monday, 26 February 2001, at 09:12:11 (-0800), > Chris wrote: > > > > > I am trying to post some info to my php script using the microsoft internet control: > > > >

Re: [PHP] File downloading?

2001-02-27 Thread Chris
Great, thanks. I looked at the file(), but it sounded like is was just for local file use. > > Is it possible to send a file to a browser? > > Sure. > > file(); > > > I would like to allow people to download a file, but I don't > > want to give away the path to the file, so a normal link

[PHP] Help, looking for.

2001-02-27 Thread Chris
Hi again, Has anyone here come accross a Rich Text Format to HTML converted based on PHP? Thanks, Chris

[PHP] Info needed

2001-02-28 Thread Chris
Hi again, Has anyone here come accross a Rich Text Format to HTML converted based on PHP? Thanks, Chris

Re: [PHP] regex frustration

2001-02-28 Thread Chris
Try the perl compatible one, you can set a limit of how many times to replace: http://www.php.net/manual/en/function.preg-replace.php > I've tried and tried to no avail, can someone assist > I need to select the first space in a line like the following > Nelson Bob and Mary, 123 Street st., Ash

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
hat browsers/versions would not send this > information for Apache/PHP to set? I know it is because of the browser > that the client is using that this variable is unreliable. But what those > browsers/versions are, I don't know and am hoping someone can > answer. > > Chris

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
Not really, because the script filename is deleted and changed all the time, it doesn't matter if they paste the name into the form, since the file will no longer exist. > From: "Chris" <[EMAIL PROTECTED]> > > > Would it not be possible to have both the for

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
No wait, I see what you mean. You're right, sometimes the obvious is missed, but it sounded cool. > From: "Chris" <[EMAIL PROTECTED]> > > > Would it not be possible to have both the form page and the script page > that > > handles the form be

[PHP] MySQL - Problem with multiple INSERTs?

2001-03-05 Thread Chris
cluded everything below (including table schemata), to enable reproduction. It seems like a bug to me - the question is, is the bug in PHP, MySQL, or my brain? This is driving me CRAZY - Chris mysql_connect("localhost", "myusername", "mypassword"); my

  1   2   3   4   5   6   7   8   9   10   >