Re: [PHP] security

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

RE: [PHP] tail a file

2001-10-26 Thread Martin Towell
if you're using unix, there's the tail command: ?php $results = `tail -n 100 logfile.log`; echo pre$results/pre\n; ? -Original Message- From: Yamin Prabudy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 4:08 PM To: [EMAIL PROTECTED] Subject: [PHP] tail a file Hi there

RE: [PHP] security

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

[PHP] problem with a while loop

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

[PHP] fsockopen and https

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

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

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

[PHP] MySQL4

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

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

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

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

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

[PHP] PHP, SWF and XML

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

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

2001-10-26 Thread Joseph Blythe
Personally I would look at a templating system, there are lots of them around. I have only used FastTemplates and Smarty I would reccommend the later. http://www.phpinsider.com/php/code/Smarty/ or have a look at for a few more: http://phpclasses.upperdesign.com/browse.html/class/1 Hope this

RE: [PHP] problem with a while loop

2001-10-26 Thread Niklas Lampén
What happens there is this: $email = 1. row; $email = 2. row; $email = 3. row; echo $email; You really need to put echo $email inside the loop or use '.=' to set up values to $email. Niklas -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: 26. lokakuuta 2001

Re: [PHP] problem with a while loop

2001-10-26 Thread David Robley
On Fri, 26 Oct 2001 16:40, Richard Kurth wrote: I am trying to get the data out of the while loop if I echo $email inside the } it gives me all of the data but if I echo it out side of the loop it only gives me one record even though I know there is more. How can I get this to work

Re: [PHP] problem with a while loop

2001-10-26 Thread Richard Baskett
Or you can do something like: $query = SELECT * FROM members Where Company LIKE '%$search1%'; $result = mysql_db_query($dbName, $query); $numRows = mysql_num_rows($result); for ($i=0; $i$numRows; $i++) { $row = mysql_fetch_array($result); $email[] = $row[email]; } OR while ($row =

Re: [PHP] PHP File not found

2001-10-26 Thread Chris M
The only pages that are getting this error are the ones that php is mapped to parse (i.e. .html .php .phtml) if I go to a page that doesn't exist with a .htm or .cgi extension etc it works fine and I get the standard IIS 404 error page. But when it is a page that php processes thats when the CGI

[PHP] Arrays

2001-10-26 Thread Ashley M. Kirchner
I'd like to create an array of available resources, and be able to check it every time. What I'd like to do is something like; $site = array( section1 = #, section2 = #, etc.. ) where section* is a STRING variable and # is an INT (if it's even possible to do that) Once I

Re: [PHP] Does unset() help performance?

2001-10-26 Thread Christian Reiniger
On Friday 26 October 2001 03:42, Julio Nobrega wrote: If I unset variables/arrays/etc, that I will not use on my script anymore, should I expect a performance increase? No. unless these variables use up so much memory that the system starts swapping. -- Christian Reiniger LGDC Webmaster

[PHP] variable gets lost in function problem again...

2001-10-26 Thread Spunk S. Spunk III
Sorry all but I really need to figure this out. Here's a recap of my problem: I have an two dimensional array that is returned from code from an included file. I'm assigning parts of the array to variables ( $variable = $array[key][value]; ). This works fine and can be printed until I send it

[PHP] splitting up search results, need som ideas. have done 1 2 3 4 5 6 7 8 9 10 11 12 stuff ..

2001-10-26 Thread Nicklas Bondesson
hi everybody! have done a function that splits up the search results into multiple pages and are displayed using a scroll bar like this: 1 2 3 4 5 6 7 8 9 10 11 12 what i need (when the database grows) is a function that limits the scrollbar to only show like 10 pages at a time. i can't

[PHP] GD Copying Images

2001-10-26 Thread Alberto
I have 2 images, and I want to copy/reescale a block from image A to image B, when I do it (imagecopyresized) I get a gray square on image B, I think that the problem is palette colors, how can I copy palette from image A to image B? Thnx -- PHP General Mailing List

[PHP] Error management

2001-10-26 Thread iuhi hkj
How can I know the line and the file from where a function has called. I already know __FILE__ and __LINE__, but I don't want to transmit them in arguments. Exemple : --- toto.php --- 1 : include(test.inc) 2 : 3 : test(bidule); 4 : --- test.inc --- 1

Re: [PHP] PHP File not found

2001-10-26 Thread DL Neil
The only pages that are getting this error are the ones that php is mapped to parse (i.e. .html .php .phtml) if I go to a page that doesn't exist with a .htm or .cgi extension etc it works fine and I get the standard IIS 404 error page. But when it is a page that php processes thats when the

[PHP] Error management

2001-10-26 Thread iuhi hkj
How can I know the line and the file from where a function has called. I already know __FILE__ and __LINE__, but I don't want to transmit them in arguments. Exemple : --- toto.php --- 1 : include(test.inc) 2 : 3 : test(bidule); 4 : --- test.inc --- 1 :

Re: [PHP] variable gets lost in function problem again...

2001-10-26 Thread DL Neil
I have an two dimensional array that is returned from code from an included file. I'm assigning parts of the array to variables ( $variable = $array[key][value]; ). This works fine and can be printed until I send it through a function eg. ( ereg_replace( , _, $variable); ). After this,

Re: [PHP] GD Copying Images

2001-10-26 Thread Kodrik
On Friday 26 October 2001 05:03 am, you wrote: I have 2 images, and I want to copy/reescale a block from image A to image B, when I do it (imagecopyresized) I get a gray square on image B, I think that the problem is palette colors, how can I copy palette from image A to image B? Thnx

Re: [PHP] GD Copying Images

2001-10-26 Thread Alberto
Where can I get that code for PHP 4.0.6? I added to ./ext/gd/gd.c /* {{{ proto int imagecopyresizedbicubic(int dst_im, int src_im, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h) Copy and resize part of an image */ PHP_FUNCTION(imagecopyresizedbicubic) {

Re: [PHP] Arrays

2001-10-26 Thread Brad Hubbard
On Fri, 26 Oct 2001 18:17, Ashley M. Kirchner wrote: I'd like to create an array of available resources, and be able to check it every time. What I'd like to do is something like; $site = array( section1 = #, section2 = #, etc.. ) where section* is a STRING variable and # is an

[PHP] Debugging aids (after the style of: Error management)

2001-10-26 Thread DL Neil
Don't you like the side-benefits of this list, eg that someone comes up with a question that gets your thought processes running or suggests an idea you'd not otherwise come up with!? So further to the question: How can I know the line and the file from where a function has called. I already

RE: [PHP] web automatization problem

2001-10-26 Thread SED
Hi, This solution works in most browsers: table width=(image width) align=(left,right) trtd img (your image) /td/tr trtd (your text) /td/tr /table Regards, Sumarlidi Einar Dadason SED - Graphic Design

Re: [PHP] Re: function names

2001-10-26 Thread Olexandr Vynnychenko
Hello Mike, Thursday, October 25, 2001, 10:09:18 PM, you wrote: MF Actually your problem is with the function itself. In order for it to work MF you need to use the this keyword: MF class A { MF var $xxx; MF function print() { MF echo $this-xxx; MF } MF } MF You may also

Re: [PHP] Write html to file

2001-10-26 Thread Richard Baskett
run the function stripslashes() on it this will get rid of the \ in front of the single and double quotes. I do not know how to help you with the non breaking space problem though. I have no clue why it would replace that... very strange.. Rick Hi I have a problem with writing html code

Re[2]: [PHP] function names

2001-10-26 Thread Olexandr Vynnychenko
Hello Steve, Thursday, October 25, 2001, 10:30:16 PM, you wrote: SC On Thursday, October 25, 2001, at 02:08 PM, Martín Marqués wrote: On Jue 25 Oct 2001 15:36, you wrote: Hello php-general, I have such code: class A { var $xxx; function print() {

Re: [PHP] Write html to file

2001-10-26 Thread Krzysztof Kocjan
There is option in PHP (php.ini file) magic_quotes_runtime set it Off.It shuold help You. Restart apache after. Krzysztof [EMAIL PROTECTED] wrote: Hi I have a problem with writing html code to a file.Every time i write html to a file PHP replace every character into a \

[PHP] Re: MySQL4

2001-10-26 Thread Henrik Hansen
[EMAIL PROTECTED] (Leon Mergen) wrote: Hello, Just curious, before I get into the heat, but did anyone who already has installed MySQL 4 had any problems compiling PHP? read somewhere that as long as you use the built in mysql lib and not mysql4 it should work. -- Henrik Hansen --

[PHP] Uploading and linking to images from a admin panel!

2001-10-26 Thread joe donut
Hi Folks I can write to txt files, no problem! What is the easiest way to get my end user to upload images, is there a method to generate an online form that can handle the input of txt and images so that the images will get uploaded and then automatically linked to a template??? Hope someone

[PHP] store file using socket/fopen

2001-10-26 Thread speedfreak
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? ?php $ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);

[PHP] Store file remotely using socket/fopen

2001-10-26 Thread dirk . maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? ?php $ftp=fsockopen(ftp.server.com, 21, $errno, $errstr, 60);

[PHP] String breaking up

2001-10-26 Thread Dan McCullough
I was looking to take a string like Dan and return it like D A N is it the str function that does that = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family

[PHP] Breaking a string

2001-10-26 Thread Dan McCullough
I was looking to take a string like Dan or Dan is great and return it like D a n or D a n i s g r e a t is it the str function that does that and if so does someone have an example? thanks = Dan McCullough --- Theres no

Re: [PHP] String breaking up

2001-10-26 Thread Richard Baskett
Strings are arrays, so you can print out a string by doing something like this: $string = hey there!; for ($i=0; $icount($string); $i++) { echo strtoupper($string[$i]); } That's about all there is to it! :) Use the strtoupper() function if you mean to have everything uppercase like in your

Re: [PHP] String breaking up

2001-10-26 Thread Richard Baskett
To be more precise add the br at the end of the line between the for loop: Strings are arrays, so you can print out a string by doing something like this: $string = hey there!; for ($i=0; $icount($string); $i++) { echo strtoupper($string[$i]).'br'; } That's about all there is to it! :) Use

RE: [PHP] String breaking up

2001-10-26 Thread Kees Hoekzema
Strings are arrays, so you can print out a string by doing something like this: Yups, this is possible, but i think he wants to have a newline for each character, you can doe this excelent with a small addition to your example: $string = hey there!; for ($i=0; $icount($string); $i++) {

Re: [PHP] String breaking up

2001-10-26 Thread _lallous
$string = hey there!; $out = ''; for ($i=0; $icount($string); $i++) { $out .= strtoupper($string[$i]) . \n; // or br if output is to browser } echo $out; Richard Baskett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Strings are arrays, so you can print

[PHP] Re: tail a file

2001-10-26 Thread _lallous
to tail a file use the + flag when opening that log file, and write a simple PHP script that spits that file to you, ie: showlog.php ? readfile('logfile.txt'); ? Yamin Prabudy [EMAIL PROTECTED] wrote in message 003901c15de4$82f0cb70$fe2796ca@dusak">news:003901c15de4$82f0cb70$fe2796ca@dusak... Hi

Re: [PHP] PHP-ASP

2001-10-26 Thread MrBaseball34
In article 023601c15de3$c05d8bc0$[EMAIL PROTECTED], [EMAIL PROTECTED] says... Is the PHP code you provided below working, I need something like than and i wonder if i could use it. NOBBY Actually, right now I'm using some code stripped from the PHP-Nuke Weather add-on. But it gets its

RE: [PHP] splitting up search results, need som ideas. have done 1 2 3 4 5 6 7 8 9 10 11 12 stuff ..

2001-10-26 Thread Polleunus Pascal
Hi, I'm currently working on something like that. I had already done this but I need to find the file! I don't have time right now but I'll send you another email later :o) What do you think about using a form: input for max rows and drop-down for the 1 2 3... (for example: max rows=10;

Re: [PHP] String breaking up

2001-10-26 Thread Dan McCullough
This only returns the first letter? --- _lallous [EMAIL PROTECTED] wrote: $string = hey there!; $out = ''; for ($i=0; $icount($string); $i++) { $out .= strtoupper($string[$i]) . \n; // or br if output is to browser } echo $out; Richard Baskett [EMAIL PROTECTED] wrote in message

Re: [PHP] String breaking up

2001-10-26 Thread * RzE:
Original message From: Dan McCullough [EMAIL PROTECTED] Date: Fri, Oct 26, 2001 at 06:03:00AM -0700 Message-ID: [EMAIL PROTECTED] Subject: [PHP] String breaking up I was looking to take a string like Dan and return it like D A N is it the str function that does that = Dan

[PHP] php-mysql question

2001-10-26 Thread Gerard Onorato
Hello, I am a recent return to the list. Wow has the traffic grown! This is awesome. I have a couple of questions and one may be a RTFM but I can't find the answer. #1) While I thought I was extremely familiar with the MYSQL functions available in PHP I found on e in a code snippet that I have

RE: [PHP] Microsoft Access

2001-10-26 Thread Andrew Hill
Alex, You can access MS Access via ODBC, but you do need a Windows box (and Access) to serve the .mbd file. It's possible to connect from BSD to Windows using ODBC - OpenLink's Multi-Tier drivers can affect this connection for you, and can be downloaded for free. Let me know if you need any

[PHP] Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-26 Thread Patrick Dunford
I have a script (let's call it a.php3) that brings in another script b.php3 with the include or require call. In script b.php3 there is an include or require call to bring in script c.php3. Script a.php3 after making one and only one include (the include is not repeated anywhere in a.php3) then

Re: [PHP] editor for working with php

2001-10-26 Thread Pavel Jartsev
Ray Todd Stevens wrote: I ahve been using go-live (4.0) to edit pages containing php scripts. this is not really working well. Is there a better way or a better editor to use for this? Try SciTE: http://www.scintilla.org/ -- Pavel a.k.a. Papi -- PHP General Mailing List

RE: [PHP] php code to fax

2001-10-26 Thread Chris Carbaugh
I have finally uploaded a tar ball to the phpfax.sourceforge.net website. All the code is there, but it will take a good bit of work to get the whole thing working. Those who have shown interest in the project will probably just be interested in parts of the code for there own projects. If

[PHP] free php web hosting

2001-10-26 Thread Kamran H. Hassan
Hi, can any body know about free php mysql free web hosting service provder ? i will be greatful if u let me know Kamran H. Hassan

Re: [PHP] Re: tail a file

2001-10-26 Thread Mark
better yet, just use backticks: ? echo `tail $filename` ? On Fri, 26 Oct 2001 16:13:31 +0200, _lallous wrote: to tail a file use the + flag when opening that log file, and write a simple PHP script that spits that file to you, ie: showlog.php ? readfile('logfile.txt'); ? Yamin Prabudy [EMAIL

[PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Web user
What's the difference between mail() in PHP and sendmail? Thanks! Mike -- 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] Arrays

2001-10-26 Thread Ashley M. Kirchner
Brad Hubbard wrote: ?php // Suck 'em in $site = array ( section1 = 007, section2 = 11, section3 = 57.5, section4 = 12, section10 = 1 ); Okay, this answer the first part of my

Re: [PHP] free php web hosting

2001-10-26 Thread Frewuill Rodriguez
www.f2s.com sometimes it's a little slow but u have php+mysql - Original Message - From: Kamran H. Hassan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 26, 2001 11:20 AM Subject: [PHP] free php web hosting Hi, can any body know about free php mysql free web hosting

RE: [PHP] php/Oracle db connection

2001-10-26 Thread Andrew Hill
Toni, You need to enter a string of the syntax: DSN=[name of your dsn] Since nothing shows up with a ? I bet you haven't set your ODBCINI environment variables. Running the openlink.sh against the current shell should do this: . openlink.sh If you are doing it by hand, you need to set:

RE: [PHP] Debugging aids (after the style of: Error management)

2001-10-26 Thread Chris Bailey
Sounds like getting a stack trace in various other languages. I know that Komodo and I think maybe a couple others has a built in debugger. It may (or may not) show you a stack trace/call trace display. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, October

Re: [PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Mike Eheler
Nothing, really. I believe PHP's mail() actually calls sendmail directly (or whatever you have configured in php.ini). Also Mike Web user wrote: What's the difference between mail() in PHP and sendmail? Thanks! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] editor for working with php

2001-10-26 Thread Mike Eheler
I've always been partial to TextPad, myself. http://www.textpad.com/ You gotta download the PHP4 Syntax Definition file for syntax hilighting. Mike Pavel Jartsev wrote: Ray Todd Stevens wrote: I ahve been using go-live (4.0) to edit pages containing php scripts. this is not really

Re[4]: [PHP] function names

2001-10-26 Thread Olexandr Vynnychenko
MM Check your code again. Without the this- I get the same error that you got. With this- I don't. I don't know what php you're using... Or maybe you haven't understood something. Try this code: ?php class A { function print()//line 4 { echo foo;

[PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread René Fournier
This is really I guess a non-PHP question, so please excuse... What is the most reliable, browser-safe way to redirect the browser from a default index.html to, say, index.php? The I'm doing it now is with the following javascript: script type=text/javascript language=Javascript

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Richard S. Crawford
You might try META tags. Put this in the head section of your index.html file: meta http-equiv=refresh content=0; url=index.php If the user has JavaScript disabled, you're probably best off using a link and letting the user click through. You may also be able to adjust your Apache

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Eheler
Before any of your HTML code, put in: header('Location: index.php'); If anything has been sent to the browser yet (through echo/print/etc, or through code outside of the ?php ? tags), though, you will get an error. Mike René Fournier wrote: This is really I guess a non-PHP question, so

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Ashley M. Kirchner
René Fournier wrote: And it works, but I wanted to know if any of you are using a better [more compatible] way of redirecting the browser (say, if it doesn't have JavaScript (!?)). If you're using Apache, add 'index.php' to the DirectoryIndex option in httpd.conf. Then you can remove

Re: [PHP] Best [non-PHP] way to redirect a browser

2001-10-26 Thread Kurt Lieber
On Friday 26 October 2001 10:25, you wrote: What is the most reliable, browser-safe way to redirect the browser from a default index.html to, say, index.php? The I'm doing it now is with the following javascript: The most reliable, browser-safe, non-PHP way to redirect mail is to do it

[Fwd: [PHP] Best [non-PHP] way to redirect a browser]

2001-10-26 Thread Mike Eheler
Right. My bad. Heh, I have an excuse.. it's before noon here ;) Definitely go with the meta approach, then: Example: html head meta http-equiv=refresh content=0; url=index.php / /head body a href=index.phpClick here to enter the site/a /body /html Mike this wouldn't work from an

[PHP] sending email to php script

2001-10-26 Thread JSheble
A while ago an email came through here about how to parse out email message from a php script. The thing that was mostly of interest to me is the ability to send an email to a php script, I guess through a sendmail alias? I asked how to accomplish this, and never saw an answer come through.

[PHP] compile error

2001-10-26 Thread Thomas Holton
Hello, I am looking through the documentation and archives and have been unable to find anything about my problem, which is: Installing php-4.0.6 on alpha OSF1 v5.1 CONFIG LINE: ./configure --with-apache=../apache_1.3.22 --with-imap=/usr/local/src/imap-4.7 --with-mysql=/usr/local/mysql

[PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Andy
Hi there, I have a serious problem in my programming architecture. The architecture looks like fusebox (those of you familar with CF might now this a.) The point is, that I am sending html code at the beginning. Body tag and so on. Now there is the content. And inide this content there might be

[PHP] Searchengine friendly URLs

2001-10-26 Thread Andy
Hi there, I heared that search engines are not following things after the question mark. Now I looked arround and noticed, that some sites yust have numbers behind the .php extension. How does this work? Can anybody make an example and list advantages and disadvantages? Thanx, Andy -- PHP

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread WebDev
Hello Andy, Its just a way of passing along variable information as you would do with a form except you attach the variable/args directly to the URL. For example if you have a script that list all records in a database, you may have a link for deleting records that would be attached to each

[PHP] directory access

2001-10-26 Thread Norman Zhang
Hi, I have a simple authentication script. if ($username == abc) { readfile(abc/index.php); } else readfile(index.php); What I would like to know if there is some way that I can have the user checked against the user in directory /abc/.htaccess? I would like to have the script to jump into

Re: [PHP] fsockopen and https

2001-10-26 Thread Frewuill Rodriguez
As far as i know PHP can't handle SSL yet.. at least that was the situation a few versions ago. =( - Original Message - From: Brad Hubbard [EMAIL PROTECTED] To: John [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 26, 2001 5:54 AM Subject: Re: [PHP] fsockopen and https On

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread Ashley M. Kirchner
Andy wrote: I heared that search engines are not following things after the question mark. Now I looked arround and noticed, that some sites yust have numbers behind the .php extension. How does this work? Can anybody make an example and list advantages and disadvantages? Search engines

[PHP] Re: Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Frazer
Two ways: #1 - If you have server admin access, just add to the default page list index.php in your server config. #2 - Use a meta refresh: html head meta http-equiv=refresh content=0;URL=http://www.yourdomain.tld/path/to/your/script.php; /head /html Mike Frazer René fournier [EMAIL

Re: [PHP] What's the difference between mail() in PHP and sendmail?

2001-10-26 Thread Mike Frazer
It can also use procmail, or any other SMTP-capable application you have installed. It is called from the php.ini file. Mike Frazer Nathan Cassano [EMAIL PROTECTED] wrote in message 392201c15e37$535ab3f0$2925ae3f@amos">news:392201c15e37$535ab3f0$2925ae3f@amos... Not a whole lot. The PHP

Re: [PHP] Searchengine friendly URLs

2001-10-26 Thread Thomas Deliduka
I found several problems with managing this. All links on the page CANNOT be relative (i.e. HREF=filename.php/var/var/var it must be HREF=/filename.php/var/var/var or with the full path. Otherwise your browser will try to attach the filename to the end of the long querystring you created. Unless

Re: [PHP] Re: Best [non-PHP] way to redirect a browser

2001-10-26 Thread Mike Eheler
Actually beyond that, for #1, if you server allows you to create .htaccess files, simply create a .htaccess file in your root directory, and put this in it: DirectoryIndex index.php Mike Mike Frazer wrote: Two ways: #1 - If you have server admin access, just add to the default page list

Re: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Mike Eheler
I know in ASP it's as easy as doing: Response.Clear Response.Redirect But PHP doesn't seem to have that feature. My best suggestion would be to try and re-work your code so that the redirect can be detected *before* any html code is written to the browser. Mike Andy wrote: Hi there, I

[PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-26 Thread Jason Wood
I had the same type of problem. ( i think) I had one main page (say index.php) that had a bare bones html page. No functions or anything. Then i had separate pages that would be included only if i was using them (like, say, a category.php for displaying categories, then products.php for showing

Re: [PHP] free php web hosting

2001-10-26 Thread hassan el forkani
www.f2s.com At 17:20 26/10/01, Kamran H. Hassan wrote: Hi, can any body know about free php mysql free web hosting service provder ? i will be greatful if u let me know Kamran H. Hassan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Array explicit keys verification

2001-10-26 Thread m0sh3
Hi, i'm trying to find elegant way to find if Array was declared with explicit keys or only as values. Like, I would like to make a function that knows if array argument was given with keys or only values, function that can distinguish between: func(array(value1,value2,value3)) and

RE: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Matthew Loff
Response.Clear Response.Redirect Doesn't that imply that ASP buffers the output? The problem with redirecting the browser after you output data isn't a PHP issue, it's the HTTP spec. I think the best solution would be to turn on output buffering, then immediately flush the output buffer when

[PHP] PHP redirects (was Re: [PHP] Advanced. Trapped in architecture.)

2001-10-26 Thread Kurt Lieber
AFAIK, ASP does output buffering by default (meaning it doesn't send the code to the browser until the page is fully parsed and ready to send to the client) That's what allows it to response.redirects after headers have been generated. Cold Fusion is the same way. However, once the actual

Re: [PHP] = 0 and = 0

2001-10-26 Thread ~~~i LeoNid ~~
On Thu, 25 Oct 2001 02:04:14 -0700 (PDT) impersonator of [EMAIL PROTECTED] (Rasmus Lerdorf) planted I saw in php.general: if(strpos(abcdef,abc)) { ... } and then be confused that the condition appeared not to be met. What they actually should have done was: if(strpos(abcdef,abc)!==false)

[PHP] Include Precompiled C binaries

2001-10-26 Thread Daelic
I was debating perl Vs. PHP with a friend, and he came up with this: Perl can include compiled C binaries without backprocessing them, which is a pretty useful trick. I don't know anything about this, so couldn't comment on it. Can PHP do this, or anything similar? Thanks! -- PHP General

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

2001-10-26 Thread John A. Grant
Jim Lucas [EMAIL PROTECTED] wrote in message 022901c15dbd$76a34c20$[EMAIL PROTECTED]">news:022901c15dbd$76a34c20$[EMAIL PROTECTED]... try this ? system(php.exe filename, $output); echo $output; ? make sure you put the correct paths to the .exe and file otherwise it will think that it is

[PHP] Informix Redback

2001-10-26 Thread Adam Plocher
Our company is looking into purchasing an application package that requires the use of the Informix (IBM) Redback application. We have been told that Redback objects can be used in php scripts but I was wondering if any of you have had experiece with it and if you have had any problems or

[PHP] array_search()

2001-10-26 Thread Ashley M. Kirchner
I'm trying to figure out how am I supposed to write this snippet properly: if (($index = array_search($search, array_keys($pages))) !== false) { echo index: $index\n; } else { echo Not found\n; } When I search for something that I know exists, it returns the $index just fine.

[PHP] Daylight savings and timestamps

2001-10-26 Thread Nathan Cassano
Hello fellow PHPer's, Daylight savings is soon upon most of us and I have some questions in regard to timestamps. My problem: So we put our clocks an hour back. I have database tables with plain integers that store timestamps. I like to do comparison operations with these timestamps.

[PHP] Re: free php web hosting

2001-10-26 Thread Henrik Hansen
[EMAIL PROTECTED] (Kamran H. Hassan) wrote: Hi, can any body know about free php mysql free web hosting service provder ? http://alt-php-faq.org/links.html - under hosting -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] checkboxes

2001-10-26 Thread Boaz Yahav
does anyone know the HTML event that knows when a checkbox has been checked and unchecked? So far I'm using onChange but that is not exactly what I need. I need to run one JS function when a checkbox is checked and another when it is unchecked. NE1? berber -- PHP General Mailing List

Re: [PHP] Store file remotely using socket/fopen

2001-10-26 Thread Evan Nemerson
The command is STOR not STORE. Take a look at the FTP RFC- I think its 951, but im not 100%- just search for FTP RFC. On Friday 26 October 2001 05:42 am, you wrote: Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost;

RE: [PHP] stripslashes() not striping slashes

2001-10-26 Thread Boaz Yahav
Actually, After coding with PHP since the days me and bourbon shared a cube at Netvision while he developed php3 I think that's something I would know :) The funny issue is that only if I use double stripslashes does it work. e.g. $str = stripslashes($str); // This will NOT do the job. $str =

RE: [PHP] checkboxes

2001-10-26 Thread Johnson, Kirk
onClick Kirk -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 3:03 PM To: PHP General (E-mail) Subject: [PHP] checkboxes does anyone know the HTML event that knows when a checkbox has been checked and unchecked? -- PHP General

Re: [PHP] checkboxes

2001-10-26 Thread Jim Lucas
function jsFunc() { // then check the status of the checkbox if (checked) { run this } else { run this } } onClick=jsFunc() Jim Lucas - Original Message - From: Johnson, Kirk [EMAIL PROTECTED] To: PHP General (E-mail) [EMAIL PROTECTED] Sent: Friday,

[PHP] Help! ¡Ayuda!

2001-10-26 Thread Alejandro Viana
I'm trying to read a record from a dbase data base so I've previously opened it successfully. The problem is that I call the function dbase_get_record, but it returns no records. The database is ok because I call the funcion dbase_numfields and dbase_numrecords and they give me correct

  1   2   >