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
> 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;
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
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
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
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 - 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
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.
===
...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
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
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
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
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
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
"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
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
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
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
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"
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
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
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
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
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
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($
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
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
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,
>>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))
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
> > 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
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(
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
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
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
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
36 matches
Mail list logo