[PHP] listing dates ranges

2002-03-21 Thread rory oconnor
I am writing a php front-end to create dynamic queries on a mysql database, and i'm a pretty new programmer! I want to offer the user a date range, and the dates I want to use are stored in my database: 2002-02-17 2002-02-24 2002-03-02 2002-03-09 2002-03-15 ... and I can select them, but what

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
We calculate the charge by $75-$150 per hour depending on complexity of the project, then quote customer the final price. On small projects, < $5000, its usually half before project, and half after project. For project > $5000, it's usually 30% up front, 30% when we have major features completed

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Robin Chen
"[-^-!-%-" wrote: > Hello everyone, > > I'm in the process of revising my db development prices, and was wondering > what the best practices were. I want to keep my prices low, but I often > feel like I'm not charging close to what I should be charging. > > 1) What is the going rate for Databas

[PHP] RC4Crypt encryption opinions

2002-03-21 Thread .
I'm looking for opinions on RC4Crypt, and encryption class that I may be looking to use as an alternative to mcrypt (which is not available on my server). Is it secure? Has anyone used it? How has it worked out? Anything else I should be aware of? RC4Crypt: http://sourceforge.net/projects/rc4c

Re: [PHP] More newbie help - mixing 2 different things into one database

2002-03-21 Thread Jason Sheets
- Original Message - From: "Jason Sheets" <[EMAIL PROTECTED]> To: "Laurie Landry" <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 10:35 PM Subject: Re: [PHP] More newbie help - mixing 2 different things into one database > Make sure your $option_block2 is in the variable scope of you

Re: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 10:52, Andre Dubuc wrote: > Thanks Martin, > > I forgot to mention: I would like to accomplish this using PHP since I'm > not using Javascript. Will this still work with straight html? You can't have your cake and eat it :) What you require can only be done client-side wh

Re: [PHP] Fetching 1 array from either one of 2 possible columns?

2002-03-21 Thread Thalis A. Kalfigopoulos
The problem is in your SQL query. Try it as: $sql = "SELECT * FROM links WHERE (SUBJECT1='$subject' OR SUBJECT2='$subject') AND GEOGRAPHIC='$geographic' ORDER BY ORGANIZATION ASC"; The AND operator has higher precendence than the OR, so given that you didn't have parenthesis, it was interpret

RE: [PHP] More newbie help - mixing 2 different things into one database

2002-03-21 Thread Laurie Landry
Oh... maybe I should take a "How to send a full and complete email" newbie class instead? :) Here's the code: Add a Link to the Links Database $subjects"; } // create SQL statement $country_sql = "SELECT countries FROM countries ORDER BY countries ASC"; // execute SQL query and get re

Re: [PHP] More newbie help - mixing 2 different things into onedatabase

2002-03-21 Thread Thalis A. Kalfigopoulos
If you don't give any code, I doubt anyone will be able to help. The error msgs to say the least. On Thu, 21 Mar 2002, Laurie Landry wrote: > Hi, > > In this example: I'm trying to introduce the selection data from another > table in the database into this form. The form is a simple form whe

[PHP] Fetching 1 array from either one of 2 possible columns?

2002-03-21 Thread Laurie Landry
I'm working on a query by selection type of form, where if a user selects a subject to get information. Each database entry will have 2 subject fields, Subject 1 being the main subject and Subject 2 being the cross-subject. A table is set up like this: +--+--+--+--+---

[PHP] More newbie help - mixing 2 different things into one database

2002-03-21 Thread Laurie Landry
Hi, In this example: I'm trying to introduce the selection data from another table in the database into this form. The form is a simple form where if missing any data, you're redirected back to the page to form but with data filled in some areas that you had filled in before. Now, instead of ma

[PHP] easyphp question

2002-03-21 Thread jtjohnston
Anyone using easyphp? I want to know if the new 4.1.2 binary at http://www.php.net/downloads.php is what I want or is it good for Apache? Doesn't seem to mention anything about "versions for Apache", only the zip package. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Apache

2002-03-21 Thread jtjohnston
Thanks all :) I went with: http://httpd.apache.org/docs/mod/core.html#options and not put "Indexes" between. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload a file directly to the proper directory

2002-03-21 Thread pierre . marcandella
Hi, Bogdan, Thanks for your help. It isn't a SQL error. I do not upload the file to a database. I have been able to upload a 4M file. I really think it is because the memory_limit of the server is 8M. And that means that it doesn't have enough resource to copy the uploaded file from the tempora

[PHP] Cascading of environment variables when running a Perl script from PHP.

2002-03-21 Thread Norman Cates
Hi, I'm trying to call a Perl CGI script from PHP. I use the system or exec commands. That works fine. I've basically got that sorted out. As a test, i ran a CGI script which returns all the environment variables that the script can see. When I run it from the command line, I get one set which

Re: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Andre Dubuc
Thanks Martin, I forgot to mention: I would like to accomplish this using PHP since I'm not using Javascript. Will this still work with straight html? regards, Andre On Thursday 21 March 2002 21:39, you wrote: > do it in html/javascript like this: > > http://www.somewhere.com/"; method="get"

[PHP] OMNICRON Problems

2002-03-21 Thread Christopher J. Crane
I just downloaded PHP from PHP.net and it's the newest version. I can not get it to work. I get the "Security Alert! PHP CGI cannot be accessed directly" message. I have edited the php.ini file and changed the "cgi.force_redirect" to "0" and back to "1" and everything else I could think of. I rest

RE: [PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Martin Towell
do it in html/javascript like this: http://www.somewhere.com/"; method="get" onSubmit="return (this.okay.value != 'no');"> -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Trap CR or "Enter

[PHP] Trap CR or "Enter" possible?

2002-03-21 Thread Andre Dubuc
In one of my php pages, I have a form that requires the user to click "Search for Surname". If however they press "Enter", undesirable effects occur. I've successfully trapped if an empty string is in the , but "Enter" eludes my efforts to trap it for an appropriate "Educational" message about

RE: [PHP] Displaying SELECT results

2002-03-21 Thread Martin Towell
1) a) you know which page you're on (default to 1) b) count = "select count(*)" from database c) num_pages = count / num_items_per_page d) display accordingly 2) start loop (has some counter, eg $i) $bgcol = "white"; if ($i % 2 == 1) $bgco

[PHP] Displaying SELECT results

2002-03-21 Thread Christopher J. Crane
I wrote a shopping cart, but I don't understand two things. 1) What is the best way to display like the first ten records and then a list of how many pages with 10 records on them...similar to like a search engine when it returns it's results. If I have 100 items I do not want to display all of th

[PHP] looking for tutorial on XML parsing of attributes...

2002-03-21 Thread Scott Brown
Ok - first off, I've found a few... phpbuilder has a nice number of references. But every one I've tried has ignored attributes... either that, or I dont understand what I'm doing. I retrieve from a distant server an XML response to an inquiry: sometext sometext1

[PHP] ODBC -- Setting ApplicationID with PHP

2002-03-21 Thread Bruce Garlock
I am trying to set the ApplicationID, when connecting to an ODBC datasource. I have tried: odbc_setoption ($conn, 1, 1053, "PHPAPP"); And get a: "SQL error: [iODBC][Driver Manager]Option type out of range, SQL state S1092 in SetConnectOption" Basically, I want my PHP script to pass the applic

Re: [PHP] Database Development Price Inquiry?

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 08:27 PM, [-^-!-%- wrote: > > Hello everyone, > > I'm in the process of revising my db development prices, and was > wondering > what the best practices were. I want to keep my prices low, but I often > feel like I'm not charging close to what I should be chargi

Re: [PHP] Re: More fun with sessions

2002-03-21 Thread scott furt
Also, if your sessions use a database, you could do some SQL queries to see which sessions have been loaded in the last few minutes. Julio Nobrega wrote: > From all users on your site? I guess only if you open the directory where > the session files are stored. And loop through the files, openi

[PHP] Re: More fun with sessions

2002-03-21 Thread Julio Nobrega
From all users on your site? I guess only if you open the directory where the session files are stored. And loop through the files, opening each one and interpreting the contents. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho

Re: [PHP] echo and Session Variables

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 06:26 PM, David Johansen wrote: > Thanks that fixed the problem, but I have a question then. Am I > supposed to > put the ' in the $_SESSION[] in the normal parts of code. Thanks, > Dave You should use either single quotes or double quotes in any associative i

[PHP] Database Development Price Inquiry?

2002-03-21 Thread [-^-!-%-
Hello everyone, I'm in the process of revising my db development prices, and was wondering what the best practices were. I want to keep my prices low, but I often feel like I'm not charging close to what I should be charging. 1) What is the going rate for Database Development (MySQL+PHP or any

[PHP] More fun with sessions

2002-03-21 Thread James Taylor
How can I get a listing of all currently active sessions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I figured out what's causing it, but how do I fix it

2002-03-21 Thread David Johansen
I just figured out that it's that the name of the field in the form is the same as the Session variable, cause if I change it then it doesn't have this problem, but how do I go about fixing this? Is the only solution just to make them named different things? Thanks, Dave "David Johansen" <[EMAIL

RE: [PHP] what is the difference between function and language construct?

2002-03-21 Thread Matthew Walker
Because $a=5 is not 'empty'. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: bob [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 5:19 PM To: [EMAIL PROTECTED] Subject: [PHP] what is the difference between function and language construct?

Re: [PHP] Re: ecommerce solutions..

2002-03-21 Thread Justin French
http://phpShop.org, amongst hundreds of others Justin French -- http://indent.com.au http://soundpimps.com http://hinge.net.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] echo and Session Variables

2002-03-21 Thread Johnson, Kirk
Please note that an unquoted array key is now deprecated syntax. See http://www.php.net/manual/en/language.types.array.php Kirk > The single quotes in $_SESSION['myvar'] are not necessary. You're > reading an associative array in which a string is acting as a > pointer to > the index. > > Ex

Re: [PHP] Re: Calling a javascript function?

2002-03-21 Thread pong-TC
[EMAIL PROTECTED] writes: >I would want to do something like this: > >if (something true) >{ >somejavafunc(); >} >?> > >I would want to do that. Is there some way of pulling that off? Thanks, >Dave YOu can do something like this, embed the following codes in your php file echo ""; //you can

[PHP] what is the difference between function and language construct?

2002-03-21 Thread bob
why this get wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form values not changing

2002-03-21 Thread David Johansen
Maybe there's something that I just don't get but here's the problem I'm having. I use this piece of code to initialize the text box in a form: Address: > Then I have a little php processing page that stores this value in a session variable and it just does it like this: echo $x_Address; $_SES

RE: [PHP] Re: Calling a javascript function?

2002-03-21 Thread Kevin Stone
In this case you're talking about building the Javascript dynamically. Example.. --- function echoPHPOut(out) { document.write(out); } "; } ?> --- It's a very round about way of printing a string based on a set of cri

[PHP] Re: Calling a javascript function?

2002-03-21 Thread Julio Nobrega
Like I said: somejavafunc(); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calling a javascript function?

2002-03-21 Thread Kevin Stone
We recently went into lengthy discussion about this. No there is no a way to call a Javascript function from PHP. But you CAN send a Javascript the input it needs to decide which function to use. You can either have the PHP script generate the Javascript dynamically. Or if you need to run a re

[PHP] Re: Calling a javascript function?

2002-03-21 Thread David Johansen
I would want to do something like this: I would want to do that. Is there some way of pulling that off? Thanks, Dave "Julio Nobrega" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Maybe not the way you have imagined, but either you do it outside php (out

[PHP] Re: Calling a javascript function?

2002-03-21 Thread Julio Nobrega
Maybe not the way you have imagined, but either you do it outside php (out of ) or you echo it. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "David Johansen"

RE: [PHP] echo and Session Variables

2002-03-21 Thread Rasmus Lerdorf
Well, a stray define('myvar','foo') somewhere would make a mess of that. It is safer to use $myarray['myvar']. Inside a quoted string you of course shouldn't use the '' -Rasmus On Thu, 21 Mar 2002, Kevin Stone wrote: > The single quotes in $_SESSION['myvar'] are not necessary. You're > readin

[PHP] Calling a javascript function?

2002-03-21 Thread David Johansen
Is there any way to call a javascript function from inside a php script? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] echo and Session Variables

2002-03-21 Thread Kevin Stone
The single quotes in $_SESSION['myvar'] are not necessary. You're reading an associative array in which a string is acting as a pointer to the index. Example.. $myarray = array ('myvar' => 'myvalue'); echo $myarray[myvar]; // prints out 'myvalue' -Kevin -Original Message- From: David J

[PHP] PHP command line scripting multiple process forking

2002-03-21 Thread Walker, Roy
I have been playing with this for a couple of days and have run into a few issues: I am wanting to run a set number of multiple processes (ie 25 at a time). I can't use the exec command since it will not wait for the output (this is a delayed response - network based). $cmd = "/path.to/some.cmd

[PHP] PHP IDE Feedback

2002-03-21 Thread Dennis Moore
I am currently evaluating the following IDEs that support PHP. Zend's Studio 2.0 NuSphere's PHPEd Active State's Komodo My selection criteria are: Code Completion Debugging Project Management Versioning and Source Control Documentation Code Deployment I have read through the documentation of

Re: [PHP] echo and Session Variables

2002-03-21 Thread David Johansen
Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 21 Mar 2002, David Johansen wrote: > > I was

[PHP] PHP-CGI and script files not found

2002-03-21 Thread Tom Keyser
Can someone confirm the following that was sent to me by my hosting provider. If have php script file that can not be found throwing 500 errors instead of 404 errors. ~~ Because PHP-CGI is a little strange, you (as far as I know) apparently can't set up any so

RE: [PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Martin Towell
Extending more that once, as you did in your example, is perfectly okay. It's just when you try to do it in one go. ie. you can't do multi-extends, but you can extend more than once (if you get what I mean) HTH Martin -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Se

RE: [PHP] How to adress pictures stored outside of the http server root?

2002-03-21 Thread Andrew Chase
If you just want to prevent users from getting a listing of your image directory, you can do a couple of things: 1) Put an empty 'index.html' (or whatever the server default is) in the image directory, so anyone trying to browse the directory will get a blank page. or 2) (Assuming your server i

[PHP] PHP OOP: Multiple Class Extends

2002-03-21 Thread Nathan Cassano
Attention PHP guru's, I have a question about PHP and OOP. My problem is that I want multiple inheritance functionality in PHP but it does not support this (see http://www.zend.com/manual/keyword.extends.php). My question is can PHP classes be extended multiple times to simulate multiple

Re: [PHP] echo and Session Variables

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, David Johansen wrote: > I was just wondering if there's a way to use echo with session variables. > When I try to do this: > > if (isset($_SESSION['x_Email'])) > echo "value=\"$_SESSION['x_Email']\""; > ?> The issue is with the syntax you're using to refer to arrays within

[PHP] echo and Session Variables

2002-03-21 Thread David Johansen
I was just wondering if there's a way to use echo with session variables. When I try to do this: it gives me this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/storings/public_html/uslogin.php on line 134 Am I doing something wrong or is ther

Re: [PHP] Storing variables

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, Erik Price wrote: > On Thursday, March 21, 2002, at 03:39 PM, Miguel Cruz wrote: >> 3. Store them in a database and just pass the index from page to page >> using a hidden variable. > > Is this a frequently-used option? A while back I thought of using a > scheme like this,

RE: [PHP] How to clear variables?

2002-03-21 Thread C. Cormier - Ormetal Inc.
Thanks Martin. I will try that. Claude Cormier Ormetal Inc. http://www.goldcurrencies.ca http://www.ormetal.com = Claude Cormier Public Key http://www.ormetal.com/keys/ClaudeCormier.asc = -- PHP General Mai

Re: [PHP] Temporary MySQL Tables

2002-03-21 Thread ruler
Perhaps you can check the data of the fields before it goes to the next form. For example, if (ereg("^.*[^a-zA-Z0-9\-].*$", $Username)) { die("Your username contains invalid characters. Only alphanumeric characters and dashes are allowed."); } Hope that helps. - Original Message - From:

RE: [PHP] How to clear variables?

2002-03-21 Thread Martin Towell
I think he means using header() - look in the manual, there's a snippet of code you can copy-and-paste that does cache control Martin -Original Message- From: C. Cormier - Ormetal Inc. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:06 AM To: Rasmus Lerdorf; [EMAIL PROTECTED] S

Re: [PHP] How to clear variables?

2002-03-21 Thread C. Cormier - Ormetal Inc.
On 21 Mar 2002, at 8:33, Rasmus Lerdorf wrote: > Well, you could prevent the user from cacheing the page by sending the > appropriate cache control headers. Then when they click back it would > say that the page is expired. Hello Rasmus, I tried what you suggest with: session_cache_limiter('n

Re: [PHP] Temporary MySQL Tables

2002-03-21 Thread Geoff Hankerson
Couldn't you just use substr_replace and the html endcoding for a double quote (") ? "; ?> - Original Message - From: "Georgie Casey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 2:09 PM Subject: [PHP] Temporary MySQL Tables > Hi, >

Re: [PHP] Temporary MySQL Tables

2002-03-21 Thread John S. Huggins
On Thu, 21 Mar 2002, Georgie Casey wrote: >-Hi, >- >-membership with the username and timestamp in the URL. The users clicks it, >-and I run a SQL command that copies the row from "tempmembers" into the >-"members" table. I assume you are building up all your fields as you move through the site.

Re: [PHP] Storing variables

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 03:39 PM, Miguel Cruz wrote: > 3. Store them in a database and just pass the index from page to page > using a hidden variable. Is this a frequently-used option? A while back I thought of using a scheme like this, but then thought to myself that it would be a

[PHP] Temporary MySQL Tables

2002-03-21 Thread Georgie Casey
Hi, On my site now, there's a lengthy register process where the user has to fill in 5 forms, one after the another. I get the PHP script to echo the values from the previous into the next form by using "; ?> for example. Then I keep carrying the information over to each extra form until the user

[PHP] RE: [PHP-WIN] issue with PHP_XSLT?

2002-03-21 Thread Mike Eynon
Not sure if this will help you or not, but here are a few words of wisdom that helped me get past problems in the Sablotron extension. If you wish to use files that are not in your php root, you have to add the string: "file://" before each of your filenames. This will keep Sablotron happy in bo

Re: [PHP] $HTTP_COOKIE_VARS

2002-03-21 Thread Thalis A. Kalfigopoulos
I think you should have register_globals/track_vars set to TRUE in your php.ini cheers, thalis On Thu, 21 Mar 2002, Max Mouse wrote: > I've tried using $HTTP_COOKIE_VARS to get information about the cookie has > been passed to the current script but I always get a cookie size of 1 > containing

[PHP] $HTTP_COOKIE_VARS

2002-03-21 Thread Max Mouse
I've tried using $HTTP_COOKIE_VARS to get information about the cookie has been passed to the current script but I always get a cookie size of 1 containing no information. I have also tried using $_COOKIE but with no success. I'm running apache1.2.23 and php 4.1.2. Suggestions? Max -- PHP Gene

Re: [PHP] Deleting File

2002-03-21 Thread Mike Maltese
Make sure the owner of the server process has delete permissions for the directory in question. - Original Message - From: "pong-TC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 11:25 AM Subject: [PHP] Deleting File > Hello All > > I am trying to build a te

Re: [PHP] Guestbook previous 10/next 10

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, James Taylor wrote: > I have this sort of guest book that only will display 10 entries on the > page at a time, after that you have the option of previous 10, and if > you're not on the front page you also have next 10. I'm getting the ID > of the VERY LAST POST listed on the

[PHP] Re: [PHP-WIN] issue with PHP_XSLT?

2002-03-21 Thread Phillip Fox
On Thu, 21 Mar 2002, Ben wrote: > why does php_xslt.dll expect the files to be in PHP root? how can i change > this to be able to pick up files from the document root itself? > It sounds to me like you have a diffirent problem than the one that I had on my server, but I think that the same so

[PHP] Guestbook previous 10/next 10

2002-03-21 Thread James Taylor
I have this sort of guest book that only will display 10 entries on the page at a time, after that you have the option of previous 10, and if you're not on the front page you also have next 10. I'm getting the ID of the VERY LAST POST listed on the page. So it's doing something like while ($m

Re: [PHP] Storing variables

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, Morten Nielsen wrote: > I got a page, which is reloaded 3 times. When the user first sees the page > he has to fill in some information. On the second page he press a button to > confirm. I would then like for the third page to display what he has entered > on the first page.

[PHP] Storing variables

2002-03-21 Thread Morten Nielsen
Hi, I got a page, which is reloaded 3 times. When the user first sees the page he has to fill in some information. On the second page he press a button to confirm. I would then like for the third page to display what he has entered on the first page. What is the best way to store the variables fr

Re: [PHP] Newbie help

2002-03-21 Thread cal
Tony, I'm doing a lot of PHP<->VFP<->MySql work right now. I'm developing processes that move data out of SBT accounting and into a MySQL database for use on the web. I'm also working on processes that update the FoxPro data directly. The best I can tell you is that the EASIEST thing to do is

[PHP] Newbie help

2002-03-21 Thread Tony Alanis
Hello all, I'm looking for resources for PHP/FoxPro. I have a limited understanding of php and mysql, however, the company I work for uses a FoxPro backend database. I want to be able to pull information from this database to be used on our intranet site I am currently developing. If anyone can

RE: [PHP] PHP/mySQL hosting

2002-03-21 Thread Kevin Stone
Pickings are slim but you can have a look here: http://www.alt-php-faq.org/links.html See "hosting". Good luck. -Kevin -Original Message- From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:17 PM To: PHP Subject: [PHP] PHP/mySQL hosting Does anyone ha

[PHP] Deleting File

2002-03-21 Thread pong-TC
Hello All I am trying to build a text file, and delete it by using unlink function, but it always refuse to do so because of permission denied. It gives me an error as follows: Warning: Unlink failed (Permission denied) in d:\inetpub\wwwroot\cgi-bin\myfile.php on line 45 Actually, the file was

Re: [PHP] Append to the beginning of a file...

2002-03-21 Thread Mauricio Sthandier
Well, here's a lousy solution to a lousy problem : (please don't crucify my code since I know it's not depurated) --- $archivo = fopen("./registrados.txt", "a+"); if ($archivo) { $posicion = fseek($archivo, -512, SE

[PHP] PHP/mySQL hosting

2002-03-21 Thread Daniel Negron/KBE
Does anyone have a good site for free mySQL and PHP hosting ? **DAN** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Execute AppleScript

2002-03-21 Thread Henrik Johansson
Is this possible from php? Regards, Henrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Append to the beginning of a file...

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, Mauricio Sthandier wrote: > I could append but then I need to read the first 8 chars of the last line I > appended... neither something I know how to do. Seek to the end of the file minus typical record length, read, look for the penultimate end-of-record delimiter (\n, prob

Re: [PHP] cannot see LDAP userPassword and createTimestamp attr

2002-03-21 Thread Stig Venaas
On Tue, Feb 26, 2002 at 07:42:15PM -0800, tim tom wrote: > why can't i see the createTimestamp and userPassword bcos i did an *authenticated >bind* ! > the script: This depends on the LDAP server. createTimestamp is an operational attribute and is not returned by default. You can specify explici

Re: [PHP] Append to the beginning of a file...

2002-03-21 Thread Mauricio Sthandier
I guess I should do that. I need the plain file because is just a log of users registering in a Club, in a csv format. Using a database is just too much and not intended for this page... even when I would prefer using mysql. At least, I can handle that rather than the fopen and fwrite !. I could a

[PHP] Control Panel

2002-03-21 Thread karthikeyan
Hi Everybody, Is there any control panel like Webmin in PHP. Regards, karthikeyan.

[PHP] ereg_replace Help

2002-03-21 Thread lists
Hi all, I have a large file that I am trying to parse. I have a many lines that look like this \\text1 I need an expression that will change \\text1 to text1= so if I have something like this \\text1 asdfkjaslkfj asdlfkjasljkf asdlkfjasldfkj asldkfjalskfj \\text2 erweiurwoeir werqwer qw

[PHP] Browser Detection without use of browsecap.ini file

2002-03-21 Thread R'twick Niceorgaw
Hi all, is there any way, I can detect the browser without using browsecap.ini file ? I'm simply interested to know if the user using netscape 4.x or earlier. I tried get_browser() function but it returns blank! after checking my server's configuration i found browsecap file setting in uninitial

Re: [PHP] $HTTP_POST_VARS

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, Joshua E Minnie wrote: > I need to access a variable on a form that allows multiples. I have to use > $HTTP_POST_VARS so I need to know how to display the information obtained > from the form. This is what I am using right now: > >reset($HTTP_POST_VARS["interest"]); >

AW: [PHP] Apache

2002-03-21 Thread Andres Petralli
Here's the solution, quick and dirty: You must have "Options Indexes" somewhere in your Apache conf files. Remove the Expression "Indexes" from there and no more lists should be generated. Maybe it's also "Options ALL", then just limit the options to what you need. Greets, Andres > -Ursprü

Re: [PHP] Seek server hardware recommendation

2002-03-21 Thread Miles Thompson
You're right Michael, but those are getting hard to find. M. At 11:13 AM 3/21/2002 -0600, Miguel Cruz wrote: >On Thu, 21 Mar 2002, Aras Kucinskas wrote: > > LINUX > > Apache > > PHP > > mySQL > > > > Server purpose: > > One site (PHP+mySQL ) hosting, max 1000 visitors per day. > > > > What is re

RE: [PHP] $HTTP_POST_VARS

2002-03-21 Thread Rick Emery
$interest = $HTTP_POST_VARS['interest']; or (if using PHP 4.1) $interest = $_POST['interest']; then reference $interest[0], $interest[1], $interest[2],... -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:54 AM To: [EMAIL PROTECTED] S

[PHP] $HTTP_POST_VARS

2002-03-21 Thread Joshua E Minnie
I need to access a variable on a form that allows multiples. I have to use $HTTP_POST_VARS so I need to know how to display the information obtained from the form. This is what I am using right now: Both $HTTP_POST_VARS["interest"] and $HTTP_POST_VARS["interest[]"] throw errors. Any suggesti

Re: [PHP] Apache

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 01:39, Erik Price wrote: > On Thursday, March 21, 2002, at 12:22 PM, Jason Wong wrote: > > On Friday 22 March 2002 00:54, Erik Price wrote: > >> Isn't it just a matter of setting the permissions? apache can't have > >> read access to this directory, that's all. > > > > No

Re: [PHP] Append to the beginning of a file...

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 00:40, Mauricio Sthandier wrote: > I already seen it... I used "r+" and "aw". > I saw and example in www.php.net, in the fopen function description, but it > is incomplete... > this is taking me hours !!!. > Well, if I can preappend... how can I read, for example, the first

Re: [PHP] Apache

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 12:22 PM, Jason Wong wrote: > On Friday 22 March 2002 00:54, Erik Price wrote: >> Isn't it just a matter of setting the permissions? apache can't have >> read access to this directory, that's all. > > > No, he doesn't want apache to *list* files in that director

Re: [PHP] Session Varaible Problem

2002-03-21 Thread Erik Price
Have you made sure that the correct values are even being loaded into the session variable containers? IOW, try echo $id; echo $first_name; to make sure that there is actually any value in those variables. Erik On Thursday, March 21, 2002, at 12:22 PM, Randy Phillips wrote: > Hi, > > I

[PHP] Re: Function Not Accepting Variable Values From a Form

2002-03-21 Thread Dr. Shim
function verify() { echo "Verify called. Values are...\n Title:" . $_POST['title'] . "\n# This works! Author: $author\n Lead Actors: $actors\n Poster: $poster\n Summ.: $summery\n\n Rev.: $review\n\n"; } -- PHP General Mailing List (http://

Re: [PHP] Apache

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 01:38, Mika Tuupola wrote: > On Fri, 22 Mar 2002, Jason Wong wrote: > > No, he doesn't want apache to *list* files in that directory but still to > > be able to serve files *from* that directory. > > Just add an empty index file? But that's a kludge. Anyway someone h

Re: [PHP] Apache

2002-03-21 Thread Rasmus Lerdorf
So either turn off the DirectoryIndex or put an index.html in the dir. On Fri, 22 Mar 2002, Jason Wong wrote: > On Friday 22 March 2002 00:54, Erik Price wrote: > > Isn't it just a matter of setting the permissions? apache can't have > > read access to this directory, that's all. > > > No, he d

Re: [PHP] Session Varaible Problem

2002-03-21 Thread Rasmus Lerdorf
Are you calling session_start() on the subsequent pages you want to be part of the session? On Thu, 21 Mar 2002, Randy Phillips wrote: > Hi, > > I have tried every example of creating a session variable I could find on > php.net and have had the same results with all of them. The session > varia

Re: [PHP] Error compiling PHP with native MySql

2002-03-21 Thread Jason Wong
On Friday 22 March 2002 00:29, Richard Fox wrote: > When I try to configure PHP 4.1.1 I get the following error: > configure: error: Cannot find header files under /usr/include/mysql > > The command line I'm using to configure: > > ./configure --with-mysql=/usr/include/mysql ./configure --wi

Re: [PHP] How to adress pictures stored outside of the http serverroot?

2002-03-21 Thread Miguel Cruz
On Thu, 21 Mar 2002, andy wrote: > "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb: >> The way to do this is to write a little PHP wrapper script that you >> stick in your document_root that does a readfile() on the file stored >> outside of the document_root. > > What would you suggest to prevent pe

Re: [PHP] Apache

2002-03-21 Thread Mika Tuupola
On Fri, 22 Mar 2002, Jason Wong wrote: > No, he doesn't want apache to *list* files in that directory but still to be > able to serve files *from* that directory. Just add an empty index file? -- Mika Tuupola http://www.appelsiini.net/~tuupola/ -- PHP General M

  1   2   >