[PHP-WIN] fsockopen via MS-Proxy authentification

2002-02-08 Thread Kriegers Horst
Hi all, I wish to fetch an internet web page. Oour internet access is through MS-Proxy server 2.0 with NTLM authentification (domain\user:password). I experience an access probleme. Here you are the result: proxy_srv_01:80 is available HTTP/1.0 407 Proxy Access Denied Server: Microsoft-IIS/3.0 D

RE: [PHP-WIN] SWFBitmap jpg to swf?

2002-02-08 Thread Martin Lindhe
> Why does this: > $img="image.jpg"; > 10 $fp = fopen($img,"rb"); > 11 $i = fread($fp,filesize($img)); > 12 $s = new SWFBitmap($i); > > Produce this: > > Fatal error: Sorry, can't tell what type of file ÿØÿà is in > C:\Inetpub\wwwroot\dawndusk\serlient\test.php on line 12 > > When I print $i;

[PHP-WIN] Building a list of filenames (w2k)

2002-02-08 Thread George Pitcher
Hi all, I want to build a list of filenames from a particular directory. I can't find anything like this in the manual or on the list archive so any pointers would be appreciated. George -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] why doesnt this work?

2002-02-08 Thread chris
i get this message when i try to open this page : PHP Warning: Undefined variable: submit in c:\inetpub\wwwroot\testsite\registrer.php on line 8 form method="post" action="registRer.php"> Fornavn: Etternavn: If you know why it doesnt work please help. -- PHP Windows Mailing List (http

RE: [PHP-WIN] Building a list of filenames (w2k)

2002-02-08 Thread Asendorf, John
I'm sure I stole this code from somewhere else... //Load Directory Into Array $path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/"; $handle=opendir($path); while ($file = readdir($handle)) $retVal[count($retVal)] = $file; //Clean up and reverse sort closedir($handle); rsort($retVal); ech

[PHP-WIN] Re: why doesnt this work?

2002-02-08 Thread Nicole Amashta
Check your PHP.ini file for the line: error_reporting = This is where you set how PHP will report errors and warnings, notices, etc. Use this line in place of what you have already: error_reporting = E_ALL & ~E_NOTICE This will stop the warnings of you not predefining and initializing var

php-windows Digest 8 Feb 2002 14:42:34 -0000 Issue 992

2002-02-08 Thread php-windows-digest-help
php-windows Digest 8 Feb 2002 14:42:34 - Issue 992 Topics (messages 11905 through 11913): SWFBitmap jpg to swf? 11905 by: Josh Seward 11909 by: Martin Lindhe Problems with php4, iis and mssql70 11906 by: Ken Kelly PHP 4.1.1 - MSSQL 8 11907 by: chris fsocko

[PHP-WIN] Re: PHP 4.1.1 - MSSQL 8

2002-02-08 Thread Nicole Amashta
Try this below for getting columns. This is a full EXAMPLE. I usually use a database object that wraps all these functions so that I can use same object to interchange between MSSQL and MySQL. But below is a starter example that you can use to see how it works. ===

[PHP-WIN] FileMaker Pro 5 - Yeah, I know...

2002-02-08 Thread Erik H. Mathy
...it's been asked before. I checked in the list archives but did not find a definitive answer. FileMaker Pro 5 and ODBC. I've setup an ODBC def, opened the FileMaker file (Sample06.fp5) and set the sharing. No problems. To test it (outside of PHP) I opened up an Access database and created a li

Re: [PHP-WIN] Building a list of filenames (w2k)

2002-02-08 Thread Nicole Amashta
YOu should do a: reset($retVal); after doing that rsort($retVal); ## Load Directory Into Array $path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/"; $handle=opendir($path); while ($file = readdir($handle)) $retVal[count($retVal)] = $file; ## Clean up and reverse sort

[PHP-WIN] Re: Building a list of filenames (w2k)

2002-02-08 Thread Nicole Amashta
I suggest checking the php.net site for doing this. You can use their search box to search on particular subjects of PHP. For example, what you want to do involves files and directories. YOu want to read from a directory and list the files. So, on php.net, in the search box, you can type: dir and

[PHP-WIN] Re: Building a list of filenames (w2k)

2002-02-08 Thread Nicole Amashta
Forgive me if I slip up ... this line from the code example below: $result_array =a rray(); There should be no space in the word array(); Should look like this: $result_array = array(); ** sorry about that !! Some other fixes too here's the code again: funct

[PHP-WIN] Re: why doesnt this work?

2002-02-08 Thread LaserJetter
Have you checked the capitalisation? (It seems ok in this bit of code) Try changing $submit to $Sumbit anyway - see if it helps LJ "Chris" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i get this message when i try to open this page : PHP Warning: Undefined

[PHP-WIN] Re: why doesnt this work?

2002-02-08 Thread Nicole Amashta
the variable, submit, he is using in this example is not capitalized. so that wouldn't work in this case. > > "Laserjetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have you checked the capitalisation? (It seems ok in this bit of code) > Try changi

[PHP-WIN] Warning: Undefined variable ... errror

2002-02-08 Thread Nicole Amashta
"Warning: Undefined variable: " If you are getting this error, check your php.ini file for the following section: ;; ; Error handling and logging ; ;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporti

[PHP-WIN] Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
I have an application in which I would like to search MS Word docs with PHP and I am assuming with COM to perform this. The Documents reside on a Linux box(for now). Now I want to be able to search these documents with keywords. Is this possible? Where do I look to do perform this? Will COM r

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
OK, I am not exactly sure of the format of word docs off hand. But if they are an ascii format, you can just read through the file using PHP and use regular expressions to search for the words. Just a suggestion. That's just if it's ascii format. Read the whole file into a string, then search the

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
Nicole, I have no idea if its ASCII formatted or not. I wonder if there is a way to find out? "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK, I am not exactly sure of the format of word docs off hand. But if they > are an ascii format, y

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
I made a test file in word. It's funky, but it still has the actual text in ascii. You should - just an assumption - be able to open the doc with php and read through the file doing a keyword search. Can't hurt to experiment with it. good luck, Nicole Amashta www.aeontrek.com "Todd Williamsen"

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
interesting... cool eh? i will give it a whirl... now I got to figure out the regex function "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I made a test file in word. It's funky, but it still has the actual text in > ascii. You should - j

[PHP-WIN] php.exe 4.1.1 on XP can't include from samba shares?

2002-02-08 Thread Colin Bradley
Hi, I'm having alot of trouble getting php running as a CGI program under IIS / XP to include("S:/tmp/file.php"). S: mounts a samba share from another box. php.exe has no problem talking to the same C:/tmp/file.php. IIS itself has no problem talking to the share. I've played around

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
Here is an example: -- $filename = "thefile.doc"; $fd = fopen ( $filename, "r" ); $contents = fread ( $fd, filesize($filename) ); ## contents of file are now in a string fclose ($fd); ## now, since you have contents of file in string $contents, you can

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
ok... so for me I would do this... just wanted to confirm it. $filename = "$ResumeUp"; /// the file name variable stored in the DB $fd = fopen($filename, "r"); $contents = fread($fd, filesize($filename)); fclose($fd); $keyword = "$words"; /// $words = the search word(s) from the form if(ere

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
IF $ResumeUp is the actual path and filename to the file you want to search, then that can work. For each file retrieved from your table, you can search the file for the keywords. Pretend you have the table called resume ( I am also assuming you are using mysql database ) create table resume(i

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
Of course, I was quick to send w/out checking for errors, so here again is corrected: == 0 ) { while( $row = mysql_fetch_array($row) ) { $filename = $row["filename"]; $fd = fopen($filename, "r"); $contents = fread($fd, filesize($filename)); fclose($

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
Well, it did the search... but only checked one file... lol! I did the query wrong... I tried something too complex! I will try yours in a bit.. I want to find a key word that it would return a result "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
Yeah, your query was specifying just one file. The query I sent you will grab alll the resumes in the table. "Todd Williamsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, it did the search... but only checked one file... lol! > > I did the query wro

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
Nicole It doesn't like this line: while ($row = mysql_fetch_array($row)) Aren't you suppose to do the array before doing the $numrows? "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Of course, I was quick to send w/out checking for errors,

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
>>while ($row = mysql_fetch_array($row)) Sorry, that should be: while ($row = mysql_fetch_array($result)) =[ "Todd Williamsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Nicole > > It doesn't like this line: > > while ($row = mysql_fetch_array($row))

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
I tried that too, and it returns nothing "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>while ($row = mysql_fetch_array($row)) > > Sorry, that should be: > > while ($row = mysql_fetch_array($result)) > > =[ > > > > "Todd Williamsen" <[EMAIL

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
> > Aren't you suppose to do the array before doing the $numrows? not in this case. Mysql already returned the number of rows, so i use the mysql function to get the number of rows. then, i use the result pointer to return a record as an array for each record in the result set returned. -nicol

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
here is the code: returns nothing, not even an error... the process is fast too, so I know it isn't doing anything... GRR! 0) { while ($row = mysql_fetch_array($result)) { $id = $row['id']; $FirstName = $row['FirstName']; $LastName = $row['LastName']; $filename = $row['ResumeUp']; $fd = fopen(

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
What keywords are being used? IF they aren't found, then nothing is being printed out. YOu need to add the else clause to this: if ( eregi (. ) ) { } else { ## add this to catch if keywords not found for debugging purposes at least so you see what is not found echo "The keywords $keywords

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Todd Williamsen
I was using a word I saw in the resume... so I know it exists "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What keywords are being used? IF they aren't found, then nothing is being > printed out. YOu need to add the else clause to this: > > i

[PHP-WIN] Re: Searching MS Word Docs

2002-02-08 Thread Nicole Amashta
Say you entere keywords on the form. If you enter more than one word, you need to break them up before using the regex. This is good for one word at a time, other wise your search will be to specific. So, let a user add comma separated or space separated keywords like so: ex1.programmer, ph

[PHP-WIN] Checking email

2002-02-08 Thread Steen Rabol
Hi I have a long list of users on my site, and I was wondering if it is possible to check if a email address is valid ? Thanks in advance. Steen