Re: [PHP] Compution of Fibonacci

2001-07-30 Thread Stig Venaas
On Tue, Jul 31, 2001 at 11:59:07AM +0500, Saquib Farooq wrote: > hi > > well first of all you have to remove the colon -- ";" sign from > the end of your while loop .. that will solve the problem for the time > out. > then there is problem with your code, this code will never get

Re: [PHP] Compution of Fibonacci

2001-07-30 Thread Saquib Farooq
sorry i said to remove the colon sign from the end of the while loop, what i meant was to remove the colon sign from the end of your while statement :). plus it looks better to change the $c=1 to $b=1 On Tue, 31 Jul 2001, Saquib Farooq wrote: > hi > > well first of all you have to remove

Re: [PHP] Compution of Fibonacci

2001-07-30 Thread Muhv
Hi, Remove the ; after while! With ; while will loop only this line Muhv > my code: > > $i=0; > $a=0; > $b=0; > $c=0; > while ($i < 17); > { > print ""; > print "$i"; > $a=$c+$b; > print "$a"; > $b=$a; > $c=$b; > $i++; > } > ?> > -- > Thanks. >

Re: [PHP] Compution of Fibonacci

2001-07-30 Thread Saquib Farooq
hi well first of all you have to remove the colon -- ";" sign from the end of your while loop .. that will solve the problem for the time out. then there is problem with your code, this code will never get you the fibonacci since the variable a,b and c never go abone 0, see. :

[PHP] extracting data from html

2001-07-30 Thread Adrian D'Costa
Hi, This mail is very looong as I have included the code. What I need is to extract certian text from the html file and dump it into mysql table. This is what the html looks like (code below). The mysql part can wait now. I have given comment between each file. As of now the php is just prin

Re: [PHP] Compution of Fibonacci

2001-07-30 Thread Pip Taylor
You need to find the php configuration script on your system. Under Windows, this is php.ini in you Windows directory. Search through this configuration file for: max_execution_time and change the value to something other than 30 seconds, this will allow your script to run for longer. Experime

Re: [PHP] Re: Text Database class

2001-07-30 Thread Morten Winkler Jørgensen
Hi Elias This might be what you are looking for. Found on http://www.hotscripts.com -> PHP -> Scripts and Programs -> Database Tools -> "TextDB" (page 8 of 9, entry 76) Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] Compution of Fibonacci

2001-07-30 Thread marke
hi! i want to write a php script for Compution of Fibonacci(it is a integer equal the sum of 2 numbers befor it).but there's a error:"Fatal error: Maximum execution time of 30 seconds exceeded in C:\phpscr\Fibonacci.php on line 6".i don't know why it happens.it looks like the loop can't be finishe

[PHP] Re: Text Database class

2001-07-30 Thread elias
I don't want to parse XML, nor to install or recompile PHP to support the DBM, I just want some class to do the text database manipulation from querying records, updating and inserting new ones. like simple SELECT form and UPDATE and INSERT. but not a complicated SELECT with tons of conditions an

RE: [PHP] search array for value

2001-07-30 Thread Warren Vail
Sorry, mixed this up with your other query; For this If(in_array(1, $array)) { } Warren Vail -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 9:57 PM To: Matthew Delmarter; PHP Mailing List Subject:RE: [PHP] search array for v

RE: [PHP] search array for value

2001-07-30 Thread Warren Vail
How about; $valuelist = explode(", ", $array); $query = "select * from table where column in ($valuelist)"; etc. Warren Vail -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 9:41 PM To: PHP Mailing List Subject:[PHP]

Re: [PHP] search array for value

2001-07-30 Thread DrWebPat
In a message dated 7/31/01 12:32:59 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: > How do I search an array? > > For example if I want to know if $array contains "1"... > > Regards, > > Matthew Delmarter > for ($i = 0; $i < count($array); $i++) { if ($array[$i] == 1) {

[PHP] search array for value

2001-07-30 Thread Matthew Delmarter
How do I search an array? For example if I want to know if $array contains "1"... Regards, Matthew Delmarter -- 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-ma

[PHP] search based on array

2001-07-30 Thread Matthew Delmarter
How do I search mysql based on an array? For example suppose I had an array of array(1,2,3). And I want to search like so: SELECT * FROM table WHERE id=arrayvalues Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] Why no color in graphic?

2001-07-30 Thread Gaylen Fraley
I'm simply trying to resize an image, which is working - sortof. It resizes properly, but it loses it's color. Why, and how do I correct it? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

RE: [PHP] storing array in mysql

2001-07-30 Thread Ben Bleything
Whee! I'm a moron! Anyhoo, I've always used mysql_fetch_array() => So... Like I said about the serialized data getting truncated... that's still my best guess => Ben -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 9:10 PM To: 'Matthew Del

RE: [PHP] storing array in mysql

2001-07-30 Thread Ben Bleything
To be honest, I don't know what this line does: Echo $db_result->lists_actual I also noticed something... it appears that the serialized data is incorrect... are you sure you copied the whole thing? I think there should be more to that... is it possible that your MySQL datatype is too small to

[PHP] array/mysql problems

2001-07-30 Thread Matt Greer
I've been trying to get this to work all night with no luck. I've gotten a similar version to work, with the only real difference being I didn't use mysql (I just plugged some stuff in). But other than that I can't see the difference. Basically I'm trying to pull stuff out of a database, get an av

??,?: [PHP] storing array in mysql

2001-07-30 Thread liufeng
if i want to search this array,how do this sql?thanks -- ???: Matthew Delmarter [mailto:[EMAIL PROTECTED]] : 2001?7?31? 11:34 ???: Ben Bleything ??: PHP Mailing List ??: RE: [PHP] storing array in mysql Hi Ben, This is a section of the insert statement I used ($list

[PHP] Banner Exchange Schema ??

2001-07-30 Thread Jon Shoberg
In creating a banner exchange, anyone have thoughts on how the big boys use their javascript and server side coding to do the banner rotations? I've look at a lto of examples but some concurrency issues arrise. Anyone have thoughts on or seen 'research' on how the major networks get the job do

RE: [PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
Hi Ben, This is a section of the insert statement I used ($lists_actual is the array): $lists_actual = serialize($lists_actual); Then : INSERT INTO $table (lists_actual) VALUES ('$lists_actual') When I look in the db there is serialized data there - it appears like this: a:4:{i

[PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
Hi all, I want to store the results of a multiple select input box in a mysql db. The box looks like this: name I cannot seem to store the array in a database and then output the result using foreach. Any tips? Regards, Matthew Delmarter Web Developer AdplusOnline.com Ltd www.adplus

Re: [PHP] PHP_SELF

2001-07-30 Thread Gerard Samuel
So far this message and another who mentioned $HTTP_POST_VARS[] made a small light go off in my head. Not enough to get the script woriking, but it made me think. Its not clear, but I sort of came up with another way, but I dont know if its doable . In my form I have a hidden element called

Re: [PHP] Making graphs from within PHP?

2001-07-30 Thread Philip Olson
This faq may help : "Is there a PHP library for drawing graphs?": - http://www.faqts.com/knowledge_base/view.phtml/aid/228/fid/2 Also, I'd have a look here : PHP : Scripts and Programs : Graphs a

RE: [PHP] THE END OF the HTTP header question.

2001-07-30 Thread Ben Bleything
If you try to do this and find that it's barfing out the headers, use this: include "include/class.http_post.php"; $poster = new http_post(); $poster->set_action("http://$HTTP_HOST$RAMS_ROOT/login.php";); $poster->set_element("failure",true); $poster->set_enctype("multipart/form-data"); $return =

[PHP] Making graphs from within PHP?

2001-07-30 Thread Dr. Evil
I have a PHP application, and I need to display some dynamic data as a simple line graph (a gif or png). Is there a simple way to do this? Maybe something I can compile in to PHP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] PHP_SELF

2001-07-30 Thread Michael J. Seely
I do this sort of thing all the time. The format I use typically follows this logic. The PHP file has four IF-ELSEIF-ELSE sections. pg=1 or blank is the initial form pg=2 is the error check looking at input values. If it passes, pg is set to 3. If not, set to 1. The adv

[PHP] THE END OF the HTTP header question.

2001-07-30 Thread Ben Bleything
We can all shut the hell up about this now! It's wonderful! Found a class on px.sklar.com that does what I need. It may not be the most elegant solution in some people's opinion, but I'm happy with it. Do with it as you will. http://px.sklar.com/code-pretty.html?code_id=313 Still curious abou

[PHP] XSpell 0.1 Released

2001-07-30 Thread Garth Dahlstrom
Some may be interested... This was released today. XSpell is a spell checker for HTML forms. It is composed of a XML-RPC based browser client written in Javascript and an XML-RPC service implemented in PHP 4+. Download at: http://sourceforge.net/projects/xspell/ Demo at: http://www.northern.ca/

[PHP] Re: Need for dox...

2001-07-30 Thread Philip Olson
Have a look here : "I'm new to sessions and cookies, where do I start?" http://www.faqts.com/knowledge_base/view.phtml/aid/6621 If anyone has useful words to add to this faq, please do so. Or post your suggestions here. Regards, Philip Gabriele Biondo wrote: > Hi... i would like to have

Re: [PHP] Can't write to file via php, just via ftp...Can anyonehelp?

2001-07-30 Thread mike cullerton
on 7/30/01 2:58 PM, Stephan Hübner at [EMAIL PROTECTED] wrote: > Hello all, hi stephan, > another newbie-question, probably... :-) they all are, at first! > And sorry for my (possibly) bad english, I'm from Germany. sorry for mine, i'm from virginia :) > the problem I noticed is that I have

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Ben Bleything
Ahh, and a bit of clarification before you read the code, the page posts to itself => Ben -Original Message- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 8:05 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: HTTP header question. below >Some of the original message

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Ben Bleything
If you all would like, I can post my code... I'm still looking for a solution. Matt has it right. I'm trying to go for a more professional looking thing... and I do want it to display a notice when the login fails. I have thought of another way to do it... but it's not pretty, so I'm still open

Re: [PHP] PHP_SELF

2001-07-30 Thread Phil Driscoll
On Monday 30 July 2001 23:39, Erik H. Mathy wrote: > W...besides your everyday, run of the mill geek who hates > Javascript pop-ups, who really disables JavaScript? 95% of the users out > there don't ever touch the default browser settings. Also, the Javascript > 1.0 has been around since,

Re: [PHP] PHP_SELF

2001-07-30 Thread Richard Baskett
What I did was use javascript to make sure they filled out certain parts of the form. I also created a php version in case they disabelled javascripting. The way I did this was each input do this: When they first come into the site the $Username value will be blank, but once they have submitt

RE: [PHP] PHP_SELF

2001-07-30 Thread Erik H. Mathy
W...besides your everyday, run of the mill geek who hates Javascript pop-ups, who really disables JavaScript? 95% of the users out there don't ever touch the default browser settings. Also, the Javascript 1.0 has been around since, what, Netscape 2? It's all you really need for form valida

RE: [PHP] PHP_SELF

2001-07-30 Thread Johnson, Kirk
>Ideal scenario, a blank form is presented to the > user, and when > the form is submitted, do the logic check and act accordingly. Is it > possible using $PHP_SELF as the target, or do I have to use 2 > files: a > form 'front end' with the php logic in the 'backend'?? Yes, this is possible

Re: [PHP] PHP_SELF

2001-07-30 Thread Ryan Fischer
You wrote: > It's generally a whole lot better to do your form value checking with > Javascript. It'll be faster and alot less of a waste of your server > resources. IMHO, of course. :) This really isn't that true because if a user has JavaScript disabled, or is using a browser that doesn't suppo

RE: [PHP] PHP_SELF

2001-07-30 Thread Erik H. Mathy
It's generally a whole lot better to do your form value checking with Javascript. It'll be faster and alot less of a waste of your server resources. IMHO, of course. :) > -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 5:30 PM > To: PHP >

[PHP] PHP_SELF

2001-07-30 Thread Gerard Samuel
Im trying to introduce some logic into a form.I am unsing $PHP_SELF as the target. I have a text area that the user inputs their age. What I want is that if the field is blank, to stop the script and send the user back to fill in their age. My problem now is that if I go to the blank applic

Re: [PHP] Teen Hobos having sex? ..no.. but MAYBE

2001-07-30 Thread Sterling Hanenkamp
Matt's Script Archive was just updated a couple days ago and includes a fix similar to mine--I just discovered. Thanks, Sterling Andrew Sterling Hanenkamp wrote: > Actually, if you use telnet you can write your own headers and say > you've been refered by whoever you want to say you were refe

Re: [PHP] Using a query to selecting between two dates

2001-07-30 Thread Mike Gifford
I ended up using your simpler version, which came out like this: $contentquery3 = mysql_query("SELECT *, YEAR(date) AS year, YEAR(NOW()) AS now FROM $articlestable WHERE articleSectionID = '$id' AND YEAR(date) = YEAR(NOW()) ORDER BY date DESC") or mysql_die(); Thanks. Mike Don Read wrote: >

Re: [PHP] Newbie: Simple site search >> To bit more Complex...

2001-07-30 Thread Sheridan Saint-Michel
I wrote a search script recently, and had the user specify which directories they wanted searched. You can view that here (Requires free account). I thought this a better choice as it was easier and more customizable. http://www.weberdev.com/get_example.php3?count=3014 As for searching EVERYTH

[PHP] fopen not opening url

2001-07-30 Thread Jay Paulson
here's the code i'm using below to try and open up the url.. :) thanks! jay $fp = fopen("http://p.moreover.com/cgi-local/page?c=Music%20business%20news&o=xml"; , "r"); $length = filesize($fp); $content = fread($fp,$length); fclose($fp); echo $content; - Original Message - From: "Jack De

[PHP] Re: Can't write to file via php, just via ftp...Can anyone help?

2001-07-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Stephan HüBner) wrote: > Hello all, > > another newbie-question, probably... :-) > > And sorry for my (possibly) bad english, I'm from Germany. > > the problem I noticed is that I have to write to a file on the server. I > created a directory where I store the files,

[PHP] Can't write to file via php, just via ftp...Can anyone help?

2001-07-30 Thread Stephan Hübner
Hello all, another newbie-question, probably... :-) And sorry for my (possibly) bad english, I'm from Germany. the problem I noticed is that I have to write to a file on the server. I created a directory where I store the files, upload a data-file into it and tried to write to it via a php-file

Re: [PHP] Large Calculations

2001-07-30 Thread Ryan Fischer
You wrote: > I have a mySQL database holding baseball stats and I want to calculate > rankings on these players. Now I'd obviously want this to be as fast as > possible since I go through about 600 players but where is it best to make > them? In the SQL command itself or in PHP? > > players need

[PHP] session_set_save_handler

2001-07-30 Thread Wendy Roseberry
We have several small applications that have been using the built-in session functions from php for quite sometime. Recently, I have started using the session_set_save_handler in 3 of those applications. Even though the documentation on php.net says, "Note: You must set the configuration optio

[PHP] Re: Get Operating System

2001-07-30 Thread Rainer Rosenberger
"Philip Olson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You may want to use the predefined constant PHP_OS as described here : Thanks Philip, that was exactly I was looking for, so I tried to reinvent the wheel :-) (RYFM). Nevertheless it's strange

[PHP] Newbie: Site search, more than one directory

2001-07-30 Thread Steve Wright
Hey, I have just developed a simple site search.. .and am after learning how to get it to search all directories... at present, it only searches the one it is in!! Here's the code: " METHOD="POST"> " SIZE="20" MAXLENGTH="30">

Re: [PHP] Need for dox...

2001-07-30 Thread B. van Ouwerkerk
>... is there a better search engine than the experience of other people >that faced the problem before??? I find it to easy to just start asking questions without doing some research on your own.. Your question does show a lack of own initiative.. like not clicking documentation on the php.n

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
Hey Guys, The numbers are read in binary, ie: USER/GROUP/OTHER so, to set read and execute for user only (r-x) you count in binary from right to left (1 + 4) so it would be chmod 500 or for all (user/group/other) read, write, execute it would be chmod 777 (1 + 2 + 4) Hope that helps :-) --

RE: [PHP] Find and Replace

2001-07-30 Thread Matthew Loff
Instead of using numbers, I use this system: chmod a+rwx (all users read/write/execute) chmod u+rwx (owner of file read/write/execute) chmod g+rwx (group read/write/execute) chmod o+rwx (all users read/write/execute) The plus + can be substituted with a minus - to remove specific permissions

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
I forget, actually :) Here's a tutorial on it though - http://www.bruce-hamilton.com/tutorials/chmod.shtml Matt Kaufman - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: "'Matt Kaufman'" <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 12:14 PM Subject: RE: [PHP] Find and

Re: [PHP] fopen not opening url

2001-07-30 Thread Jay Paulson
here's the code i'm using below to try and open up the url.. :) thanks! jay $fp = fopen("http://p.moreover.com/cgi-local/page?c=Music%20business%20news&o=xml"; , "r"); $length = filesize($fp); $content = fread($fp,$length); fclose($fp); echo $content; - Original Message - From: "Jack De

RE: [PHP] Find and Replace

2001-07-30 Thread Don Read
On 30-Jul-2001 Shrout, Ryan wrote: > This isn't exactly PHP I need help with, but it relates to what I learned > about security. Up until now, I have been using *.inc extensions for my > include files. Well, I didn't realize until recently that anyone can view > these files. So, I want to rena

RE: [PHP] ODBC for UniVerse Database

2001-07-30 Thread billfarr
WHUPS! Guess I should have asked if you were running UV on *nix or NT... it makes a difference. It's dead-easy on NT; merely tedious to set up on *nix... B -Original Message- From: Bill Farrell Sent: Monday, July 30, 2001 3:19 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [

RE: [PHP] ODBC for UniVerse Database

2001-07-30 Thread billfarr
So I'm _not_ the only one still running UV :-))) Do you have the UV PDF's handy? There's a section on setting up the ODBC. If you don't have it, I'll mail you a copy. UV's ODBC works reasonably well, except that it takes a seat every time you instantiate a connect. Perhaps a better way of goin

Re: [PHP] Find and Replace

2001-07-30 Thread Phil Driscoll
On Monday 30 July 2001 20:14, [EMAIL PROTECTED] wrote: > It's also possible (if you're allowed to change the httpd.conf file) to put > in a directive, something like > > Order deny,allow > Deny from all > This is also by far the safest technique (other than moving the included files outside y

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
Try this: ---cut--- ### # Finds all *.inc from current directory and rename then to *.inc.php # then edit that file and replace all references to it as well # I haven't tested this, but it should work, but don't be a dumbass and not make a backup copy # of your files before runnin

RE: [PHP] Find and Replace

2001-07-30 Thread billfarr
It's also possible (if you're allowed to change the httpd.conf file) to put in a directive, something like Order deny,allow Deny from all Then no-one can directly access files with those extensions. You can still include them (that doesn't require a separate fetch). That would eliminate the

[PHP] IMAP4, krb4 and PHP4 - tix not handled right under apache modulevers

2001-07-30 Thread Liam Hoekenga
I'm trying to get IMAP4, krb4, and php4 working happily together. I was able to get php's imap support to recognize the krb4 tickets by adding this to ext/imap/php_imap.c: auth_link(&auth_krb);/* link in the log authenticator */ in with the other auth_link statements. The probl

Re: [PHP] Find and Replace

2001-07-30 Thread Nathan Cook
I just setup apache to parse *.inc files through php. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 1:06 PM Subject: [PHP] Find and Replace > This isn't exactly PHP I need help with, but i

Re: [PHP] Find and Replace

2001-07-30 Thread Christopher Allen
!!Be careful of this, its super powerful!! try it on 1 test file first and then do the wildcard... from the unix command line: bash>perl -p -i -e s/myself.inc/myself.inc.php/ *.php so its: perl -p -i -e s/original_text/text_to_replace/ file_name(s) - Original Message - From: "Shr

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
Oh, vi has a find and replace feature if you want to do it through the terminal. Matt Kaufman - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 12:06 PM Subject: [PHP] Find and Replace > This isn't exactly PHP I need help

Re: [PHP] Find and Replace

2001-07-30 Thread Matt Kaufman
There are a lot of text editors that allow you to find and replace - vi even does. You can also CHMOD the *.inc files to allow only the owner to access them - I don't even use the *.inc or *.inc.php function, you can do without it (eg include.php, settings.php instead of include.inc or settings.i

[PHP] Newbie: Simple site search >> To bit more Complex...

2001-07-30 Thread Steve Wright
Hey, I have just developed a simple site search.. .and am after learning how to get it to search all directories... at present, it only searches the one it is in!! Here's the code: " METHOD="POST"> " SIZE="20" MAXLENGTH="30">

[PHP] Find and Replace

2001-07-30 Thread Shrout, Ryan
This isn't exactly PHP I need help with, but it relates to what I learned about security. Up until now, I have been using *.inc extensions for my include files. Well, I didn't realize until recently that anyone can view these files. So, I want to rename them to *.inc.php. BUT, in almost all of

Re: [PHP]DB Logic help...

2001-07-30 Thread B. van Ouwerkerk
Seen some stuff on freshmeat. Does about what you want. Bye, B. At 14:27 30-7-01 -0400, Chris Cocuzzo wrote: >hey- > >I have a few pages on my website which need to be divided up into different >columns and rows based on a category in a table. for example, on a links >page, I have three differ

[PHP] ODBC for UniVerse Database

2001-07-30 Thread Justin Farnsworth
Anybody on this list: 1. Have experience with ODBC for Universe 2. Know where there is a driver available You may reply privately if you think it is not of interest to this group _jef -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (

Re: [PHP] Limit

2001-07-30 Thread Matt Kaufman
No problem, nice to help :) - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: "Matt Kaufman" <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 11:44 AM Subject: RE: [PHP] Limit > perfect, thank you > > -Original Message- > From: Matt Kaufman [mailto:[EMAIL PROTECT

[PHP] require() results in session and header-sent errors

2001-07-30 Thread Jempty, George
I'm trying to prototype the framework for some intranet applications. I begin with a login.php script. At the VERY top, of this script, I require a file as follows: require("intranet_ini.php"); This contains some constant definitions, and one function; here is the code:

[PHP]DB Logic help...

2001-07-30 Thread Chris Cocuzzo
hey- I have a few pages on my website which need to be divided up into different columns and rows based on a category in a table. for example, on a links page, I have three different columns, one for bands, one for sites, and one for other things. I'm storing those things in the table with a cate

Re: [PHP] Limit

2001-07-30 Thread Matt Kaufman
I would just query the database to see how many records are currently listed (using COUNT) and use an if statement to see if it's over or under the limit. If it's over you can just print out a message saying that no more entries can be added. Matt Kaufman - Original Message - From: "Jere

[PHP] Limit

2001-07-30 Thread Jeremy Morano
How do I put a limit of records that can be entered in a table? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] fopen not opening url

2001-07-30 Thread Jay Paulson
hello- I'm trying to use the fopen() command to open the url below and just read it into another $var. However, I'm having some problems the warning i get is below along with the url in the warning. Anyone know what's going on here?? Thanks, jay Warning: php_hostconnect: connect failed Warn

[PHP] Realm Auth Via Non-Sessions

2001-07-30 Thread Christopher Allen
Greetings: OT (yes)? When a user leaves a realm(.htaccess) from which they have logged into is there any kind of notification back to the server? I would like keep a log of such activities and do not want to do any session type of jizz jazz(cookies etc). I would think that there would need to be

[PHP] MySQL Processes Inifinitely in PHP

2001-07-30 Thread Chris Anderson
I've been using PHP 4.0.4p1 WIN32, Apache 1.3.19 WIN32 and the latest MySQL WIN32 build for almost 6 months without a problem. But now if I try and run a php file using MySQL functions it just processes forever. There is no output and I can stop with the browser's stop button. I have tried remo

[PHP] character conversion - horrible characters from MS Word

2001-07-30 Thread Phil Driscoll
One of my applications is being heavily used by people who are cutting and pasting text from MS word into text areas within a form. I dutifully store what they send, and display it later using htmlentities and nl2br to sort out funny characters. Sadly, quite a few oddballs for which there are

Re: [PHP] Large Calculations

2001-07-30 Thread Jay Paulson
why don't you calculate the stats every time someone inserts new stats... you could have a column in your table for the average of the stats you want.. that way when you want to call them back up all you have to do is get that one column and save your cpu all that processing power... that's my tho

[PHP] installing sablot on win2k and php

2001-07-30 Thread Jay Paulson
I'm trying to install sablot on my win2k machine. I have PHP 4.0.5 and in the /php/dlls/ directory there is the expat.dll and the sablot.dll. Also, in the /php/extentions/ directory there is the php_sablot.dll. I have a small test script to see if it's working and also printing out the phpinfo(

[PHP] Large Calculations

2001-07-30 Thread Jeff Lewis
I have a mySQL database holding baseball stats and I want to calculate rankings on these players. Now I'd obviously want this to be as fast as possible since I go through about 600 players but where is it best to make them? In the SQL command itself or in PHP? players need to have at least 100

RE: [PHP] MS SQL datetime format problem

2001-07-30 Thread scott [gts]
*how* are you putting it in? > -Original Message- > From: Brian Weisenthal [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 1:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] MS SQL datetime format problem > > > Hi, > > I am having trouble setting a datetime in

Re: [PHP] Re: which php shopping cart is this?

2001-07-30 Thread Kurth Bemis
At 12:29 PM 7/30/2001, simradusaadmin wrote: its called the exchange project it hink that its at www.theexchangeproject.org ~kurth >[EMAIL PROTECTED] wrote: > > > Greetings! > > > > Which php-based shopping cart is being used at this site? > > http://shop.t-shirtoutlet.com/catalog/ > > > >Did

RE: [PHP] mkdir

2001-07-30 Thread Jerry Lake
I can create single directories, just not subdirectories. and only in the directory the script is in I'm guessing that it may be a permission issue ...? Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com

[PHP] Re: which php shopping cart is this?

2001-07-30 Thread simradusaadmin
[EMAIL PROTECTED] wrote: > Greetings! > > Which php-based shopping cart is being used at this site? > http://shop.t-shirtoutlet.com/catalog/ > Did you try their contact form? They would be the best source for the answer. > > Thanks! > > Max Pyziur BRAMA - Gat

RE: [PHP] Revision Tracking - program concept

2001-07-30 Thread scott [gts]
you are severely re-inventing the wheel. Look for CVS or RCS programs on the net. you'll save yourself a ton of work. > -Original Message- > From: Dave Freeman [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 6:27 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Revision Tracking - p

Re: [PHP] New Book - Tips?

2001-07-30 Thread pierre-yves
I would also cover in detail the php.ini file. (what is safe mode, magic_quote...) So many questions get posted here because of people who do not know the power of this file and all it's implication. (nothing wrong tho, people are here to answer...) They use the engine without knowing the engine..

[PHP] Re: Revision Tracking - program concept

2001-07-30 Thread Inércia Sensorial
I guess, you could create a table with some colums like, 'last_modified', 'who_modified', 'document_path'. Then when someone makes a change, you save this changed document in a folder with the name of the document, so it is easy, folder by folder, to find all modified documents. You can even

RE: [PHP] New Book - Tips?

2001-07-30 Thread Jeff Oien
One thing I would like to see is using PGP (or gnu) encryption on the server, not via e-mail. Jeff Oien > Hi there, > > I'm currently in the process of writing a new book about PHP entitled PHP Exertion. > > I've read several other books, and none of them covered everything that > was needed, so

Re: [PHP] Admin help please!

2001-07-30 Thread Matt Greer
on 7/30/01 9:00 AM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote: > So.. for php general help thats: > [EMAIL PROTECTED] > > Uhm, this was also in the welcome messages you got when you subscribed. > It's also in the footer of every message posted to this list :) Matt -- PHP General Mailing

[PHP] New Book - Tips?

2001-07-30 Thread Matt Kaufman
Hi there, I'm currently in the process of writing a new book about PHP entitled PHP Exertion. I've read several other books, and none of them covered everything that was needed, so I basically have an understanding of what I will write about and what topics to include - although I was wonderin

Re: [PHP] Form Data

2001-07-30 Thread Gerard Samuel
Yup, that was it. I had it set to 3 in mysql. Thanks for the pointer... Chris Lambert - WhiteCrown Networks wrote: > Try changing the column length to five. > > /* Chris Lambert, CTO - [EMAIL PROTECTED] > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.n

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Dave
below >Some of the original message: >> still don't see the need to pass as a header... >> >> you avoid the http://his.website.com/rams/login.php?failure=true as you >just get >> login.php each time as far as the displayed URL. >> >> my opinion, let the scripting handle all the logic and ease off

[PHP] Re: What tools do you use to develop PHP?

2001-07-30 Thread Matt Rogers
I like PHPCoder for Winblowz: http://www.phpide.de There are a couple of others, but this one lets you do all kinds of stuff built-in. Of course, it's for Windows and you have to download the documentation (mySQL, PHP, and htmlhelp.com's HTML docs) And the fact that it's still kinda buggy

[PHP] exec'ing sendmail?

2001-07-30 Thread Kevin Price-Ward
Hi, I am experiencing problems with an email distribution utility using the mail function, the 'Return-path' header that I specify gets overwritten by sendmail. I write: Return-Path: <[EMAIL PROTECTED]>\n but sendmail re-writes this as: Return-Path: <[EMAIL PROTECTED]> My plan is to exec sendm

RE: [PHP] Connecting PHP to SQL Server

2001-07-30 Thread Andrew Hill
Hi, One fairly straightfoward way is to use an ODBC driver. You will want to compile PHP --with-iodbc as per the HOWTO on www.iodbc.org, and then install your ODBC driver of choice. OpenLink supports the Solaris-to-SQLServer architecture with our Multi-Tier drivers, which are available for a fr

RE: [PHP] Connecting PHP to SQL Server

2001-07-30 Thread Mark Roedel
> -Original Message- > From: webmaster uva [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 6:56 AM > To: php > Subject: [PHP] Connecting PHP to SQL Server > > > I have to connect one Solaris computer (Netscape Enterprise > Server) with PHP to another one with NT (database SQL Se

[PHP] move_uploaded_file permissions

2001-07-30 Thread bill
I tried the new move_uploaded_file() function. It seems to work fine but doesn't assign any permissions to the moved file, not even for reading. Is there any way around this? Can I define the permissions myself? kind regards, bill hollett -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Array Bug?

2001-07-30 Thread Robert Covell
Thanks for the heads up. I wanted to see if anyone else was having a similar experience before filing a bug. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- F

  1   2   >