[PHP] Cannot add header information

2002-04-29 Thread Bo Pritchard
I know without the accompanying code there's no way to help me...But without having to get real specific what does the following message tell me is wrong? Thanks Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] PHP ignoring dotfiles, permissions

2002-04-29 Thread Frank
You know that dot files are hidden files ? ... Yes, but I think this only is in contexts where directories are scanned by some application respecting this method of hiding - and that they otherwise are normal files when addressed explicitly. However, there seems to be something else about

[PHP] Almost fixed, just one last Problem with GD installation, pleasehelp!

2002-04-29 Thread Peter Revill
=== CC ALL REPLIES TO [EMAIL PROTECTED] == Ok, almost got it, installed the header files, compiles fine, cept GD produces the following error: gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include

[PHP] Forms

2002-04-29 Thread Arpan De
I created a simple html form with only one textbox a submit button as follows: form method=post action=form1.php input type=text name=fname input type=submit value=SUBMIT /form This is form1.php html body Hi ?php echo $fname; ? /body /html But I don't know why I am not getting the output. I

[PHP] PHP Security

2002-04-29 Thread Jay Fitzgerald
Can someone point me in the right direction in determining just how secure PHP really is? Should you have any questions, comments or concerns, feel free to call me at 318-338-2034. Thank you for your time, Jay Fitzgerald, Design Director - CSBW-A, CPW-A, CWD-A, CEMS-A

[PHP] MS SQL problem

2002-04-29 Thread Joshua E Minnie
I am relatively new to the SQL aspect of PHP. I have a small background in SQL programming, so I can get my way around that part. The problem I am having is that a query of mine is throwing back zero (0) rows of result. I am using some simple SQL syntax to check for the existance of a user in

RE: [PHP] lookin for a Menuing System...

2002-04-29 Thread Mikusch, Rita
Problem with Javascript is you have to support an IE version, a Netscape version and a Netscape 6 version. Then if you need to support users with dinosaurs, you'll have to have an IE 4 and a Netscape 3 version. Yikes. It just requires to much programming time for me to do too much with

RE: [PHP] Cannot add header information

2002-04-29 Thread Cal Evans
It means that something has already output to the outbuffer in unbuffered mode. Therefore, whatever header operation you are trying to do (start a session? redirect?) cannot be done. IMHO, the biggest culprit of this is blank lines in your include files. =C= * * Cal Evans * Journeyman

Re: [PHP] Cannot add header information

2002-04-29 Thread Steve Cayford
On Monday, April 29, 2002, at 12:02 PM, Bo Pritchard wrote: I know without the accompanying code there's no way to help me...But without having to get real specific what does the following message tell me is wrong? Thanks Warning: Cannot add header information - headers already sent

Re: [PHP] Forms

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 01:25, Arpan De wrote: But I don't know why I am not getting the output. I am just getting the following error: Notice: Undefined variable: fame in d:\inetpub\wwwroot\php\Form1.php on line 3 In order to pass the Form values to a PHP page, I went through 3-4

Re: [PHP] Forms

2002-04-29 Thread Arpan De
Hi Jason, Thank you for your prompt response. Yeah, you are right; that was were the problem was. I incorporated your code it got executed perfectly. Thank you once again, Regards, Arpan Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tuesday 30 April 2002 01:25,

Re: [PHP] PHP Security

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Jay Fitzgerald wrote: Can someone point me in the right direction in determining just how secure PHP really is? What are you actually trying to find out? As far as actual security problems in PHP, where the interpreter behaves contrary to documentation when provided with

[PHP] In Addition to [PHP] PHP Security

2002-04-29 Thread Jan Peuker
Sorry for answering with a new question. But, what's if, say, the PHP-Parser crashes (or a filename is changed) and Apache returns the source. How is it simply possible to store passwords somewhere a httpd-users won't see it? (e.g. in the includes-Folder, am I right?) And are session-variables

[PHP] PHP 4.2 - Win32 - command line PHP buffering output?

2002-04-29 Thread Garth Dahlstrom
Hi all, I'm trying to make the script below run, it is supposed to print a message and then wait for user input and then print another message and wait again. Instead, what it is doing is waiting for all the user input to be entered before printing anything, and once entered printing all

Re: [PHP] PHP ignoring dotfiles, permissions

2002-04-29 Thread 1LT John W. Holmes
what if you do this? require './.mydotfile.php'; ---John Holmes... - Original Message - From: Frank [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 1:59 PM Subject: Re: [PHP] PHP ignoring dotfiles, permissions You know that dot files are hidden files ? ...

[PHP] Re: In Addition to [PHP] PHP Security

2002-04-29 Thread Julio Nobrega Trabalhando
1) Yes, store this kind of information outside of your web-root. But I am not sure if Apache will return the source even if php's parser crashes. If you are using the module version of php, Apache should be able to re-start itself when such error is found. I believe you can setup Apache (and

RE: [PHP] In Addition to [PHP] PHP Security

2002-04-29 Thread Cal Evans
While I've never actually had that happen (If Apache crashes, NOTHING goes out the socket...not the source to the page) in short, there is very little that you can do to protect yourself against this. For PHP to get to the file, it has to be readable but the user that Apache is running under.

[PHP] Deleting from a SQL db

2002-04-29 Thread Joshua E Minnie
Can anyone help me understand why this code is not deleting the row from the MS SQL db like it should. ? ... $query = DELETE FROM users WHERE user = '$user'; $result = @ mssql_query($query) or die(Unable to delete user); if($result = 0) echo User successfully deleted.br\n; ... ? I am

[PHP] PHP Apache

2002-04-29 Thread J. Anderson Scarbrough
This may be slightly off topic so please forgive me, but... I am trying to get my apache server up and running with PHP and basic authentication. Everything appears to be okay except the authentication portion. When I try to access the directory requiring authentication I reciever a 500

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
Replace the die(...) with die(mysql_error()) and the message should tell you what's wrong. Stuart -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 20:11 To: [EMAIL PROTECTED] Subject: [PHP] Deleting from a SQL db Can anyone help me understand why

Re: [PHP] Deleting from a SQL db

2002-04-29 Thread Joshua E Minnie
Stuart Dallas [EMAIL PROTECTED] wrote: Replace the die(...) with die(mysql_error()) and the message should tell you what's wrong. It never gets to the die(...) statement. The script is returning a positive integer from the mssql_query() function. I am not seeing it ever throw an error. It

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
Print the SQL statement $query just before you call mssql_query() - make sure the SQL going in is what you think it is. Also, check mssql_affected_rows() after the call to make sure something was modified. Stuart -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Deleting from a SQL db

2002-04-29 Thread Stuart Dallas
mssql_affected_rows() Sorry, that should be mssql_rows_affected(). Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting from a SQL db

2002-04-29 Thread Joshua E Minnie
Stuart Dallas [EMAIL PROTECTED] wrote: Print the SQL statement $query just before you call mssql_query() - make sure the SQL going in is what you think it is. Also, check mssql_affected_rows() after the call to make sure something was modified. It is writing the proper $query. The reason for

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Rodolfo Gonzalez
On Mon, 29 Apr 2002, Stefen Lars wrote: However, I am interested in learning how to connect directly to the MySQL port, as in a second step of the project I am working on, various data from various servers will be handled. The 'dump to a file' approach, while fine in my little example

[PHP] ODBC MSSQL...

2002-04-29 Thread Jimmy
Anyone have any experience resetting the result cursor when using ODBC to access MSSQL (2000)? TIA -josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bzip2 file downloads

2002-04-29 Thread Peter Strutt
Help, When I try to download the php_manual_en.html.bz2 from either IE5 or Netsacape it displays it as a web page on the screen. I tried saving it as a file and then unzipping it, but bzip2 says it isn't a bzip file. How can I down;load it as a binary which bzip2 will accept ?? Thanks ...

[PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Austin W. Marshall
Is there something about the php 4.2.0 windows binary (installer version) that renders the mysql_fetch_* functions useless? I installed php 4.2.0 on windows 2000 along with Apache 1.3.24 and MySQL 3.23.49, and in a script i have a simple SELECT statement. The content is in the database, the

Re: [PHP] return multiple value from function

2002-04-29 Thread sanjay
Thnaks. It solved my problem. sanjay - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 7:50 PM Subject: Re: [PHP] return multiple value from function On Monday 29 April 2002 22:11, sanjay wrote: Hi List, I am new to php

[PHP] Looking for an easier regex check...

2002-04-29 Thread Joshua E Minnie
Does anybody know of a good way to make sure that a string contains ONLY certain characters. I tried using ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse errors. Besides that I only want the characters A-Za-z0-9_ in $string. Is there is simpler way to ensure this rather than

Re: [PHP] PHP ignoring dotfiles, permissions

2002-04-29 Thread Frank
At 14:55 29/4/2002 -0400, J. Holmes wrote: what if you do this? require './.mydotfile.php'; I tried that! No effect. But... Suddenly it worked! I now think I to some extent might have been fooled by my desktop PC caching information where it shouldn't. I have never seen it before (have set

[PHP] Looking for an easier regex check...

2002-04-29 Thread Joshua E Minnie
Does anybody know of a good way to make sure that a string contains ONLY certain characters. I tried using ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse errors. Besides that I only want the characters A-Za-z0-9_ in $string. Is there is simpler way to ensure this rather than

[PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Herbert Mraz
Strange problem here (win2k - iis 5.0 - php 4.2.0): whenever I send formdata by POST-method, the last character gets stripped...everything's fine when I use GET! I tried various different (HTML-) input types, same everywhere... register_globals is off, which shouldn't make a difference?

[PHP] Streaming RealPlayer Content From an Access Database (not sending correct headers?)

2002-04-29 Thread Dr. Shim
I've almost got this working, expect that I'm not sending the correct Content-type header to the RealPlayer player. I've followed a tutorial from the O'Reilly network ( http://www.onlamp.com/pub/a/php/2000/09/15/php_mysql.html?page=1 ), and modified it for an Access database, and RealPlayer

Re: [PHP] Looking for an easier regex check...

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Joshua E Minnie wrote: Does anybody know of a good way to make sure that a string contains ONLY certain characters. I tried using ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse errors. I'm surprised you get a parse error. I'd expect you would get a

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread 1LT John W. Holmes
Did you turn on Display_errors in php.ini? ---John Holmes... - Original Message - From: Austin W. Marshall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 3:52 PM Subject: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions Is there something about the

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Herbert Mraz wrote: Strange problem here (win2k - iis 5.0 - php 4.2.0): whenever I send formdata by POST-method, the last character gets stripped...everything's fine when I use GET! I tried various different (HTML-) input types, same everywhere... Can you show a

[PHP] Database Duplication

2002-04-29 Thread Liam Gibbs
I'm not sure if this is possible in PHP (maybe it's even an SQL problem, I dunno), but is there a command that will duplicate a database? I need to make a 'mirror' of it that I can dispose of after my user logs out that won't change the source database at all.

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread 1LT John W. Holmes
example code? - Original Message - From: Herbert Mraz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 4:00 PM Subject: [PHP] $_POST[] - last character cut away!! Strange problem here (win2k - iis 5.0 - php 4.2.0): whenever I send formdata by POST-method, the

Re: [PHP] Database Duplication

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Liam Gibbs wrote: I'm not sure if this is possible in PHP (maybe it's even an SQL problem, I dunno), but is there a command that will duplicate a database? I need to make a 'mirror' of it that I can dispose of after my user logs out that won't change the source database

[PHP] Emails sent out twice

2002-04-29 Thread LeTortorec, Jean-Louis
Hello all: I have a script that looks like: ... $name=Project #1; ... $title=NEW PROJECT: .$name; $a=mail([EMAIL PROTECTED], [EMAIL PROTECTED],$title,$body, From:[EMAIL PROTECTED]); ... When I execute this code (there is no loop anywhere), ALL the recipients receive 2 emails: - the first

[PHP] date comparison

2002-04-29 Thread Richard Fox
I have a date string, let's call it 'date a' in the format 2020-10-16 which I want to compare to the UNIX_TIMESTAMP overflow limit (2038-01-18). Obviously I can't convert date 'a' to a timestamp because it may be too large. How can I make this comparision without converting it to a timestamp?

Re: [PHP] Looking for an easier regex check...

2002-04-29 Thread Joshua E Minnie
Worked great only you forgot to escape the carat character. Thanks for the help. Josh Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 29 Apr 2002, Joshua E Minnie wrote: Does anybody know of a good way to make sure that a string contains

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Austin Marshall
1lt John W. Holmes wrote: Did you turn on Display_errors in php.ini? ---John Holmes... Of Course, i think i even had it at the highest alert level. No errors whatsoever, ... or die(mysql_error()) yields nothing either. - Original Message - From: Austin W. Marshall [EMAIL

Re: [PHP] date comparison

2002-04-29 Thread Richard Baskett
You could explode it using the '-' character.. And then compare the first element to 2038.. If it's equal to our greater than, then you can compare the month, and so forth.. Rick The most beautiful thing we can experience is the mysterious. It is the source of all true art and all science. He

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Joshua E Minnie
Do you have some sample code that we could look at? -- Joshua E Minnie/CIO [EMAIL PROTECTED] Phone: 616.276.9690 Fax: 616.342.8750 Nextel: 616.862.2847 Don't work for recognition, but always do work worthy of recognition. 1lt John W. Holmes [EMAIL PROTECTED] wrote in message

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Jeff Lewis
Austin, I am using 4.2 on a W2K machine at work and have had no problems with the mysql_fetch_* functions. Only thing I had to get used to was the new way to handle globals. Jeff - Original Message - From: Austin W. Marshall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread 1LT John W. Holmes
There's a difference between error_reporting and display_errors. Also, are you _really_ sure your query is returning anything? You may _think_ it is, but if mysql_fetch_array doesn't return anything, then it means your result set is empty. 9 times out of 10 this is going to turn out to be

[PHP] More reg-ex probs

2002-04-29 Thread John Fishworld
I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones without so that I can add a server path ! but as usual I' m having problems with the correct regex At the moment I've

[PHP] create textfile if not existing?

2002-04-29 Thread Hawk
lets say I have 30 lines of text and I want to store it in a folder called txt with the filename $name.txt and, if $name.txt exists, create a $name1.txt or similiar? Håkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] build array dinamicaly

2002-04-29 Thread Richard Emery
$query = SELECT name,address FROM tbl; $result = mysql_query($query); while($myarray[] = mysql_fetch_array($result); - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, April 29, 2002 9:20 AM Subject: [PHP] build array dinamicaly Hi list,

Re: [PHP] create textfile if not existing?

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Hawk wrote: lets say I have 30 lines of text and I want to store it in a folder called txt with the filename $name.txt and, if $name.txt exists, create a $name1.txt or similiar? http://php.net/fopen miguel -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread Henrik Hansen
[EMAIL PROTECTED] (Joshua E Minnie) wrote: Does anybody know of a good way to make sure that a string contains ONLY certain characters. I tried using ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse errors. Besides that I only want the characters A-Za-z0-9_ in $string.

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Austin W. Marshall
1LT John W. Holmes wrote: There's a difference between error_reporting and display_errors. Also, are you _really_ sure your query is returning anything? You may _think_ it is, but if mysql_fetch_array doesn't return anything, then it means your result set is empty. 9 times out of 10 this is

Fw: [PHP] create textfile if not existing?

2002-04-29 Thread Richard Emery
Did you even try to develop this application? It's to easy. Do so. If you have problems, then post the code and we'll help you. - Original Message - From: Hawk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 3:49 PM Subject: [PHP] create textfile if not

Re: [PHP] create textfile if not existing?

2002-04-29 Thread Eric Coleman
Hello, Hawk, You might wanna checkout the w+ modifier. === At 2002-04-29, 22:49:00 you wrote: === lets say I have 30 lines of text and I want to store it in a folder called txt with the filename $name.txt and, if $name.txt exists, create a $name1.txt or similiar? Håkan -- PHP

[PHP] socket support question

2002-04-29 Thread Lee P Reilly
Hi, I understand that PHP has experimental extension for sockets. I am currently running both versions 4 and 4.1.2 on Windows machines, but I have read that in order to use the socket functions, the --enable-sockets option must be enabled at compile time. My problem is the of the undefined

Re: [PHP] create textfile if not existing?

2002-04-29 Thread John Fishworld
This works but the w means that it writes over whats already in the file (look at the manual about fopen for more details) $new_file = txt/whatever.txt; $fh = fopen($new_file , w); // write the changed new file fputs ($fh, $new_code); // now close the file fclose($fh); Regards John lets say

Re: [PHP] Database Duplication

2002-04-29 Thread Richard Emery
Every time a user logs in, you want to duplicate the database Must be a very small database...not one with several hundred-thousand records. It's a SQL question. You didn't specify what database you are using, so nobody can provide you with specifics. - Original Message - From:

[PHP] Insert in database

2002-04-29 Thread Arpan De
I have a simple HTML Form where a user has to enter his first last name which will be inserted in a SQL Server database table. The PHP code which does the needful is as follows (I have created a DSN named PHPInsert successfully as well): ?php If(($_POST['fname']==) || ($_POST['lname']==)

[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joshua E Minnie) wrote: Does anybody know of a good way to make sure that a string contains ONLY certain characters. I tried using ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse errors. Besides that I only want the

[PHP] windows development - linux production

2002-04-29 Thread Lee P Reilly
Hi, Just a quick question. I'm developing on a Windows machine right now, and will later move it onto Linux. Should I expect to run into major difficulty at all? I anticipate a few problems - mainly altering the file system interaction, maybe even database connections. I don't know if anybody

Re: [PHP] $_POST[] - last character cut away!!

2002-04-29 Thread Herbert Mraz
HTML - body contains: form method=post action=test.php input type=text name=foo input type=submit /form test.php contains: ? echo $_POST['foo']; ? when I type in: 'example' test.php echoes : 'exampl' string-length doesn't matter... On Mon, 29 Apr 2002, Herbert

Re: [PHP] Insert in database

2002-04-29 Thread Richard Baskett
Well you don't have an curly braces anywhere in your code.. Try this: ?php If (($_POST['fname']==) || ($_POST['lname']==) { echo(Please Enter Information In All The Fields !!!); } Else { $connectionString=odbc_connect(PHPInsert,sa,); $query=INSERT INTO PHPUsers(FName,LName) VALUES

Re: [PHP] Insert in database

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Richard Baskett wrote: Well you don't have an curly braces anywhere in your code.. Try this: ?php If (($_POST['fname']==) || ($_POST['lname']==) { echo(Please Enter Information In All The Fields !!!); } Else {

[PHP] Re: Php and XML

2002-04-29 Thread Manuel Lemos
Hello, Philip Yeo wrote: Hi there, I would like to create an XML parser using Php. Any good references for doing this?? You may want to try this class: http://www.phpclasses.org/browse.html/package/4.html Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Insert in database

2002-04-29 Thread Arpan De
Hi Richard, Thank you very much for your prompt response. I incorporated the changes you have suggested in my code but I am still getting exactly the same error !!! What do I do now? I even commented the 3 lines related to database but when I executed the code again, I got the same error but

Re: [PHP] parsing mail files

2002-04-29 Thread David Freeman
On 29 Apr 2002 at 8:24, Michael George wrote: I am looking for some sample code that will parse a file in Unix mbox format. How much control do you have over the system the mbox lives on? You might find it easier to do at least some of the pre-processing as a shell script before feeding it

Re: [PHP] MS SQL problem

2002-04-29 Thread David Freeman
On 29 Apr 2002 at 14:14, Joshua E Minnie wrote: if(user_exists($dbname,users,user,$user) 0) { echo the variables to make sure they are what they should be. function user_exists($dbname, $table, $field, $value) { echo the variables to make sure they are what they should be. $query =

Re: [PHP] Cannot add header information

2002-04-29 Thread David Freeman
On 29 Apr 2002 at 13:02, Bo Pritchard wrote: G'day Bo I know without the accompanying code there's no way to help me...But without having to get real specific what does the following message tell me is wrong? Warning: Cannot add header information - headers already sent by (output started

Re: [PHP] windows development - linux production

2002-04-29 Thread Steve Buehler
That question can be difficult to answer. It all depends on what you are developing. I presume that since this is a PHP list, that you are developing PHP pages. On my WinXP laptop, I run Apache, MySQL and PHP. When I have the program finished, I upload it to the server and have had no

[PHP] Question for you guys on best tools for a job

2002-04-29 Thread Michael Champagne
I'm not even sure this is possible without doing a client side java applet of some sort. We are considering porting a standard client/server application to the web which updates itself dynamically in real time based on values in a database. For instance, a field on the screen will change in

RE: [PHP] create textfile if not existing?

2002-04-29 Thread SHEETS,JASON (Non-HP-Boise,ex1)
If I understand you properly this code will do what you want ?php // data to write to file $contents = 'your data goes here'; // filename base $filename = 'name'; $startnum = '1'; // get new filename until the filename does not exist while

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Richard Archer
At 11:48 AM -0400 29/4/02, SHEETS,JASON (Non-HP-Boise,ex1) wrote: SERVERA (master) /usr/local/sbin/stunnel -f -P/tmp/ -c -d 3308 -r SERVERA:3307 Shouldn't this end with -r SERVERB:3307 i.e. you listen on port local:3308 and forward to SERVERB:3307 SERVERB then listens to local:3307 and

RE: [PHP] create textfile if not existing?

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, SHEETS,JASON (Non-HP-Boise,ex1) wrote: // get new filename until the filename does not exist while (is_file($filename)) { $filename .= $startnum; } This will give you file names like file1, file11, file111, etc. Might want to do this instead:

RE: [PHP] create textfile if not existing?

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Miguel Cruz wrote: Might want to do this instead: while (is_file({$filename}{$startnum}.txt) $startnum++; And perhaps toss in an extra closing paren ) miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MSSQL paging with PHP

2002-04-29 Thread Mullin, Reginald
Guys, Has anyone had much success in building a paging script with PHP for the MSSQL database? I've been working on such a script now for three (3) days, but to no avail. Any help you can send my way would be greatly appreciated. Thank you. O From Now 'Till Then, \-Reginald Alex Mullin

Re: [PHP] create textfile if not existing?

2002-04-29 Thread David Freeman
On 29 Apr 2002 at 22:49, Hawk wrote: lets say I have 30 lines of text and I want to store it in a folder called txt with the filename $name.txt and, if $name.txt exists, create a $name1.txt or similiar? What is it that you are trying to achieve? It sounds like you're trying to store

[PHP] Re: PHP Apache

2002-04-29 Thread DrTebi
Hi, first of all it's not a good idea to use your /etc directory for the user files, or to chmod anything to 777 that doesn't really need it. I suggest you try the following: Let's assume the directory you want to password-protect is at /home/apache/htdocs/mydomain.com/secure First you would

Re: [PHP] Question for you guys on best tools for a job

2002-04-29 Thread Danny Shepherd
Hi, Well you could take care of the backend of the system using PHP and feed the output to a flash application, which updates every so often by re-requesting the PHP page (this page is merely returning variables to flash). Of course, if you know java then you'd probably want to take that

[PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Javier
Why don't you use javascript to refresh the page from time to time. Michael Champagne wrote: I'm not even sure this is possible without doing a client side java applet of some sort. We are considering porting a standard client/server application to the web which updates itself dynamically

[PHP] Re: Emails sent out twice

2002-04-29 Thread Javier
What php are you using? Jean-Louis Letortorec wrote: Hello all: I have a script that looks like: ... $name=Project #1; ... $title=NEW PROJECT: .$name; $a=mail([EMAIL PROTECTED], [EMAIL PROTECTED],$title,$body, From:[EMAIL PROTECTED]); ... When I execute this code (there is

[PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Hugh Bothwell
Michael Champagne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not even sure this is possible without doing a client side java applet of some sort. You might be able to munge something using a hidden frame and Javascript polling, but it would be an

Re: [PHP] date comparison

2002-04-29 Thread Justin French
In my experience, it's best to keep everything is unix time stamp format -- soo easy for comparisons, and the function to convert it out to -MM-DD took me 45 seconds :) Justin French on 30/04/02 6:29 AM, Richard Fox ([EMAIL PROTECTED]) wrote: I have a date string, let's call it 'date

Re: [PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Michael Champagne
Too hokey. We're talking about maybe 60 values on the page that will be changing and it should look real time. I think Flash might be a potential solution, I'm just not too familiar with it. Having the page refresh occasionally is out of the question for how many things will be changing on the

Re: [PHP] Insert in database

2002-04-29 Thread Justin French
Just to point out how good the manual is :) php.net/echo echo() is not actually a function (it is a language construct) so you are not required to use parentheses with it. In fact, if you want to pass more than one parameter to echo, you must not enclose the parameters within parentheses. It is

[PHP] Re: PHP is making errors for no apparents reason..?

2002-04-29 Thread Javier
How have you declared name? $zquery = SELECT name from users WHERE handle like '$row[handle]'; $zres = mysql_query($zquery); $zrow = mysql_fetch_array($zres); $user = $zrow[name]; $query = INSERT into husers

Re: [PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Kirk Babb
Michael, Flash is a great way to do this. I have two years in Flash but am new to PHP/MySQL - one of the things you will appreciate is the ease of using actionscript on the flash side to communicate with your PHP script. And I know not everybody will like this part, but you can put all the

[PHP] Re: lookin for a Menuing System...

2002-04-29 Thread Dan
The reason I wanted it in PHP not JavaScript's is because I wouldn't have to worry about it being supported in other browsers... also the loading time is already long enough I don't want people on slow connections to have to wait for ages before they can go anywhere.. When a link on the menu is

Re: [PHP] Re: lookin for a Menuing System...

2002-04-29 Thread Mikhail Avrekh
Check out PHPLIB: http://www.sanisoft.com/phplib/manual/ It has a Menu class, which may not be documented explicitely at this point, but there's info about it in the mail list archives (use search for: in the page linked above), or you can subscribe to the list and ask. On Tue, 30 Apr 2002,

[PHP] Database Based

2002-04-29 Thread Arpan De
I want to insert userid, password the e-mail address entered in a Form by users in a database but only after ensuring that the userid the e-mail address doesn't exist in the database in order to avoid duplicate userids e-mail addresses. This is what I have done: ?php

[PHP] What's wrong????

2002-04-29 Thread Arpan De
What is wrong with the following code? ?php $connection=mssql_connect(SQLServerName,sa,) or die(Couldn't make connection); $db=mssql_select_db(DBName,$connection); $sql=SELECT FName,LName,UserID FROM tblName ORDER BY FName; $sqlResult=mssql_query($sql,$connection);

RE: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread John Holmes
The only problem I can see is that you have a column named 'desc' which is a reserved word. It can cause weird results some times, but seems like it would cause an error Don't know what to tell you... ---John Holmes... -Original Message- From: Austin W. Marshall [mailto:[EMAIL

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
You don't have MSSQL support in your PHP installation. Uncomment the line in PHP.ini that loads the MSSQL .dll Use a phpinfo() file to see what modules are loaded. You're making this hard on yourself...PHP is easy to learn. ---John Holmes... -Original Message- From: Arpan De

Re: [PHP] What's wrong????

2002-04-29 Thread Arpan De
Hi John, Thanks for your prompt reply. I am using PHP 4.2.0 version. I checked the PHP.ini file where it is given the following: ;Windows Extensions ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. ; ;extension=php_bz2.dll ...

RE: [PHP] What's wrong????

2002-04-29 Thread John Holmes
No...remove the semi-colon to uncomment it. Restart your web server. Create a page that has just the following line in it: ?phpinfo();? Save it to a file with a .php extension and call it up through your web server. Examining that page will tell you what modules are loaded. ---John Holmes...

Re: [PHP] What's wrong????

2002-04-29 Thread Arpan De
I removed the semi-colon. restarted my server (IIS 5.0) now when I try to execute the PHP code, a dialog box with 'Warning' as the title pops up saying Unable to load dynamic library './php_mssql.dll'. The specified module could not be found. Even when I executed phpinfo(), the same dialog box

RE: [PHP] What's wrong????

2002-04-29 Thread Jarrad Kabral
It sounds like you only downloaded the small windows installer go here http://www.php.net/downloads.php and get the 4.8mb ZIP package. This has a bunch of commonly used modules come with it and comes with instructions on setting up modules Regards Jarrad -Original Message- From:

Re: [PHP] PHP 4.2.0 on win2k, can't use mysql_fetch_* functions

2002-04-29 Thread Austin W. Marshall
Actually, i just used desc for the sake of demonstration, the actual column name was description. At this point i don't care any more, this was done on a computer for testing purposes and is no longer an issue. I was just curious to know if this is a known bug or if it's just some odd

[PHP] Thumbnails from Binary DB info.

2002-04-29 Thread Shane
Greetings folks. I'm looking for a solution to make thumbnails from my binary files inside my mySQL DB. Can anyone give me some direction for options besides Image Magick? TIA - NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

<    1   2   3   >