[PHP] Re: Freshmeat question

2003-01-21 Thread Martin Thoma
I am not new to programming, just to scripting languages. I have seen that Perl has some high advanced sintaxes for string processing, for example, but I don't know if the same level can also be achieved in PHP...? Sorry, I don't know that. I know that Perl has some regular-expressions, but

[PHP] How to make id/name table into array?

2003-01-21 Thread Daevid Vincent
Is there a better way to do this in PHP? It seems that a single number (key) and single name (value) would lend itself perfectly to an (indexed or associative) array. I would think there is some PHP API call that I'm unaware of that will just take the whole result set and stuff it into an array

[PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Hi, After a day and a half of pounding my head against the wall I believe I've identified the source of the problem. When I create and register the session in my login page - it does not carry forward to any other pages. I've found this by going through several different tutorials for

RE: [PHP] How to make id/name table into array?

2003-01-21 Thread John W. Holmes
Is there a better way to do this in PHP? It seems that a single number (key) and single name (value) would lend itself perfectly to an (indexed or associative) array. I would think there is some PHP API call that I'm unaware of that will just take the whole result set and stuff it into an

RE: [PHP] PHP Sessions

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
What version of PHP are you using and do you have globals turned on? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 21 January 2003 6:59 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 16:58, Tim Thorburn wrote: Hi, After a day and a half of pounding my head against the wall I believe I've identified the source of the problem. When I create and register the session in my login page - it does not carry forward to any other pages. I've found this

[PHP] Re: PHP Sessions

2003-01-21 Thread Foong
I used to have the same problem(sort of) I am not sure if my solution applies to you. Here is what i did, to pass session to one page to another you must call session_start(); ON EVERY PAGE to access registered session variables use the session super global array like: $_SESSION['userid'];

[PHP] Session Question

2003-01-21 Thread Sancar Saran
Hi, I'm working on a project. It uses large sql data to create pages. Last week I create some kind of cache info to create faster execution. It really works (system runs more than 10 times faster) But stroring cache data is problem. I use the session to store cache info. With using cache data

[PHP] DOWNLOAD

2003-01-21 Thread Shaun van den Berg
Hi , Im not sure if this can be done in PHP , i know PHP has upload features ! Does it have download features , wat i mean is the following : i want a link - click here to download - when you click on it , the download dialog box must appear - how do i do this ? Thanks Shaun van den Berg --

RE: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Hi, I'm using PHP 4.1.2 on the server with problems - it's hosted on a shared server and thus I have no direct access to much of anything. I have had this script running on versions 4.0.6 thru 4.2.2 with no problems until now. Here are the settings attained from phpinfo(); for the server that

RE: [PHP] DOWNLOAD

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Create a script that reads the contents of a file after sending headers eg: header(Content-type: text/plain); header(Content-Disposition: attachment; filename=downloaded.txt); readfile(downloaded.txt); exit(); The downloaded.txt can be any file subject to sending the correct headers and IE and

RE: [PHP] PHP Sessions

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Are globals turned on or off.. I don't see that setting in your copy and paste. Are you trying to access the session vars as $name or $_SESSION['name']?? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Tim Thorburn [mailto:[EMAIL

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 17:39, Tim Thorburn wrote: Hi, I'm using PHP 4.1.2 on the server with problems - it's hosted on a shared server and thus I have no direct access to much of anything. I have had this script running on versions 4.0.6 thru 4.2.2 with no problems until now. Here are

[PHP] $header = Location:........ being ignored!

2003-01-21 Thread Shams
Hi Group, I basically have some simple code such as: == if ( $_POST['passwd'] != $db['password'] {header(Location: loginfailed.html); } //else $header = Location: success.html; == however,

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Yes, the examples from the manual do work on the server using PHP 4.2.2 - however they do not work on the server using PHP 4.1.2. I've been using this same script for many sites with PHP versions 4.0.6 thru 4.2.2 with no problems until now which leads me to believe that I must attempt to

Re: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Stain
try with exit() after header(). bye, stain. Il 10:48, martedì 21 gennaio 2003, Shams ha scritto: Hi Group, I basically have some simple code such as: == if ( $_POST['passwd'] != $db['password'] {header(Location: loginfailed.html); }

Re: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Tom Rogers
Hi, Tuesday, January 21, 2003, 7:48:04 PM, you wrote: S Hi Group, S I basically have some simple code such as: S == S if ( $_POST['passwd'] != $db['password'] S {header(Location: loginfailed.html); S } S //else S $header = Location:

RE: [PHP] PHP Sessions

2003-01-21 Thread John W. Holmes
Yes, the examples from the manual do work on the server using PHP 4.2.2 - however they do not work on the server using PHP 4.1.2. I've been using this same script for many sites with PHP versions 4.0.6 thru 4.2.2 with no problems until now which leads me to believe that I must attempt to

RE: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
There is some discussion as to whether my globals are on or not ... I am using session_register to name my sessions, and then the global command later on on the individual pages to remember which session it is we're looking for. It would be simply priceless if sessions were broken in 4.1.2 -

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 17:59, Tim Thorburn wrote: Yes, the examples from the manual do work on the server using PHP 4.2.2 - however they do not work on the server using PHP 4.1.2. I've been using this same script for many sites with PHP versions 4.0.6 thru 4.2.2 with no problems until now

Re: [PHP] PHP Sessions

2003-01-21 Thread Justin French
on 21/01/03 9:25 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: There is some discussion as to whether my globals are on or not ... I am using session_register to name my sessions, and then the global command later on on the individual pages to remember which session it is we're looking for. No

RE: [PHP] PHP Sessions

2003-01-21 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 10:20 Wasn't it 4.1.2 that had broken sessions? I remember one version that came out that was just broke and you had to do a bunch of workarounds to get things to work normally. Was that it?

RE: [PHP] PHP Sessions

2003-01-21 Thread Rich Gray
Sorry I'm a bit late in on this thread but I know there is a problem with sessions with 4.1.2 with IIS 5 over Win2K... is that your platform? I encountered it a while back and there is a hack/workaround which I can dig up if you need it... HTH Rich -Original Message- From: Tim Thorburn

Re: [PHP] Re: Re: Freshmeat question

2003-01-21 Thread David T-G
Deco -- ...and then De deco said... % % I am not new to programming, just to scripting languages. I have seen that Perl has some high advanced sintaxes for string processing, for example, but I don't know if the same level can also be achieved in PHP...? PHP is quite perl-ish, and supports

[PHP] serious problem with mbstring functions

2003-01-21 Thread Simon Dedeyne
When trying to do a search in a mbstring, I sometimes(!) get the following error: Warning: mb_ereg_search()[function.mb-ereg-search]:mbregex compile err: premature end of regular expression in c:\myfile.php on line 12. It's only the case for some strings. Why is this? I assume it must

RE: [PHP] DOWNLOAD

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Change the link to form_download.php then create a file called form_download.php and do this: ?php header(Content-type: application/msword); header(Content-Disposition: attachment; filename=form.doc); readfile(form.doc); exit(); ? That will do it for you. Also you should reply to all and

Re: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Neil Freeman
Looks like you're missing a closing bracket on the IF statement as well. Neil Shams wrote: ** This Message Was Virus Checked With : SAVI 3.61 September 2002 Last Updated 17th January 2003

Re: [PHP] Help with Error, I am Trying!!

2003-01-21 Thread Chris Hewitt
Karl James wrote: Parse error: parse error, unexpected '}' in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 5 http://www.ultimatefootballleague.com/Create_Account.phps I'm Trying to get the values of the form to echo out and to insert into my managers table. If you don't

Re: [PHP] Select multiple boxes

2003-01-21 Thread Chris Hewitt
John W. Holmes wrote: How does php know what suitable form data is? I guess it could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old

[PHP] ADV SQL Help Needed.

2003-01-21 Thread [-^-!-%-
Hello everyone, I need help with the following query. I have a table with a column named 'RISK_LEVEL'. RISK_LEVEL can hold three values: Low, Moderate, and High. I need a query that counts the number of occurences of each option. Now, I know I can do 'select count(risk_level) as levelCount

Fw: [PHP] DOWNLOAD

2003-01-21 Thread Rick Emery
Neither HTML nor PHP open the download (Save/Save As) dialog. This is a function of the browser upon clicking any file link, other than an HTML file. - Original Message - From: Shaun van den Berg [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 12:39 AM Subject: [PHP] DOWNLOAD

[PHP] Help with e-mail

2003-01-21 Thread Dankshit
Is there a way to autenticate an SMTP server in my PHP.ini??? In my development site, i need to autenticate a SMTP, but in the PHP.INI does not have an option to autenticate..does anybody has any solution for this?? Thanks, Rodrigo

Re: [PHP] Help with e-mail

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 20:13, Dankshit wrote: Is there a way to autenticate an SMTP server in my PHP.ini??? In my development site, i need to autenticate a SMTP, but in the PHP.INI does not have an option to autenticate..does anybody has any solution for this?? There is at least one

Re: [PHP] ADV SQL Help Needed.

2003-01-21 Thread Tim Ward
off the top of my head SELECT risk_level, COUNT(risk_level) AS rl_count GROUP BY risk_level should do it, though I'd have to experiment with what's inside the COUNT(). Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: [-^-!-%- [EMAIL PROTECTED] To:

[PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rea_David
Hi All, I'm trying to add a variable to an oracle database but it fails due to the fact that it contains quotation marks. These have to be present for the end user. My Script is as follows: === if ($conn == true) {

Re: [PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rick Emery
$query = UPDATE ACTIVITY SET COMMENTS = \'$updatecomments\' WHERE ACTIVITY_ID =\'$actcode\'; - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 6:53 AM Subject: [PHP] Adding a variable to oracle that contains quotation marks?? Hi All,

Re: [PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Henry
Once you use double quota mark the character BackSlash doesn't need anymore that's my experience ^_^ - Original Message - From: Rick Emery [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 8:56 PM Subject: Re: [PHP] Adding a variable to oracle that

[PHP] Multi-Byte String Functions

2003-01-21 Thread Naqashzade, Sadeq
Hi all, I'm newbie of PHP. Can any one help me and explain how can use Multi-Byte String Functions? My national language is Farsi and I force to use UTF-8 for my works. but I have several problem when I need use it in PHP. I think Multi-Byte String Functions are designed for some ones like me. but

[PHP] changing a key in an array

2003-01-21 Thread David T-G
Hi, all -- If I have an associative array Array ( [t] = Array ( [t1] = temp1 [t2] = temp2 ) [f] = Array ( [f1] = foo1 [f2] = foo2 ) ) and I want to change the key 't' to, say,

[PHP] odbc..

2003-01-21 Thread Edward Peloke
Hello all, I know I can connect to another db through an odbc connection in php. Can I use php to create the connection initially? I will be uploading an access db from the users and then moving the data over into my mysql db. Since this will all be done automatically, I will need php to

[PHP] re-ordering keys in an array

2003-01-21 Thread David T-G
Hi, all -- If I have an associative array $a like Array ( [t] = temp1 [u] = ugh [m] = moo ) is there any way to re-order the keys so that foreach (array_keys($a) as $k) { print $k\n ; } will print t m u for me? At the moment it seems my only option is

[PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
Hello everybody, I'm working on a class but having a lot of problems... probably my understanding of PhP-OOP is not so good ... Here's the class: I found it on the web and I've tried to personalize it to fit my needs... ?php class FormV { var $errorList; function FormV() {

Re: [PHP] re-ordering keys in an array

2003-01-21 Thread Jason k Larson
There are many pre-defined functions to manipulate the sort order of arrays and it's keys. However sometimes, to fit special needs, you just have to do it manually. Here's the useful PHP reference manual links to better understand what's available. http://www.php.net/manual/en/ref.array.php

Re: [PHP] changing a key in an array

2003-01-21 Thread Jason k Larson
My first question back would be why you create on array with keys you know you want to change, or why in that case it became necessary to dereference the original key. $a['tmp'] = $a['t']; // exact same values by reference (no copy) Only other way I can think of at the moment is to create a

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Rich Gray
PHP does not yet support private methods ... your problem with getValue() is most probably because register_globals is off in your php.ini try substituting $_POST[] for $HTTP_POST_VARS[] and it may start to work... HTH Rich -Original Message- From: Nicholas Wieland [mailto:[EMAIL

Re: [PHP] changing a key in an array

2003-01-21 Thread David T-G
Jason -- ...and then Jason k Larson said... % % My first question back would be why you create on array with keys you % know you want to change, or why in that case it became necessary to % dereference the original key. A fair question :-) I'm writing a picture gallery add-on which will

[PHP] Page Rendering

2003-01-21 Thread Bill Arbuckle, Jr.
Hi all. I am having some problems with a script which reads information from a database and creates a table. It works in IE but not Netscape. I call myself going through the tags to make sure all that were open were closed because Netscape doesn't like unfinished business. What I have is a

Re: [PHP] re-ordering keys in an array

2003-01-21 Thread David T-G
Jason, et al -- ...and then Jason k Larson said... % % There are many pre-defined functions to manipulate the sort order of % arrays and it's keys. However sometimes, to fit special needs, you just % have to do it manually. Here's the useful PHP reference manual links to % better understand

[PHP] Input field array ends up as Array string

2003-01-21 Thread Dan Delaney
Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the same name (interests[]). These values then ended up in an array ($_POST['interests']), which I then imploded into a comma separated list ($interests = implode(', ',

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Rick Emery
show us code - Original Message - From: Dan Delaney [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 8:33 AM Subject: [PHP] Input field array ends up as Array string Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Joseph W. Goff
For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little formating while I checked the code. Try

[PHP] No data being found

2003-01-21 Thread Roddie Grant
I have a small site in development which takes details of coming church services from a MySQL database. This bit is at the bottom of http://www.rugbyurc.org.uk/spirit/spirit_intro.php (hosted by an ISP) and works fine. I've just got OSX working on my Mac and want to get the site running on that

Re: [PHP] Page Rendering

2003-01-21 Thread Rick Emery
$PHP_SELF is not interpreted by the browser. The browser shows only what is sent to it; PHP variables are not sent to the browser. Take the simple solution: don't use PHP_SELF; just use the file name - Original Message - From: Bill Arbuckle, Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] download script

2003-01-21 Thread Martin
i need a script that make downloads from files but it must support resuming for getright and download acelerator pro. Thanks... I have this classic download script , but does not support resuming error_reporting(0); header(Last-Modified: . gmdate(D, d M Y H:i:s T,

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Leon Mergen
Rick Emery [EMAIL PROTECTED] wrote in message 024801c2c15b$1a770e70$0500a8c0@honeybee">news:024801c2c15b$1a770e70$0500a8c0@honeybee... show us code Learn how to quote. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page Rendering

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 22:26, Bill Arbuckle, Jr. wrote: This code is at the top of an include file which is included in pics.php. It seems that $PHP_SELF is interpreted differently in *some* instances between the two browsers. I can't figure it out because PHP_SELF is a server side

[PHP] str_replace an include

2003-01-21 Thread jesse
Hello all, I'm trying to replace a tag with an include in a template scenario. For example: str_replace(!--linkTag--!, include links.php, $string); This obviously doesn't work, but I'm wondering if anybody knows of a good way to do this. Thanks a bunch, Jesse Lawrence -- PHP General

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 22:33, Dan Delaney wrote: Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the same name (interests[]). These values then ended up in an array ($_POST['interests']), which I then imploded into a comma

Re: [PHP] Page Rendering

2003-01-21 Thread David T-G
Bill -- ...and then Bill Arbuckle, Jr. said... % ... % This code is at the top of an include file which is included in pics.php. % It seems that $PHP_SELF is interpreted differently in *some* instances % between the two browsers. I can't figure it out because PHP_SELF is a Dunno much about

RE: [PHP] download script

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
I have never done a script that supports resume but this is the logic you need to follow to work out the protocol behaviour. - Create a download script as per below start downloading then stop the web server. - Change the script to e-mail you the headers from the script request. - Restart the web

[PHP] Re: str_replace an include

2003-01-21 Thread J Smith
I'd recommend looking at the output buffering functions. Something like this would probably work... ob_start(); include(links.php); $file = ob_get_contents(); ob_end_clean(); The result of parsing and executing links.php will be in $file. Do with it what you will. J Jesse wrote: Hello

RE: [PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rea_David
Thanks Rick Henry, but I am still unable to add single quotation marks '. When I added the \' to the variable as given below (thanks again Rick) I get the following error when trying to add anything, regardless of ': Warning: Ora_Parse failed (ORA-00911: invalid character -- while processing OCI

Re: [PHP] Page Rendering

2003-01-21 Thread Chris Shiflett
--- Bill Arbuckle, Jr. [EMAIL PROTECTED] wrote: It works in IE but not Netscape. Nearly every time this happens, you have invalid HTML. Try stripping out all of the HTML, leaving only the plain text content of the page in question. Then, slowly add back the markup, testing each change. Also,

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 23:03, Jason Wong wrote: Undo any configuration changes made recently, downgrade any recent upgrades etc. To paraphrase Newtown's First Law of Motion: Sorry, Newton's First Law of Motion :) Any working system tends to remain in that state unless external force is

RE: [PHP] str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
There a few ways of doing this but the following is one of the easier and quickest off the top of my head. If you know the name of the tag and the include this will work if you don't or want it to be dynamic you will need to have some reg for the following. (how are you getting the $string)? //

Re: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Chris Shiflett
--- Shams [EMAIL PROTECTED] wrote: if ( $_POST['passwd'] != $db['password'] {header(Location: loginfailed.html); } You never add the closing parenthesis to your if statement. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dreading OOP

2003-01-21 Thread Larry Brown
I hope this is not too far OT, however, you are the best resource I have for PHP and if anyone would know, it would be you guys. I have been writing scripts off and on for the past year and have an application written in PHP for a business' internal use. I have used snippets of Object oriented

[PHP] Re: str_replace an include

2003-01-21 Thread jesse
Thanks a lot, I think that will be the trick, but I'm still having a bit of a problem. Here's my scenario: class mainReplace{ function feedLinks(){ ob_start(); include('links.php'); $file = ob_get_contents(); ob_end_clean(); return $file; } } $replace = new

[PHP] array_sum, multidimensional arrays?

2003-01-21 Thread Chad Day
Is it possible to use array_sum to add up values in multidimensional arrays? I have an array like: $array[0][VALUE] = 10; $array[1][VALUE] = 8; $array[2][VALUE] = 5; $array[0][OTHERVALUE] = 20; $array[1][OTHERVALUE] = 15; $array[2][OTHERVALUE] = 9; Thanks, Chad -- PHP General Mailing List

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
Where are you getting $read from?? That should be $replace = new mainReplace(); // notice the brackets Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 1:38 AM To:

RE: [PHP] dreading OOP

2003-01-21 Thread Johnson, Kirk
-Original Message- However, my mind apparently works different and I keep trying to relate the OOP structure to what I already know which equates an object to a function. I am resolving to purchase a book dedicated to instruction in the inns and outs of OOP. Specifically at it

Re: [PHP] dreading OOP

2003-01-21 Thread Peter Hutnick
Larry Brown said: equates an object to a function You'd be better off trying to equate an object to a data type. -Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie Questions

2003-01-21 Thread Bryan Cassidy
Could someone point me to a VERY good doc for learning PHP for a NEWBIE!!! Something I can understand from the beginning to the end. YES I am willing to put my time into learning and reading docs as long as they are clear and made for what they say they are made for. I wont waste my time with

Re: [PHP] dreading OOP

2003-01-21 Thread Chris Boget
equates an object to a function You'd be better off trying to equate an object to a data type. Why is that? Please explain? I do not mean to sound trite. I do not know and am very curious to hear more. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Jonathan Boles
PHP 4.3.0, Apache, Win32. I'm driving myself mad trying to work out why I can't get HTTPS pages. I understand there are two options, using fopen() with openssl installed, and using curl. I've installed openssl extension, but using fopen STILL won't work. Don't have a clue why. Using curl, I can

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Dan Delaney
Well, in the process of pulling out some code into a sample page to send to the list I found the problem. It was yesterday when someone who was testing it told me about the problem, but the problem must have been going on for a week, because a week ago I added code to a global include script

Re: [PHP] Newbie Questions

2003-01-21 Thread Neil Freeman
Have a look on devshed.com Bryan Cassidy wrote: Could someone point me to a VERY good doc for learning PHP for a NEWBIE!!! Something I can understand from the beginning to the end. YES I am willing to put my time into learning and reading docs as long as they are clear and made for what they say

RE: [PHP] Newbie Questions

2003-01-21 Thread Edward Peloke
This is geared to php and mysql but I started by downloading the first four chapters of this book, which are free. http://sitepoint.com/books/?bookid=kevinyank Eddie -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 10:52 AM To: Bryan

Re: [PHP] Newbie Questions

2003-01-21 Thread David T-G
Bryan -- [BTW, I could not find your key on us.php.net or eu.php.net; is it on a keyserver?] ...and then Bryan Cassidy said... % % Could someone point me to a VERY good doc for learning PHP for a % NEWBIE!!! Something I can understand from the beginning to the end. YES Do you have any

[PHP] encrypt data with pgp

2003-01-21 Thread ermelir
Hello everyody, I search to encode a string with a strong alogrythm. I choose pgp my desktop is a windows computer; I have found a function but I can't use it because on windows, pgp cant encrypt on commandline. have you found something for windows station? your help will be helpfull.

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Stephan Seidt
Is fopen_wrapper in php.ini set to yes ? Jonathan Boles wrote: PHP 4.3.0, Apache, Win32. I'm driving myself mad trying to work out why I can't get HTTPS pages. I understand there are two options, using fopen() with openssl installed, and using curl. I've installed openssl extension, but using

[PHP] security question regarding including files..

2003-01-21 Thread Chad Day
I want to give my users the ability to submit a URL to a database, then when they pull up their page, their photo is included .. what I'm worried about is them pointing the link to some malicious code or something.. Obviously I can validate the file extension (.gif or .jpg) .. and I'm going to

Re: [PHP] Newbie Questions

2003-01-21 Thread Bryan Cassidy
I just know some very basic html. lol. ya i know i know. I just havent had time to set down and learn the things I want to learn until now. On Tue, 21 Jan 2003 11:00:29 -0500 David T-G [EMAIL PROTECTED] wrote: Bryan -- [BTW, I could not find your key on us.php.net or eu.php.net; is it on a

RE: [PHP] Adding a variable to oracle that contains quotation mar ks??

2003-01-21 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 15:05 Thanks Rick Henry, but I am still unable to add single quotation marks '. When I added the \' to the variable as given below (thanks again Rick) I get the following error when

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
Timothy Hitchens ) wrote: Where are you getting $read from?? That should be $replace = new mainReplace(); // notice the brackets $read is the contents of the file that I'm reading. I actually do have $replace = new mainReplace(); in my code, I just forgot the brackets in my last message;)

Re: [PHP] security question regarding including files..

2003-01-21 Thread Stephan Seidt
I guess you use some webserver, let's take apache. Apache's mime.conf has set several extensions, also php extensions. So only .php, .php3, .php4 files will be parsed by php. Chad Day wrote: I want to give my users the ability to submit a URL to a database, then when they pull up their page,

Re: [PHP] encrypt data with pgp

2003-01-21 Thread David T-G
ermelir -- [You know, this message really has nothing to do with converting ASP to PHP...] ...and then ermelir said... % % Hello everyody, Hi! % % I search to encode a string with a strong alogrythm. I choose pgp my % desktop is a windows computer; I have found a function but I can't use

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
I can't see what else to suggest just quickly. - what about just as a function not a class?? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 2:12 AM To: [EMAIL

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
I'll give it a try. I might just put the contents of the include file into the main file, and approach it like that. Thanks a lot for your help. Timothy Hitchens ) wrote: I can't see what else to suggest just quickly. - what about just as a function not a class?? Timothy Hitchens (HiTCHO)

Re: [PHP] ADV SQL Help Needed.

2003-01-21 Thread [-^-!-%-
This sample also work in PhpMyAdmin, but not from the php code. Please advise. **see previous post, for sample code** Thanks Rick. -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On

Re: [PHP] Newbie Questions

2003-01-21 Thread [-^-!-%-
Also checkout webmonkey.com and devarticles.com =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Tue, 21 Jan 2003, Neil Freeman wrote: Have a look on devshed.com Bryan Cassidy wrote:

Re: [PHP] security question regarding including files..

2003-01-21 Thread Chris Shiflett
--- Chad Day [EMAIL PROTECTED] wrote: I want to give my users the ability to submit a URL to a database, then when they pull up their page, their photo is included .. what I'm worried about is them pointing the link to some malicious code or something.. Your instincts serve you well. There

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Jonathan Boles
Do you mean allow_url_fopen? It is set to 'on'. There's no fopen_wrapper setting Reading from http:// using fopen works fine. It's the https:// that doesn't work. - Original Message - From: Stephan Seidt [EMAIL PROTECTED] To: Jonathan Boles [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

Re: [PHP] dreading OOP

2003-01-21 Thread Peter Hutnick
Chris Boget said: equates an object to a function You'd be better off trying to equate an object to a data type. Why is that? Please explain? I do not mean to sound trite. I do not know and am very curious to hear more. Consider two approaches to extending your procedural programming

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Jonathan Boles
This seems to have fixed the problem :-) But there's another error. fopen works now, but fgets won't. I'm getting this error: Warning: fgets() [function.fgets]: SSL: fatal protocol error in blah\blah\blah.php on line 51 Does anyone know what could be causing this? PHP 4.3.0, Apache, Win32.

Re: [PHP] DOWNLOAD

2003-01-21 Thread Jim Lucas
People often for get about a little problem that happens with the ? $name_the_file = the name you want the file to be called when prompted to download; $file_to_download = /path/to/file/filename.scp; // test for internet explorer in the conditional for the following if..then..else if (msie) {

[PHP] Finding out if a table exists

2003-01-21 Thread Mako Shark
Is there a way of finding if a table exists with only one command in MySQL? I've looked through the MySQL functions, and the closest I've gotten to what I need is mysql_list_tables or mysql_tablename (I'll have to check into these a little more), but I was hopefully looking for something that

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Stephan Seidt
ah sorry, mixed some configuration files ;) Jonathan Boles wrote: Do you mean allow_url_fopen? It is set to 'on'. There's no fopen_wrapper setting Reading from http:// using fopen works fine. It's the https:// that doesn't work. - Original Message - From: Stephan Seidt [EMAIL

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
On 2003.01.21 15:42 Joseph W. Goff wrote: For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread @ Nilaab
Nicholas, I think I know where you found this code. I have the same code, except I modified it a little to work for me. You may need to change it for your needs. When I first used it, it didn't work. I had to modify it to make it work. My code is usually kind of sloppy, but maybe you would get

  1   2   >