Re: [PHP] Reliability of sessions

2002-04-05 Thread Meitiner
I hope you don't live in Bethlehem Erik Price wrote: On Thursday, April 4, 2002, at 04:40 PM, Thomas Deliduka wrote: I have a quick question for a veteren of sessions out there. I'd trust sessions with my life. Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL

[PHP] PHP and DOM XML

2002-04-05 Thread rarmin
I have one question about operations that can be done with XML. What I need to do is build a web site which stores some data in XML files and retrieve that data. It's basically the system that allows users to register, login and upload and download some files. It needs to use XML. The

[PHP] Session with or not cookies

2002-04-05 Thread Philippe
Hello, I'm working with sessions. It's work fine with PHP 4.0.6 and when I update to 4.1.2. I've seen a strange thing, I canno't explain: Before when a client consult our webserver with no cookies enabled, the PHPSESSID was been add in the URL automatly and when the cookies are enable, the

Re: [PHP] strip spaces from inside string

2002-04-05 Thread Michael Virnstein
the easiest way would be: ? // - // init var $str = ; $str = abc def ghi; $str = str_replace ( , , $str); echo $str.br; // // output: // abcdefghi // // // or a regex: $str = abc def ghi; $str = ereg_replace( , , $str);

[PHP] FTP upload

2002-04-05 Thread ubomr Zvodsk
Hello ,is it possible to upload file that is bigger than 8MB thrue FTP upload programmed in PHP? I need send attachments up to 50MB by FTP. It's for a graphic studio which works with big files. If yes how? Thank you Zavodsky [EMAIL PROTECTED] --- Odchoz zprva neobsahuje viry. Zkontrolovno

Re: [PHP] Reliability of sessions

2002-04-05 Thread Michael Virnstein
On the page you start the session, ${session_name()} isn't set. so if you need that on the first page too, you should do the following ?php session_start(); if (!isset(${session_name()})) { ${session_name()} = session_id(); } ? Thomas Deliduka [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] mysql_fetch_array()

2002-04-05 Thread Phil Ewington
Hi All, I am new to PHP and am having a bit of trouble. I have a recordset using... $events = mysql_fetch_array($recordset); this drags in 3 columns from my table... event_id, event_title, event_date I want to search the recordset for a given date, if found I want to be able to reference

[PHP] Includes

2002-04-05 Thread Sebastian A.
Lately I have noticed many scripts that all consist of one file even though they create the appearance of many pages. For example, you would open setup.php and a form would appear. Then after you complete the form a new page appears with the results of your form, however the URL is still

[PHP] getting lines from the highest ID in a database?

2002-04-05 Thread Hawk
Lets say I have a guestbook, and that I only want to show the last entry on my first page I cant figure out a good way to do it.. haven't managed to find a mysql command that can do it either, but maybe there are? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP and DOM XML

2002-04-05 Thread Peter Clarke
Rarmin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have one question about operations that can be done with XML. What I need to do is build a web site which stores some data in XML files and retrieve that data. It's basically the system that allows users

Re: [PHP] Session with or not cookies

2002-04-05 Thread Philippe
Hello, I 've found where the problem is. It is with the last update of PHP 4.1.2 of Apple (Apple security Update of 5th April). This library seems light. Also there isn't the GD Library. When I go back to a version 4.1.2 by entropy.ch, All is OK. Session works fine and GD Library is present.

[PHP] Re: strip_tags() problem

2002-04-05 Thread Michael Virnstein
try the following: $text = ; $fp = fopen(http://www.yahoo.com;, r); while (!feof($fp)) { // read a line and strip all php and html tags // there's a third optional parameter, which // allowes to specify tags not to be replaced $text .= fgetss($fp, 4096); } fclose($fp); echo

RE: [PHP] Includes

2002-04-05 Thread Christoph Starkmann
Hi Sebastian! Lately I have noticed many scripts that all consist of one file even though they create the appearance of many pages. For example, you would open setup.php and a form would appear. Then after you complete the form a new page appears with the results of your form, however

Re: [PHP] mysql_fetch_array()

2002-04-05 Thread Ben Edwards
$db = mysql_open(); $results = mysql_query( select * from something, $db ); while( $row = mysql_fetch_array( $results ) ) { processing using $row[column] as reference } Ben At 11:21 05/04/2002, Phil Ewington wrote: Hi All, I am new to PHP and am having a bit of trouble. I have a

[PHP] Re: New-line characters

2002-04-05 Thread Jamie Watt
You'de be better off using the built in nl2br() function (http://www.php.net/manual/en/function.nl2br.php) it'll have the same effect as a it'll insert a br tag everwhere a newline character occurs. Where 2 newline characters occur it will produce brbr which in your HTML will break your text in

[PHP] Re: strip_tags() problem

2002-04-05 Thread Michael Virnstein
or instead of fopen, use: $fp = fsockopen(http://www.yahoo.com;, 80, $errno, $errstr, 30) or die (Could not connect to yahoo.com); // wait for answer (replacement for deprecated set_socket_blocking) socket_set_blocking($fp, 1); i forgot to die in the example below, if connection could not be

[PHP] Re: [PHP-GENERAL] animated gif

2002-04-05 Thread Jamie Watt
Sounds like you'll have to use PHP to to first create the images. Then in your output page just include some javascript to rotate the images. If you have to you can use PHP to write the javascript. Jessica Lee Tishmack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... can you

[PHP] Re: getting lines from the highest ID in a database?

2002-04-05 Thread Maxim Maletsky
add to your mySQL query: order by id desc limit 1 This will order your data by your primary id (change 'id' to whatever you auto-increment) in the descending order and will limit the results to 1 record. Cheers, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP

[PHP] Re: Includes

2002-04-05 Thread Maxim Maletsky
we still use include(); setup.php has something like: if(file_exists($page) and ...more...controls..) include_once $page; then the $page.php is where you have a part of your site. You can pass $page as the GET variable: setup.php?page=page.php and so on Maxim Maletsky

Re: [PHP] getting lines from the highest ID in a database?

2002-04-05 Thread Michael Virnstein
this should do the trick: SELECT MAX(field) from table you have to use MAX to get the highest value in field. Michael Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... On Friday 05 April 2002 18:27, Hawk wrote: Lets say I have a guestbook, and that I only want

[PHP] Re: Reliability of sessions

2002-04-05 Thread Bob Klotz
Hi Thomas, What is the opinion, are sessions reliable enough to go through the step process? We are runnig some online shops for our clients based on PHP. The checkout process is always based on sessions and we never had trouble with the session management. If you are in doubt with the

[PHP] Re: New-line characters

2002-04-05 Thread Maxim Maletsky
FYI: brbr is not same as p. P is paragraph and br is just a line break of the text. So, depending on your text format the lines broken twice might (normally ARE but not too noticeably) look different. try to mess with CSS and you'll see the difference about how browsers see those both

[PHP] Re: script-controlled tablewidthchange, for diff. screen resolutions

2002-04-05 Thread Jamie Watt
Sounds like you might be trying to do things the hard way. Wouldn't it be easier to simply set the table widths as a percentage rather than an exact width in pixels? Eg. width=50% The above example will set the table width to 50% of the browser window width. Or maybe you could use a bit of

[PHP] Cannot compile my extension as a shared .so library

2002-04-05 Thread Martin Wickman
Hi php-4.1.2 linux RH 7.2 I have created a small php extension. The extension works as expected when I compile it using $ ./configure --with-foo make # foo is the extension It gets compiled into the php binary. All is well, but I would like to compile my extension as a loadable modules

RE: [PHP] mysql_fetch_array()

2002-04-05 Thread Phil Ewington
Jason, This is for an events calendar, I want all the dates form the db but when I am generating the individual days for the calendar I need to know whether there is an event for that day, hence pulling out all the dates from the db. As I am looping through all the days in a month to dynamically

[PHP] multiple php.ini files

2002-04-05 Thread zoltan . arpadffy
hi, does anybody have some experience with running PHP with different permissions and modules. The only way that I imagine is to have 2 (or more) independent PHP installations with separate php.ini files. But this is stone age technique... I am sure that PHP has some kind of ini loading

RE: [PHP] Includes

2002-04-05 Thread Christoph Starkmann
Well, I think I should give a better explanation. I have been seeing a lot of scripts that appear to be on multiple pages. For example: You open file.php, and you are greeted with a form asking your name. You give in your name and then submit the form. After you submit the form you

[PHP] PHP and MS Access

2002-04-05 Thread ronan cleary
I am running PHP and Apache and have a problem connecting to an Ms Access database I cannot connect to my database. I am using an Apache Server with PHP. Now as far as I can see these work fine apart from some dll files in PHP. I have also set up an ODBC connection to my database, but when I

[PHP] PHP stops execution without error message

2002-04-05 Thread Ando
Running php ver 3.0.12 and mysql ver 3.22.32 on a linux box. Php installed as apache module The script im running takes a long time to execute (20-40 minutes) and includes hundreds of selects and inserts into the database, and also opening/closing lots of files. And quite often, the script just

Re: [PHP] Re: preventing back button usage?

2002-04-05 Thread Michael Virnstein
i don't like javascript. It's pain in the ass to get this working on more than IE and Netscape. Btw, to get it working on IE and Netscape is annoying enough already imo.So what i would do is registering some sort of variable in the session, that shows you if the page has been submitted already.

[PHP] Return-Path

2002-04-05 Thread Anthony Rodriguez
Can you help me? When I call the following script: (1) ?php (2) mail([EMAIL PROTECTED], (3) Test, (4) Test, (5) From:SBW Research [EMAIL PROTECTED]\r\n, (6) Return-Path:[EMAIL PROTECTED]\r\n); (7) exit; (8) ? I get the following error message: Warning: Wrong parameter

Re: [PHP] Return-Path

2002-04-05 Thread Jason Wong
On Friday 05 April 2002 20:49, Anthony Rodriguez wrote: Can you help me? When I call the following script: (1) ?php (2) mail([EMAIL PROTECTED], (3) Test, (4) Test, (5) From:SBW Research [EMAIL PROTECTED]\r\n, (6) Return-Path:[EMAIL PROTECTED]\r\n); (7) exit; (8) ?

[PHP] Can I use php to Print a document?

2002-04-05 Thread Simonk
Is there any functions or command that I can print out a page or a document without using the browsers' print? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I use php to Print a document?

2002-04-05 Thread heinisch
At 05.04.2002 14:26, you wrote: Is there any functions or command that I can print out a page or a document without using the browsers' print? If you have compiled php as standalone (I think it´s called the cgi) you can use the exec(lpd docname), if you have a printer on your box, or in your

[PHP] Session Freakiness. Losing Session.

2002-04-05 Thread Hans Petersson
Hi, I have an odd problem. I have intermittent loss of sessions happening, and I've spent lots of time trying to figure it out, but I am at a loss here. I found a post on phpbuilder that seem to be the same or a similar problem from 2001:

[PHP] WIKI - CMS scripts

2002-04-05 Thread Miles Thompson
This is a general question, and I'm not trying for flames, but I've been looking at various CMS sites: php-nuke, post-nuke, php-website, typo-3, and ez-publish. I've probably visited others, but haven't book marked them. One thing which seems to characterize them all, is that they seem

[PHP] Miguel...

2002-04-05 Thread Anthony Ritter
Miguel, Thanks for the reply. . MySQL has a command-line tool called 'mysqldump' which will output a text file containing all the table creates and inserts necessary to recreate the database. O.K. Now I have a .txt file of my sql statement.

RE: [PHP] PHP stops execution without error message

2002-04-05 Thread Rick Emery
If this is a web-page you are generating, I believe browser timeout is 5 minutes. -Original Message- From: Ando [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 6:19 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP stops execution without error message Importance: Low Running php ver

RE: [PHP] mysql_fetch_array()

2002-04-05 Thread heinisch
At 05.04.2002 12:31, you wrote: Jason, This is for an events calendar, I want all the dates form the db but when I am generating the individual days for the calendar I need to know whether there is an event for that day, hence pulling out all the dates from the db. As I am looping through all

RE: [PHP] PHP and MS Access

2002-04-05 Thread Andrew Hill
Ronan, Check these: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306269 http://support.microsoft.com/default.aspx?scid=kb;EN-US;q174943 It's most likely an issue with how you have your DSN setup or how apache is running. Best regards, Andrew Hill Director of Technology Evangelism

Re: [PHP] Explode and Trim

2002-04-05 Thread Joshua E Minnie
Unfortunately it doesn't. That is why I am kind of puzzled by the situation. -- Joshua E Minnie CIO [EMAIL PROTECTED] Don't work for recognition, but always do work worthy of recognition. Maxim Maletsky [EMAIL PROTECTED] wrote I think what yo wrote should be working fine for you. My way

RE: [PHP] Includes

2002-04-05 Thread Rick Emery
Assume the following file is named this_script.php: This is all in ONE file. ?php if (isset($submit) ) { print $mytextBR\n; do some other stuff exit; } ? HTML HEAD /HEAD BODY FORM method=post action=./this_script.php INPUT type=text name=mytextBR INPUT type=submit name=submit

Re: [PHP] Read and Escape file

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 02:50 AM, Miguel Cruz wrote: Certain characters have special meanings in string literals (that is, strings you explicitly type into your PHP source code) but if you get them in via other means (reading from file, reading from form submissions, etc.) then they

[PHP] 1024X760 or 800x600

2002-04-05 Thread Ron Allen
Is there a way with PHP to determine screen resolution size??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to process URL parameers

2002-04-05 Thread Wo Chang
Dear All, Sorry to trouble you with this simple question! if I have this php code: echo a href=http://abc.com/test.php?xyztry/a; how would I process the xyz from test.php? Any thoughts would be greatly appreciated! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP and mySQL...

2002-04-05 Thread cyberskydive
Since you didnt make it clear, do you even have MySql and php on your server? Are you looking to just move your data or looking to get php mysql installed on the server as well? (SERVER = production site, not localhost) if you just wanna move data, like everyone else said phpmyadmin rocks, but

Re: [PHP] using new AUTOGLOBALS

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 09:55 AM, cyberskydive wrote: So I wanna learn how to code properly with register_globals off, I reead on Good idea, it's not really harder than doing it the old way and it helps you visualize where your data is coming from. I actually prefer it this way.

Re: [PHP] how to process URL parameers

2002-04-05 Thread Wo Chang
Dear PHPers, Thanks for the extra hands! They all work!! --Wo - Original Message - From: Erik Price [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 10:00 AM Subject: Re: [PHP] how to process URL parameers On Friday, April 5,

[PHP] Directory to array to select box...

2002-04-05 Thread Jas
Ok here is my problem, for one I am new to php and would like a new pair of eyes for this piece of code, and second what I would like to accomplish is putting the contents of a directory into an array and then pulling the contents of that array into a select box for further processing... If

Re: [PHP] PHP and mySQL...

2002-04-05 Thread Anthony Ritter
Cyberskydive wrote in message: Since you didnt make it clear, do you even have MySql and php on your server? Are you looking to just move your data or looking to get php mysql installed on the server as well? (SERVER = production site, not localhost) ... Yes. I have

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Michael Virnstein
how about that: p FORM METHOD=post ACTION=blank.php3 SELECT NAME=files ?php $dir = opendir(/home/web/b/bignickel.net/htdocs/); while (false !== ($file = readdir($dir)) { if ($file == . || $file == ..) { continue; } echo OPTION VALUE=\$file\$file/OPTION\n; } ? /SELECT

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
Since I ran this on Win2000 machine, I changed name of directory: You were right on the money with your code; just a minor mod or two was required: ?php $i=0; // counter $files = array(); // array to store directory content // open directory $dir = opendir(c:\\wbs\\); // loop through

Re: [PHP] Explode and Trim

2002-04-05 Thread Joshua E Minnie
It works great using the foreach statements, but for some reason couldn't make it work the other way. Oh well, no one ever said there was only one way to do things when programming. Thanks for your help. --- Joshua E Minnie CIO [EMAIL PROTECTED] Don't work for recognition, but always do work

[PHP] Notice: recent FAQ discussions

2002-04-05 Thread Hugh Bothwell
For anyone who may have missed the recent debate: We seem to have come down to two groups: the majority seem to be headed for a web-based searchable FAQ, while a small minority - myself and two or three others - want a succint text-based FAQ to post on the newsgroup at regular intervals. As the

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Jas
Ok I tried a different way to do it and this is the resulting code... I still need to be able to make some hidden fields so the contents of the item selected may be passed to another script which will stick the path of the file into a database table if anyone wants to give me a hand with that

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
Hey Rick, thanks a ton... you have helped me out alot on this list. I got the code working probably about the same time you and another gentleman posted the same fixes I made, however I now have another question about adding a hidden field to take the results of the users selection and passing

Re: [PHP] how to process URL parameers

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 10:36 AM, Wo Chang wrote: So, if I want to include multiple parameters, I'll use something like: ?a=1?b=2 right? No, actually in the querystring the ? only serves to separate the URL from the querystring. So you can only use it once, immediately after the

Re: [PHP] getting lines from the highest ID in a database?

2002-04-05 Thread Jason Wong
On Friday 05 April 2002 18:27, Hawk wrote: Lets say I have a guestbook, and that I only want to show the last entry on my first page I cant figure out a good way to do it.. haven't managed to find a mysql command that can do it either, but maybe there are? :) The only reliable way to do it

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
I must be missing something. Just add a HIDDEN type in your form. It will be sent with all your form data. -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Directory to array to select box... Hey

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path of the file name? Any tips? Thanks, jas -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
the contents of the SELECT box and the contents of the HIDDEN field are separate entities. Append the path upon transfer to the next PHP script Show us what you REALLY want to do here instead of keeping us guessing... -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday,

[PHP] conditionaly including classes/functions

2002-04-05 Thread Andrew Warner
Is it okay practice to condtionally include php files that contain only classes or functions (as opposed to just straight code)? The result is a class or function inserted right in the middle of an if{} block: } elseif ($var=='a') { include('temp.php'); $obj = new foo; echo

RE: [PHP] conditionally including classes/functions

2002-04-05 Thread Rick Emery
It's okay to do so. That's why include() was created; to provide conditional inclusion. -Original Message- From: Andrew Warner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] conditionaly including classes/functions Is it okay

[PHP] refresh

2002-04-05 Thread Kris Vose
I want to be able to refresh my browser window after a submission to a database. Is there a reliable function out there that can accomplish this? Kris

Re: [PHP] how to process URL parameers

2002-04-05 Thread Wo Chang
Thanks Eric, very good info!! For now, I jsut process the string after the ?. Things working fine. Many thanks! --Wo - Original Message - From: Erik Price [EMAIL PROTECTED] To: Wo Chang [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 11:14 AM Subject: Re: [PHP]

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
Sorry, here is what I have thus far... everything is working except I am just not sure how to pass the result of the users selection to another script, I have added the hidden input type to try and solve it but I think I am doing something wrong, maybe I need to put the hidden input type on the

[PHP] Writing to Files

2002-04-05 Thread Sebastian A.
Hey All, I have recently been trying to create some logs for the install script I have been making (to make it easier for me to diagnose problems) but I am wondering how to create and write to text files. I know about the fopen() and fwrite() functions, which theoretically should enable

Re: [PHP] conditionaly including classes/functions

2002-04-05 Thread Erik Price
On Thursday, April 4, 2002, at 12:28 PM, Andrew Warner wrote: Is it okay practice to condtionally include php files that contain only classes or functions (as opposed to just straight code)? The result is a class or function inserted right in the middle of an if{} block: It is better

[PHP] Re: Directory to array to select box...

2002-04-05 Thread Michael Virnstein
ok, i'll try to help, but first use while (false !== ($file = readdir($dir)). ;) why do you need hidden fields on that page? to determine which file the user has selected? hmmm...ok, let's see: The user sees your form, selects the desired file and submits the form. Now the page processing the

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
When ad_done.php3 is called, it will receive a variable named $files. Change: SELECT NAME=\files\$file_name; to: SELECT NAME=\files\; $files will contain the value of the file selected -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:36 AM To:

[PHP] regexp for ' replacement

2002-04-05 Thread Thalis A. Kalfigopoulos
Yet another regexpr question. If I have as part of a text: ...and then 'the quick brown fox jumped over the lazy dog's piano'... How can I substitute the single quote in dog's with say \' I want to aply a substitution for only the single quote that is between two single quotes and leave the

[PHP] Re: Javascript and PHP??

2002-04-05 Thread Michael Virnstein
sure you can use javascript in your php. php is serverside and produces the page. the webserver sends then this produced page to the client. so javascript is the same as html for php. it's just some lines of text. Joe Keilholz [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

Re: [PHP] Writing to Files

2002-04-05 Thread R'twick Niceorgaw
http://www.php.net/manual/en/function.printf.php try sprintf to format the string and then fwrite I use text files to log debug msgs in my programs as they are not too heavy duty applications. - Original Message - From: Sebastian A. [EMAIL PROTECTED] To: PHP General List (PHP.NET)

[PHP] Re: using new AUTOGLOBALS

2002-04-05 Thread cyberskydive
the thing is, using the methods I described in my first post, the superglobals or autoglobals arent working. I cant figure out why, and , like the other guy said, most books dont include this feature in a topic for discussion. Can anyone offer advice? Cyberskydive [EMAIL PROTECTED] wrote in

[PHP] PHP books

2002-04-05 Thread cyberskydive
I have 2 PHP books the first is called PHP fast easy web development -from primatech the second is called CORE PHP PROGRAMMING by Leon Atkinson I like them both, and I was glad I read fast easy first, i like core php alot, havent read the whole thing yet, been kinda referencing around it,

Re: [PHP] Re: using new AUTOGLOBALS

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 12:09 PM, cyberskydive wrote: the thing is, using the methods I described in my first post, the superglobals or autoglobals arent working. I cant figure out why, and , like the other guy said, most books dont include this feature in a topic for discussion.

Re: [PHP] Any ideas on combining arrays????

2002-04-05 Thread Michael Virnstein
perhaps: $FFR = array(TU4R = array(data = array(array(count = TU4R is 0), array(count = TU4R is 1), array(count = TU4R is 2))), PH01 = array(data = array(array(count = PH01 is 0;

Re: [PHP] PHP books

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 12:12 PM, cyberskydive wrote: what are your opinions and what are some other grest books out there? grest -- is that like great and best ? ;) I think that Visual QuickPro PHP Advanced, which just came out a month or two ago, is pretty good. I learned a lot of

[PHP] Re: What's wrong with the Array? Im baffled!

2002-04-05 Thread Michael Virnstein
$number = $sumItUp[$name]; $number++; $sumItUp[$name] = $number; this could be done easier: $sumItUp[$name]++; :) Scott Fletcher [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! I'm a little baffled on why the array is not working the way I

RE: [PHP] refresh

2002-04-05 Thread Rick Emery
after database submission, header(location: ...) re-directed to the script you wish to go to -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: [PHP] refresh I want to be able to refresh my browser window

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
addslashes($textline) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: [PHP] regexp for ' replacement Yet another regexpr question. If I have as part of a text: ...and then 'the quick brown

RE: [PHP] Writing to Files

2002-04-05 Thread Rick Emery
try creating a script with fopen(), fwrite(), etc. When you run into problems, ask here. $filex = fopen(myfile,w); fwrite( $filex, write this here); fclose($filex); -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:29 AM To: PHP General

Re: [PHP] php+myslq+IDE

2002-04-05 Thread eric.coleman
http://dev.zaireweb.com/phpcoder.exe That should be the file - Original Message - From: Charles Little [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 04, 2002 4:59 AM Subject: RE: [PHP] php+myslq+IDE Try PHP Coder (not Maguma's Version, becuase PHP Coder kicks it's

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Thalis A. Kalfigopoulos
Nop. I don't want to affect the first and last ' of every line. On Fri, 5 Apr 2002, Rick Emery wrote: addslashes($textline) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] conditionally including classes/functions

2002-04-05 Thread Hugh Bothwell
-Original Message- From: Andrew Warner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] conditionaly including classes/functions Is it okay practice to condtionally include php files that contain only classes or functions (as

[PHP] Making sure a post request came from your site

2002-04-05 Thread Chris Boget
For security, you can modify your code so that you check the $_POST elements instead of using the magic globals. That's all well and good. However, someone copy and save your HTML to their local machine, change some values, change the Action page of the form to be

Re: [PHP] using new AUTOGLOBALS

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, cyberskydive wrote: So I wanna learn how to code properly with register_globals off, I reead on PHP.net about the new auto globals and inmy new php4.1.2 windows installation using php.ini-rec edited according to the intall.txt file, and a few changes from books I have

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, Jas wrote: So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path of the file name? Any tips? This isn't an answer to your question, but I

[PHP] PHP Authorize.net interface

2002-04-05 Thread David Johansen
I was wondering if someone just point me to a good example of a PHP interface for Authorize.net to work with ADC Relay Response. Thanks, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making sure a post request came from your site

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, Chris Boget wrote: For security, you can modify your code so that you check the $_POST elements instead of using the magic globals. That's all well and good. However, someone copy and save your HTML to their local machine, change some values, change the Action page of

Re: [PHP] how to process URL parameers

2002-04-05 Thread Lee Doolan
Erik == Erik Price [EMAIL PROTECTED] writes: [. . .] Erik There is another way, it's a bit more involved. You open a Erik socket with the server and directly send the data as POST Erik data. This allows you to avoid having to bother with a Erik

Re: [PHP] PHP and mySQL...

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, Anthony Ritter wrote: Any idea what the cost is for the ISP to install mySQL on their end so that I can utilize my database that I've set up on localhost? MySQL is free for that sort of usage, so it only costs their time. If they've done it before, it takes about 5 minutes

RE: [PHP] regexp for ' replacement

2002-04-05 Thread Rick Emery
regexp is not what you need then You will require a character-by-character search/replace or try: ?php $q = 'here's to you'; print \$q= $q\n; $a = addslashes($q); print \$a= $a\n; $z = ereg_replace(\\\'(.*)\\\','\\1',$a); print \$z= $z\n; ? which produces: $q= 'here's to you' $a= \'here\'s to

RE: [PHP] refresh

2002-04-05 Thread Rick Emery
yes, put the name of the PHP file -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 12:23 PM To: Rick Emery Subject: RE: [PHP] refresh When I delete a record from a table in php it loops back to the table. However, It does not show that the

[PHP] Re: regexp for ' replacement

2002-04-05 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote: If I have as part of a text: ...and then 'the quick brown fox jumped over the lazy dog's piano'... How can I substitute the single quote in dog's with say \' I want to aply a substitution for only the single

Re: [PHP] Making sure a post request came from your site

2002-04-05 Thread Chris Boget
Is there any way to determine from where the post request came from w/o using http_referer? No, nor with it. I know that http_referer is unviable, that's why I asked if you can find out that data w/o using it. Someone who wants to mess with you can supply any HTTP referer they want to

[PHP] Re: conditionaly including classes/functions

2002-04-05 Thread CC Zona
In article f05100303b8d23ce1c0d5@[217.37.50.73], [EMAIL PROTECTED] (Andrew Warner) wrote: Is it okay practice to condtionally include php files that contain only classes or functions (as opposed to just straight code)? The result is a class or function inserted right in the middle of an

Re: [PHP] Making sure a post request came from your site

2002-04-05 Thread Erik Price
On Friday, April 5, 2002, at 01:15 PM, Miguel Cruz wrote: For security, you can modify your code so that you check the $_POST elements instead of using the magic globals. That's all well and good. However, someone copy and save your HTML to their local machine, change some values, change

RE: [PHP] mysql_fetch_array()

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, Phil Ewington wrote: This is for an events calendar, I want all the dates form the db but when I am generating the individual days for the calendar I need to know whether there is an event for that day, hence pulling out all the dates from the db. As I am looping through

Re: [PHP] New Server, Bad Attitude

2002-04-05 Thread Liam Gibbs
Thanks to Tyler Longren, Hiroshi Ayukawa, and Matt Schroebel for your help. I've made big changes; the encryption thing is still throwing me for a loop, but the other two are fixed up (mostly). __ Do You Yahoo!? Yahoo! Tax Center - online filing

  1   2   >