|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Tue Feb 06 2001 - 10:14:35 CST
php-general Digest 6 Feb 2001 16:14:35 -0000 Issue 496
Topics (messages 38350 through 38393):
Re: How to save something in a Java Applet as an IMAGE file ?
38350 by: Maxim Maletsky
Re: PHP mail as 'nobody'
38351 by: Steve Smith
MySQL --- OR in a select statement ???
38352 by: Dallas Kropka
38353 by: Joe Stump
38354 by: Chris Adams
framing search results
38355 by: Jason Dulberg
38359 by: Maxim Maletsky
*Animated* images. (repost)
38356 by: Hrishi
Re: PHP Authenticate
38357 by: Dan Lowe
OCILogOn and OCILogOff
38358 by: Reuben D Budiardja
solution
38360 by: andreas \(.work\)
38361 by: Chris Adams
38391 by: Nick Talbott
Modulus Formatting
38362 by: Michael Hall
38382 by: Web Admin
Re: Mixing PHP code with phplib templates... possible?
38363 by: Max A. Derkachev
Re: [PHP-WIN] COM and PHP
38364 by: Yoann Chevalier
20 Million Fresh E-mail Addresses
38365 by: Luke
Re: I wish: IIS and ISAPI $PHP_AUTH_USER
38366 by: Phil Driscoll
38388 by: Shane McBride
Re: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1
38367 by: Thomas Weber
Re: Pricing for PHP programming???
38368 by: Piotr Duszynski
Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0
38369 by: Sami Kristeri Maisniemi
38372 by: Christian Reiniger
Re:Installation of PHP and Apache in RedHat 7.0
38370 by: Sami Kristeri Maisniemi
Help with Linux RPM install (ODBC access)
38371 by: Paulo Parola (PHP)
38386 by: Andrew Hill
How to get information out of an external page?
38373 by: David Tandberg-Johansen
error handling prob
38374 by: Adrian Murphy
Re: AS400 SQL Errors and Resources
38375 by: Foley, John
PHP & mySQL on Sun Solaris OS
38376 by: Thomas Edison Jr.
38378 by: Martin A. Marques
38379 by: Thomas Edison Jr.
38380 by: Martin A. Marques
Re: Java Servlet Support
38377 by: Shawn J. Wallace
XSL again...
38381 by: Nicolas Peralta
movies manipulation??
38383 by: Giulio Borrini - Netbuilder
Mail-Encryption
38384 by: Martin Thoma
ora error
38385 by: Mark
auto appending for each directory
38387 by: Rishabh Gupta
Save to Local Disk
38389 by: Karl J. Stubsjoen
38392 by: Web Admin
Creating another php file
38390 by: Dusten
GD
38393 by: Brandon Orther
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
<song>
we-e-e ... a-are ... the cha-a-a-ampions, my friend ....
<song>
Dear Lise Fleming McKinney,
You are subscribed to PHP-General Mailing List, we all often send this kind
of things to each other without necessarily authenticating ourselves;
Cheers,
Maxim Maletsky
-----Original Message-----
From: Lise Fleming McKinney [mailto:copperfox
copperfox.com]
Sent: Tuesday, February 06, 2001 12:43 PM
To: Winnie; php-general
lists.php.net
Subject: RE: [PHP] How to save something in a Java Applet as an IMAGE
file?
Who are you and why are you sending me this?
*-----Original Message-----
*From: Winnie [mailto:winframe
iname.com]
*Sent: Monday, February 05, 2001 9:47 AM
*To: php-general
lists.php.net
*Subject: [PHP] How to save something in a Java Applet as an IMAGE file?
*
*
*hi,
*
*how can i do this? i have a java applet on my site which allows users to
*create their own drawings. i want to provide a "Email this to me" option,
*which will save the applet drawing and email it to the user. is there any
*way i can achieve this?
*
*thanks!
*winnie
*
*
*---
*Outgoing mail is certified Virus Free.
*Checked by AVG anti-virus system (http://www.grisoft.com).
*Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01
*
*
*
*--
*PHP General Mailing List (http://www.php.net/)
*To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
*For additional commands, e-mail: php-general-help
lists.php.net
*To contact the list administrators, e-mail: php-list-admin
lists.php.net
*
*
attached mail follows:
On Mon, 5 Feb 2001, Dave Goodrich wrote:
> The problem is that some of our customers are now blocking mail from user
> 'nobody', regardless if the account exists or not. I can have PHP write the
> complete headers but that doesn't stop the 'from' header in Sendmail being
> written (the true user process). I have two choices as I see it.
>
> 1) Use 'masquerade_envelope' feature in Sendmail
> 2) Change the process name PHP/Apache is running under
> (ex: change the unprivledged user 'nobody' to 'fantasic-elastic')
You have one additional option. You can make the nobody user 'trusted' by
sendmail. It's been awhile since I've done this but I believe you need to
add a line to /etc/sendmail.cf along the lines of "Tnobody". Don't forget
to restart sendmail for the changes to take effect. Then all you have to
do is pass your own From: header and you're set. (it should be noted
however that the Return-Path: header will always remain 'nobody'.
--Steve
attached mail follows:
Is it possible to include an OR condition in a MySQL select on 2 different
tables?
I have 1 table of basic customers and one table of Admins, both tables
"Relate" to the UserNum table containing UserNumber login password and
privs, I want to select one field from the correct table based on the
usernumber which is unique to all users and stored in the root User
table.... trying to do something like this....
SELECT first_name FROM admin_table, user_table WHERE userNum = 1000
The info will only be in one or the other.... but what (if any) is the
correct syntax?
attached mail follows:
You could do this:
users admins
----- ------
userID userID
fname
lname
select U.* from users U, admins A where A.userID=U.userID && (U.userID=100 ||
U.userID=101)
you could also use the IN () function ...
select U.* from users U, admins A where A.userID=U.userID && U.userID
in (100,101,400,500)
Hope this helps!
--Joe
On Mon, Feb 05, 2001 at 11:34:21PM -0600, Dallas Kropka wrote:
>
>
> Is it possible to include an OR condition in a MySQL select on 2 different
> tables?
>
> I have 1 table of basic customers and one table of Admins, both tables
> "Relate" to the UserNum table containing UserNumber login password and
> privs, I want to select one field from the correct table based on the
> usernumber which is unique to all users and stored in the root User
> table.... trying to do something like this....
>
> SELECT first_name FROM admin_table, user_table WHERE userNum = 1000
>
> The info will only be in one or the other.... but what (if any) is the
> correct syntax?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
--------------------------------------------------------------------------------- Joe Stump, PHP Hacker, joestump98
yahoo.com -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V -------------------------------------------------------------------------------
attached mail follows:
On 5 Feb 2001 21:27:13 -0800, Dallas Kropka <dallask
austin.rr.com> wrote:
>SELECT first_name FROM admin_table, user_table WHERE userNum = 1000
>
> The info will only be in one or the other.... but what (if any) is the
>correct syntax?
You mean something like
SELECT first_name FROM users LEFT JOIN admin_table on users.userNum = admin_table.userNum LEFT JOIN user_table on users.userNum = user_table.userNum WHERE admin_table.userNum=1000 OR user_table.userNum = 1000
?
(Disclaimers: There's probably a more efficient way of doing this. I've just finished an epic battle with MS SQL Server's poxy excuse for full-text searching and don't feel list spending any more time playing around with SQL statements this evening.)
attached mail follows:
I'd like to create a script that will frame search results made by various databases. I will be hardcoding these links into an HTML page. Since there will be alot of these links and I will be using the script across several virtual hosts, I can't have the links built by a db as they link to offsite stuff.
My problem so far is that if I try to link to a search result (which is obviously built by a database), I get a bunch of errors because the &, =, ? etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in the url. I can do this in perl (cgi::escape) but I'm not quite sure how to do it in php. Couldn't get it to work properly in perl so I'm crossing over to PHP to see if its doable.
Here's what I got from a code example from zend.com. Basically, I just need to add the %3A etc onto $url.
<? switch($x){ case "frame": ?> <frameset framespacing="0" border="0" frameborder="NO" rows="135,*"> <frame name="top" src="header.shtml" marginwidth="0" marginheight="0" scrolling="NO" noresize> <frame name="textarea" src="<? echo $url; ?>"> <? break; } ?>
Now one thing that I noticed is that often when the url is encoded and I try the link, I get a 404 error. What am I doing wrong?
So the links that I hardcode into the html is something like xyz.com/frame.php?page=searchresults.php or something like that.
I'm really new to php so sorry if this is kinda vague. If there's a better way of doing what I'm trying to above, please let me know!
Thanks in advance for your help! __________________ Jason Dulberg Extreme MTB http://extreme.nas.net
attached mail follows:
You can encode URLs with urlencode() and decode them by using urldecode()...
try read here:
www.php.net/urlencode www.php.net/urldecode
### my way: ### you pass $url:
$url = www.maxim.cx/get.php?this=variables&as=many&as=you&what=want echo "<a href=\"$PHP_SELF?url=".urlencode($url)."\">";
### and you catch it with:
<? switch($x){ case "frame": ?> <frameset framespacing="0" border="0" frameborder="NO" rows="135,*"> <frame name="top" src="header.shtml" marginwidth="0" marginheight="0" scrolling="NO" noresize> <frame name="textarea" src="<? echo urldecode($url); ?>"> <? break; } ?>
Cheers, Maxim Maletsky
-----Original Message-----
From: Jason Dulberg [mailto:jdulberg
nas.net]
Sent: Tuesday, February 06, 2001 3:09 PM
To: php-general
lists.php.net
Subject: [PHP] framing search results
I'd like to create a script that will frame search results made by various databases. I will be hardcoding these links into an HTML page. Since there will be alot of these links and I will be using the script across several virtual hosts, I can't have the links built by a db as they link to offsite stuff.
My problem so far is that if I try to link to a search result (which is obviously built by a database), I get a bunch of errors because the &, =, ? etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in the url. I can do this in perl (cgi::escape) but I'm not quite sure how to do it in php. Couldn't get it to work properly in perl so I'm crossing over to PHP to see if its doable.
Here's what I got from a code example from zend.com. Basically, I just need to add the %3A etc onto $url.
<? switch($x){ case "frame": ?> <frameset framespacing="0" border="0" frameborder="NO" rows="135,*"> <frame name="top" src="header.shtml" marginwidth="0" marginheight="0" scrolling="NO" noresize> <frame name="textarea" src="<? echo $url; ?>"> <? break; } ?>
Now one thing that I noticed is that often when the url is encoded and I try the link, I get a 404 error. What am I doing wrong?
So the links that I hardcode into the html is something like xyz.com/frame.php?page=searchresults.php or something like that.
I'm really new to php so sorry if this is kinda vague. If there's a better way of doing what I'm trying to above, please let me know!
Thanks in advance for your help! __________________ Jason Dulberg Extreme MTB http://extreme.nas.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello,
I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP.
thanks, Hrishi
attached mail follows:
Previously, FredrikAT said: > Hi... I have a problem with PHP Authenticate.... > ...if I enter user/pw wrong the first time it stops and I have to close/open > browser.! > I've tried to unset $PHP_AUTH_USER but then it just loops...
> if(!isset($PHP_AUTH_USER)) { > Header("WWW-Authenticate: Basic realm=\".: Privat område :.\""); > Header("HTTP/1.0 401 Unauthorized");
If the password entered is incorrect just issue these two headers again and it will force the browser to reauthenticate.
-dan
-- Dan Lowe <dantangledhelix.com> http://tangledhelix.com/ I didn't have time to write a short letter, so I wrote a long one instead. -Mark Twain
attached mail follows:
Hi, It seems to me that OCILogOff does not return anything. Evenif I do something like this:
$conn = OCILogOn("user", "passwd", "db"); $logoff = OCILogOff($conn);
$logoff is always empty. Does anyone know about this? any help?
Thanks. Reuben D. Budiardja
attached mail follows:
hi all,
we need to have a solution for the following stuff:
each member of the community should get his own page
something like
www.domain.com/tacco www.domain.com/micco www.domain.com/sicco
.....
and we dont liek to build this structure as webfolders
so what we are thinking of is:
a 404 php-file which extracts the path and generates a page for that out of mysql
so, if someone likes to access
www.domain.com/tacco
theres no file but our 404php document will extract
tacco
and generate the page tacco from the database
===========
possible ?
or is there a better solution out there ?
greetings
andreas
attached mail follows:
On 5 Feb 2001 23:31:17 -0800, andreas \(
work\) <myviva
utanet.at> wrote:
>a 404 php-file which extracts the path and generates a page for that out of
>mysql
>
>or is there a better solution out there ?
This approach can work and, properly done, work fairly well. However, a more elegant approach might be using mod_rewrite on Apache. You could write a regex that would convert addresses of the form /~username into /users/homepage.php?User=username internally. This would also have the advantage of leaving your existing 404 handling unchanged.
Chris
attached mail follows:
We have implemented this using AliasMatch directives in the Apache configuration file.
Here is our recipe:
AliasMatch ^/.+/(.+)\.php /website/$1.php AliasMatch ^/(.+)\.php /website/$1.php AliasMatch ^/.* /website/start.php
What this achieves is that any specific reference to a PHP script (even if apparently buried down in a subdirectory) is actually served by a PHP script in the document root of the site. Any reference that is not explicitly to a PHP script is served by the start.php script.
The start.php script looks at the actual URL asked for (using the $REQUEST_URI variable) and does some database lookups to generate the pages. So the request for a "page" such as http://www.pco.powys.org.uk/cap/page2.html is translated by the PHP scripts to a database lookup for page 2 for user "cap"
You can see this in operation at http://www.pco.powys.org.uk/
If you want any more information, please contact me off the list.
Kind regards
Nick Talbott IT Policy and Strategy Manager, Powys County Council, UK
email nickt
powys.gov.uk
FAX +44 (0) 1597 824781
web http://www.powys.gov.uk and http://www.powysweb.co.uk
-----Original Message-----
From: andreas (
work) <myviva
utanet.at>
To: php-general
lists.php.net <php-general
lists.php.net>
Date: 06 February 2001 07:23
Subject: [PHP] solution
>hi all,
>
>we need to have a solution for the following stuff:
>
>each member of the community should get his own page
>
>something like
>
>www.domain.com/tacco
>www.domain.com/micco
>www.domain.com/sicco
>
>
>.....
>
>
>and we dont liek to build this structure as webfolders
>
>
>so what we are thinking of is:
>
>a 404 php-file which extracts the path and generates a page for that out
of
>mysql
>
>
>so, if someone likes to access
>
>www.domain.com/tacco
>
>theres no file but our 404php document will extract
>
>tacco
>
>and generate the page tacco from the database
>
>
>===========
>
>possible ?
>
>or is there a better solution out there ?
>
>
>greetings
>
>andreas
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
> I can pull data out of a database using mysql_fetch_array and assemble it like this using a while statement: > > <TR><TD>$data</TD></TR> > <TR><TD>$data</TD></TR> > <TR><TD>$data</TD></TR> > etc ... > > What I'd like to do is assemble it like this: > > <TR><TD>$data</TD><TD>$data</TD><TD>$data</TD></TR> > etc... > > In other words, I need a break (</TR><TR>) every three times through the > loop. > > I've tried several snippets of code from this list's archive but none seem > to work. I've tried while statements, for statements and the list function > in every combination I can think of ... no go. I know that modulus is what I need but I can't crack the right code combination. > > Does anyone have a solution or can they point me to a resource somewhere? > > > Thanks > > Mick > >
attached mail follows:
Hi Michael, Use a temporary variable [counter], if counter%3 == 0 then write </tr><tr> in the output.
$counter=0; print "<tr>"; while($row = mysql_fetch_array($result)) { echo "<td>".$row["user_id"]."</td>"; $counter++; if (!$counter%3) { echo "</tr><tr>"; } } That's all ;-) Ahmad Anvari
----- Original Message ----- From: Michael Hall To: PHP List Sent: Tuesday, February 06, 2001 10:03 AM Subject: [PHP] Modulus Formatting
> I can pull data out of a database using mysql_fetch_array and assemble it like this using a while statement: > > <TR><TD>$data</TD></TR> > <TR><TD>$data</TD></TR> > <TR><TD>$data</TD></TR> > etc ... > > What I'd like to do is assemble it like this: > > <TR><TD>$data</TD><TD>$data</TD><TD>$data</TD></TR> > etc... > > In other words, I need a break (</TR><TR>) every three times through the > loop. > > I've tried several snippets of code from this list's archive but none seem > to work. I've tried while statements, for statements and the list function > in every combination I can think of ... no go. I know that modulus is what I need but I can't crack the right code combination. > > Does anyone have a solution or can they point me to a resource somewhere? > > > Thanks > > Mick > >
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello derek,
Tuesday, February 06, 2001, 2:28:23 AM, you wrote:
df> Hi,
df> Is there a way to embed PHP code in phplib's template files?
No.
df> I need df> to run all hyperlinks through a function in order to maintain state df> and pass other variables from script to script. I figure this must df> be possible, but I'm new at using phplib, so I'm not all that clear df> on it...
Set the links as template variables and then substitute them with values using Template's set_var().
-- Best regards, Max A. Derkachev mailto:kotbooks.ru Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia
attached mail follows:
Look at this example : http://www.phpbuilder.com/columns/alain20001003.php3?page=3
I think you forgot to activate the workbook, then to select the sheet and then to activate the sheet before writing into the cell !
Yoann.
----- Original Message -----
From: Conover, Ryan <Rconover
americanbridge.net>
To: <php-general
lists.php.net>; <php-windows
lists.php.net>
Sent: Monday, February 05, 2001 9:03 PM
Subject: [PHP-WIN] COM and PHP
> I have been trying the following example from the PHP developer's cookbook
> and it keeps giving me the following error.
>
> Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 4
> <? file://line 1
> $excel_handle = new COM("excel.application"); file://line2
> $excel_handle->Visible = false; file://line3
> $worksheet->Cells(1,1)->value = "Name"; file://line4
> $worksheet->SaveAs("temp.xls"); file://line5
> $excel_handle->quit(); file://line6
> file://line7
> ?> file://line8
>
> Anyone that has Com and PHP experience help please
>
> Ryan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe
lists.php.net
> For additional commands, e-mail: php-windows-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT.
20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included**
Many Call This "The "Perfect E-Mail List"
Over 20-Million Of The Best E-Mail Addresses Available
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
Our research has found that many people have tried one or more of the following...
Free Classifieds? (Don't work anymore) Web Site? (Takes thousands of visitors) Banners? (Expensive and losing their punch) E-Zine? (Hope they have a *huge* subscriber list) Search Engines? (Forget it, unless you're in the top 20)
S O W H A T W I L L W O R K ?
Although often misunderstood, there is one method that has proven to succeed time-after-time.
E - M A I L M A R K E T I N G ! !
IT'S A FACT... If you're not using your computer to generate income, GOOD income, you're leaving money on the table.
Here's what the experts have to say about E-Mail Marketing:
"E-mail is an incredible lead generation tool" -Crains Magazine
"A gold mine for those who can take advantage of bulk e-mail programs" - The New York Times
"Blows away traditional Mailing" - Advertising Age
Here's an example of your potential earnings if you have a product or service that brings you a profit of around $30. Remember, on the Internet, you can make money 7 days a week, 24 hours a day... even while you sleep, orders come from all over the world!
Orders Per Day Weekly Monthly Yearly
1 $ 210 $ 840 $ 10,080 2 420 1,680 20,160 3 630 2,520 30,240 5 1,050 4,200 50,400 10 2,100 8,400 100,000 15 3,150 12,600 151,200
THE QUESTION IS... how do you generate those orders?
The least expensive and fastest way is through E-Mail Marketing.
You want to make some money?
I can put you in touch with over 20 million people at virtually no cost.
Can you make one cent from each of theses names?
If you can you have a profit of over $200,000.00
That's right, I have over 20 Million Fresh email
addresses that I will sell for only $249. These are all
fresh addresses that include almost every English person
on the Internet today, with no duplications. They are
all sorted and ready to be mailed. That is the best
deal anywhere today!
Don't believe it? People are making that kind of
money right now by doing the same thing, that is
why you get so much email from people selling you
their product....it works!
These 20 Million email addresses are
yours to keep, so you can use them over and
over.
This offer is not for everyone. If you can not
see just how excellent the risk / reward ratio
in this offer is then there is nothing I can do
for you. To make money you must stop dreaming
and TAKE ACTION.
Over the past 2 years, we have gained a reputation for having the cleanest, most responsive e-mail address lists in the industry. No one has gone to the work it takes to produce an e-mail address list of this quality.
Here's how we prepare our e-mail lists:
1. We clean and eliminate all duplicates.
2. Next, we use a filter list of 400+ words/phrases to clean even more. No address with inappropriate or profane wording survives!
3. Then we use our private database of thousands of known Internet "extremists", those opposed to any kind of commercial e-mail, and kicked off every one we could find.
4. All domains were verified to insure they're valid.
5. And finally, we sorted the list into easy-to-manage packets of 20,000 addresses in simple text (.txt) format that will work with any computer operating system.
****************************************** It is time to order!
Shipping is not an issue.
******FedEx next day world wide shipping included********
As soon as we receive payment we will FedEx your e-mail list via
CD straight to your door anywhere in the world FedEx next day guaranteed.
******International Orders Welcome*********
US funds paid via paypal.com welcomed
PayPal is now available in the following countries:
Australia Austria Belgium Brazil Canada Denmark France Germany Hong Kong Ireland Israel Italy Japan Mexico Netherlands New Zealand Norway Portugal Singapore South Africa South Korea Spain Sweden Switzerland United Kingdom
PayPal.com is very easy to sign up to. They accept wire transfers,
checks and credit cards from any of the countries listed above.
This payment process is in your own interest of safety. Paypal.com
processes all transactions and keeps all your personal information
secret. After signing up please send the U.S. equivalent of $249
to luke54321
xtram.com last name Smith.
If there is another way you would like to pay please e-mail me
at luke54321
xtram.com and I will get back to you.
*******Wondering out how to send 20 million E-mails********
I will tell you how/where to download the softwhere you need for free
Please NOTE:
Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof, or abridging the freedom of speech or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.
Amendment I, The US Constitution
attached mail follows:
>I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine.
>I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck.
As well as mapping the .php file extension onto the php4isapi.dll, have you also installed PHP as an ISAPI filter? I'm pretty sure that it is the filter bit that enables php to pick up the authentication details.
Cheers
-- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
attached mail follows:
Yes, I have the filter loaded. PHP file in general work excellent. It's just any file that uses the following code:
What happens is that the prompt window comes up, but no matter what username/password is used it always fails. I tried to set the permissions in IIS several different ways but no luck...
<?
// File name: admin_menu.php
// Check to see if $PHP_AUTH_USER already contains info
if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm="The Back Care Center Admin Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required!';
exit;
} else if (isset($PHP_AUTH_USER)) {
if (($PHP_AUTH_USER !="admin") || ($PHP_AUTH_PW !="tbcc")) {
header('WWW-Authenticate: Basic realm="The Back Care Center Admin
Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required!';
exit;
} else {
// Start echo statement
echo "hello";
}
}
----- Original Message -----
From: "Phil Driscoll" <phil
dialsolutions.co.uk>
To: "Shane McBride" <php
riversidedesigns.net>; <php-general
lists.php.net>
Sent: Tuesday, February 06, 2001 4:49 AM
Subject: Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER
> >I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and
> never got anywhere, so I used apache and it works fine.
>
> >I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated,
> but no luck.
>
> As well as mapping the .php file extension onto the php4isapi.dll, have
you
> also installed PHP as an ISAPI filter?
> I'm pretty sure that it is the filter bit that enables php to pick up the
> authentication details.
>
> Cheers
> --
> Phil Driscoll
> Dial Solutions
> +44 (0)113 294 5112
> http://www.dialsolutions.com
> http://www.dtonline.org
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
The problem is solved!!!!! My system searched the .h-files in /usr/include/linux/ and i found them all in /usr/src/linux-2.2.16/include/linux/, just copied them and it worked :-)))
Thank you all for the support!
-----Original Message-----
From: Thomas Weber [mailto:tw
cynobia.de]
Sent: Monday, February 05, 2001 6:07 PM
To: Php-Install; John Hinsley
Subject: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1
The inluded version is PHP4.0.0, but i need an alternative configured 4.0.3 or 4.0.4 with support for shared memory functions. :-(
-----Original Message-----
From: john
mailserv.gedik.de [mailto:john
mailserv.gedik.de]On Behalf Of
John Hinsley
Sent: Monday, February 05, 2001 5:59 PM
To: Thomas Weber
Subject: Re:strange Compiling Errors / PHP4.0.4pl1
Hi Thomas:
I'm not sure which version of php was included with SuSE 7.0. But I'd be inclined to simply use Yast to install it.
-- **************************************************************************** ** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." **************************************************************************** **-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe
lists.php.net For additional commands, e-mail: php-install-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Thu, Feb 01, 2001 at 12:52:21PM +1100, Josh G wrote: > I hear you. Another thing that's hard to find, is somebody who is a > good programmer, and a good graphic designer. I don't really know > any, apart from myself, and I've been just shy of being called a lying > scumbag by a few HR companies over the years when they look at > my resume ;-) > > This thread has really fired up my desire to go the states.... US$80 > an hour for php.... daaaaaaaaaaaamn, that's a shitload more than I > make here, which is more like US$20/hr
Hmm. I get about $250 a month! And I don't think that I'm bad programmer... But this is Poland - Another World :(
--Piotr Duszynski http://www.softomat.com.pl http://filmomat.3miasto.pl http://www.3miasto.pl
attached mail follows:
On Mon, 5 Feb 2001, Geordon VanTassle wrote:
> First, try "locate apachectl" to find where apachectl is. > > Then, do "/etc/rc.d/httpd stop;/etc/rc.d/httpd start" > > Then try to read that phpinfo file. > > HTH, > Geordon
That is exactly the problem. RedHat 7.0 doesn't include program called 'apachectl' or otherwise I am just not able to find it. If you have RedHat7.0 and in your computer 'apachectl' operates just fine, please tell me where it is located at? I thought that 'httpd start' would do the same!
By the way, do you know in which directory PHP files should be moved in RedHat 7.0?
Regards, Sami
-------------------------------------------------------------------------
Sami Maisniemi tel: +358 9 4580 854
Helsinki University of Technology mobile: +358 40 7499 088
Department of Electrical and email: smaisnie
cc.hut.fi
Communication Engineering sami.maisniemi
nokia.com
-------------------------------------------------------------------------
attached mail follows:
On Tuesday 06 February 2001 11:54, Sami Kristeri Maisniemi wrote:
> > Then, do "/etc/rc.d/httpd stop;/etc/rc.d/httpd start"
> That is exactly the problem. RedHat 7.0 doesn't include program called > 'apachectl' or otherwise I am just not able to find it. If you have > RedHat7.0 and in your computer 'apachectl' operates just fine, please > tell me where it is located at? I thought that 'httpd start' would do > the same!
Actually "/etc/rc.d/httpd start" usually calls apachectl to do the real work. Anyway, using "/etc/rc.d/httpd restart" is the recommended way to restart apache
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)Even idiots can handle computers, and many do.
attached mail follows:
On Mon, 5 Feb 2001, John Hinsley wrote:
> you need to put the php scripts (as something.php) in your doc root > (probably /usr/local/httpd/htdocs) and call them by > http://localhost/something.php.
That is also quite weird, but I am not able to locate directory '/usr/local/httpd/htdocs'. Actually there is no directory called 'htdocs' at all in my computer. It seems that RedHat 7.0 uses a little bit different method. > If this doesn't work, take a peek at your Apache documentation and check > out your /etc/httpd/httpd.conf file.
Good point. Maybe I can locate the root directory from the configuration file.
> It might help to do a diff between the one you have and mine (attached) > to look for any references to php which you don't have.
I try, thanks for advices.
Regards, Sami
-------------------------------------------------------------------------
Sami Maisniemi tel: +358 9 4580 854
Helsinki University of Technology mobile: +358 40 7499 088
Department of Electrical and email: smaisnie
cc.hut.fi
Communication Engineering sami.maisniemi
nokia.com
-------------------------------------------------------------------------
attached mail follows:
Hi,
I have just installed RedHat 7 with support to PHP4 and MySQL.
phpinfo() reports the following at the 'configure command' entry:
'./configure' '--target=i386-redhat-linux' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--without-mysql' '--with-xml'
Although it shows option '--without-mysql' at the 'MySQL' section it reports that MySQL is enabled, and indeed we can connect to our MySQL database normally.
We need though to have access to MySQL through ODBC and would like to configure PHP to run with 'unixODBC' compiled. I can see that ODBC support is currently not built in, because invoking function odbc_connect() I receive the following message:
Fatal error: Call to undefined function: odbc_connect() in /var/www/html/odbc.php on line 6
RedHat reports that the RPM package for unixODBC is installed, but how do I make it to be built with PHP? And why does the compile options show that MySQL support was not built in and in fact it is? Is this because of the way RPMs function? That is, I believe I should really not rebuild PHP with commands './configure', 'make' and 'make install' but instead work with the RPM RedHat system.
Any hints for a Linux RedHat newbie?
TIA,
Paulo
attached mail follows:
Paulo,
My advice is to forgo RPMs and build the darn thing by hand. It's really quite easy - check out the Unix install instructions here: http://www.php.net/manual/en/install.unix.php
I don't have specific UnixODBC docs, but iODBC should enable you to use any ODBC driver with it (iODBC is a driver manager, and makes PHP ODBC-aware, so you just pass in an ODBCINI envrionment variable pointing to your odbc.ini DSN file like: putenv("ODBCINI=path/to/odbc.ini");
Your odbc.ini will contain your DSNs You will prob also want to pass in env variables for LD_LIBRARY_PATH and ODBCINSTINI. A HOWTO on iODBC is here: http://www.iodbc.org/odbc-phpHOWTO.html
Let me know if you run into trouble.
Best regards, Andrew ---------------------------------------------------- Andrew Hill Director Technology Evangelism OpenLink Software http://www.openlinksw.com XML & E-Business Infrastructure Technology Provider
> -----Original Message-----
> From: Paulo Parola (PHP) [mailto:php
brazilinfo.com]
> Sent: Tuesday, February 06, 2001 6:04 AM
> To: php-general
lists.php.net
> Subject: [PHP] Help with Linux RPM install (ODBC access)
>
>
> Hi,
>
> I have just installed RedHat 7 with support to PHP4 and MySQL.
>
> phpinfo() reports the following at the 'configure command' entry:
>
> './configure' '--target=i386-redhat-linux' '--prefix=/usr'
> '--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
> '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
> '--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system'
> '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
> '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
> '--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
> '--without-mysql' '--with-xml'
>
> Although it shows option '--without-mysql' at the 'MySQL' section
> it reports
> that MySQL is enabled, and indeed we can connect to our MySQL database
> normally.
>
> We need though to have access to MySQL through ODBC and would like to
> configure PHP to run with 'unixODBC' compiled. I can see that ODBC support
> is currently not built in, because invoking function odbc_connect() I
> receive the following message:
>
> Fatal error: Call to undefined function: odbc_connect() in
> /var/www/html/odbc.php on line 6
>
> RedHat reports that the RPM package for unixODBC is installed,
> but how do I
> make it to be built with PHP? And why does the compile options show that
> MySQL support was not built in and in fact it is? Is this because
> of the way
> RPMs function? That is, I believe I should really not rebuild PHP with
> commands './configure', 'make' and 'make install' but instead
> work with the
> RPM RedHat system.
>
> Any hints for a Linux RedHat newbie?
>
> TIA,
>
> Paulo
>
>
>
attached mail follows:
Hello!
I try to get some information from an public DB to controll that the users input is right.
I can access the DB via http, so I dont have to logg in to it
The public DB write out and plain HTML page.
I want to check if only one of the records is the same as the user input. I am only using the information in public DB to verify, and nothing else.
Example of output from DB: ********************************* Name : Joe Lastname: Doe Userid: 45545654 /*this is the information I wants City: New York *********************************
I figured out that I have to use fopen () and fread().
Could anyone give mes some hints!
Thank's
David
attached mail follows:
to handle errors i have this in .htaccess: e.g ErrorDocument 404 http://www.mysite.com/error/error.php
but on error.php the 'REDIRECT_' vars contain nothing e.g REDIRECT_URL etc.
why so?
attached mail follows:
For AS/400 in general: http://publib.boulder.ibm.com/html/as400/infocenter.html
An for DB/2: http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v7pubs.d 2w/main
John T. Foley Network Administrator Pollak Engineered Products, Actuator Products Division, A Stoneridge Company 195 Freeport Street, Boston MA 02122 ph: (617) 474-7266 fax: (617) 282-9058
The geographical center of Boston is in Roxbury. Due north of the center we find the South End. This is not to be confused with South Boston which lies directly east from the South End. North of the South End is East Boston and southwest of East Boston is the North End.
> -----Original Message-----
> From: Karl J. Stubsjoen [SMTP:karlflips
kstub.com]
> Sent: Monday, February 05, 2001 11:48 AM
> To: PHP Mailing List
> Subject: AS400 SQL Errors and Resources
>
> Hello,
>
> I reallize that the SQL syntax should be similar among all DB's which
> allow
> SQL, but there are slight differences amongst them. With that said, I
> have
> written an SQL statement to the AS400 and am getting errors back. So, and
> I
> don't have ANY, I need a site to visit where I can reference DB2 and SQL
> for
> the AS400.
> Here is my error code:
>
> SQL error: [IBM][CLI Driver][AS] SQL0401N The data types of the operands
> for
> the operation "= " are not compatible. SQLSTATE=42818 , SQL state 42818 in
> SQLExecDirect
>
> Any ideas?
> Was this Off-Topic?
> Any suggestions where I could post these questions?
>
> Thanks guys!
>
> Karl
>
attached mail follows:
Does PHP work on Sun Solaris? if so..where can i get the version that needs to be downloaded & installed on solaris machine and the documentation to install it there? same for mySQl?
thanks... T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech
yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
attached mail follows:
El Mar 06 Feb 2001 09:37, Thomas Edison Jr. escribió: > Does PHP work on Sun Solaris? if so..where can i get > the version that needs to be downloaded & installed on > solaris machine and the documentation to install it > there?
Download the source and compile them. We work with PHP on Solaris 7 (apache), using Informix, Postgres and Mysql as databases, all compiled from sources.
Saludos... ;-)
-- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martinmath.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
attached mail follows:
Thanks for the info... we'll download the source .. but how do we install on the Solaris machine? is there any doc available for that? it comes with the source file?
Thanks, T. Edison jr.
--- "Martin A. Marques" <martin
math.unl.edu.ar>
wrote:
> El Mar 06 Feb 2001 09:37, Thomas Edison Jr.
> escribió:
> > Does PHP work on Sun Solaris? if so..where can i
> get
> > the version that needs to be downloaded &
> installed on
> > solaris machine and the documentation to install
> it
> > there?
>
> Download the source and compile them. We work with
> PHP on Solaris 7 (apache),
> using Informix, Postgres and Mysql as databases, all
> compiled from sources.
>
> Saludos... ;-)
>
> --
> System Administration: It's a dirty job,
> but someone told I had to do it.
>
-----------------------------------------------------------------
> Martín Marqués email: martin
math.unl.edu.ar
> Santa Fe - Argentina
> http://math.unl.edu.ar/~martin/
> Administrador de sistemas en math.unl.edu.ar
>
-----------------------------------------------------------------
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech
yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
attached mail follows:
El Mar 06 Feb 2001 10:06, Thomas Edison Jr. escribió: > Thanks for the info... we'll download the source .. > but how do we install on the Solaris machine? is there > any doc available for that? it comes with the source > file?
Do you have gcc (or another compiler) installed? The sources comes with lots of docs, I can recall, but you should have a README and an INSTALL.
Saludos... :-)
-- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: martinmath.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
attached mail follows:
At 12:25 PM 2/5/2001 -0500, you wrote: >The sapi/servlet option is essentially a Java servlet that you add to >your Java webserver just like you would any other servlet and it invokes >the PHP engine through JNI and reflection (so you could reference Java >objects from within your PHP script). This option is much more >efficient then just running the ext/java extension (which allows you to >access Java objects from PHP by starting up a JVM per session) since the >JVM used is already running in the Java webserver and can be managed >much better by the latter than anything ext/java can attempt to do. >Note that using this SAPI implies that PHP will be running in your Java >Webserver instead of on your HTTP webserver (e.g. Apache) which could >have implications (hopefully for the better) unless they're both running >on the same physical machine.
That sounds excellent. So if I understand you correctly, I could run Apache with JServ (or Tomcat) and build PHP into it to get a nice solution. I could then write servlets that call PHP scripts/functions and vice versa?
Shawn
--- Shawn J. Wallace (shawnjustweb.com) Justweb Inc. - http://www.justweb.com (519)652-6599 or (800)343-9312
attached mail follows:
Hi! Well, A little question. Does anyone know any way of to use XSL with PHP3("3") without Sablot library? I Know that if I migrate to PHP4 this problem doesn't exist, but We have many servers to migrate, it's a little complicated.
I hope that anyone understand me... =)
Thanks!
Nicolas Peralta.
nperalta
elsitio.com.ar
attached mail follows:
hi guys,
i'm working on a web site where users will be able to upload movies. the problem is that i want to dinamicly create a movie preview. is it possibile, even with some external programs in other languages, to exetract a picture from o movie?
any idea?
thanks in advance
----------------------------------------------------------------- Giulio Borrini Web Programmer Netbuilder snc Parma, Italy -----------------------------------------------------------------
attached mail follows:
Hello !
I want to send mails via the "mail"-command which are encrypted and which uses the certificates used by Netscape Messenger and Outlook (if you export the files, it's extention is .p12).
- How do I generate such keys (in general) ? - How can I send an encrypted email from an Unix-Server (with php) ?
Regards
Martin
attached mail follows:
I wrote a php script that queries for a paticular group of documents, gets the path of the documents and copies them to a holding area. But there is one problem I keep getting the following error about every 20th time the script is executed.
Database error: ora_parse() failed: select DOCUMENT_ID docnum, ISSUE rev, VOLUME vol, SECTION, CHANGE, PATH, SHEET FROM raois_sheets WHERE DOCUMENT_ID LIKE UPPER('tm-007-001%') ORDER BY DOCUMENT_ID, ISSUE desc, SHEET Snap & paste this to sqlplus! Oracle Error: 2042 (ORA-02042: too many distributed transactions ORA-02063: preceding line from SHEETS -- while processing OCI function OPARSE) Session halted.
I can restart the web server and all is fine again but I want to and end to this error once and for all.
Does anybody know what is causing this and/or how to fix it?
Thanks Mark
attached mail follows:
I'm developing a web page with a directory structure like this: /main -----/subject1/ --------------/subsubsect11 --------------/subsubsect12 --------------/subsubsect13 --------------/subsubsect14 --------------/subsubsect15 -----/subject2/ --------------/subsubsect21 --------------/subsubsect22 --------------/subsubsect23 --------------/subsubsect24 --------------/subsubsect25 -----/subject3/ etc.....
What I would like to do is have a menu for each directory which is saved in a seperate file, (so there is a menu for main, menu for subject1, menu for subsubject11, etc). I need a php script that finds out what directory a current web page is in and automatically append all the menu files for each directory up to the current directory. I know that php has functions for both directory access and file access. Could somebody give an idea how I can achieve this with php.
many Thanks
Rishabh
attached mail follows:
Hello,
I'd like to give the user an option to "Save to Disk" the contents of a text area. Any ideas how to do this?
Thanks!
attached mail follows:
Hi Karl, Simply put a save button on your page. When it's clicked, pass document.forms[0].textareaname.value to the other script, (it's written in javascript, if you're familiar with that), then you'll access the content of the text box. to save it on a local disk, simply use javascript again, it will help you save a file on disk. [altough there are some security reasons which prohibit you write on the client's side, you can still do that using the below script] it's a good guide. however, you have to change some parts:
<BODY> <FORM> <TEXTAREA NAME="output" COLS=60 ROWS=10 WRAP="virtual"></TEXTAREA><BR> <INPUT TYPE="button" VALUE="Read File" onClick="this.form.output.value= ''; fetchFile(this.form);" ID="2"><BR>
<TEXTAREA NAME="input" COLS=60 ROWS=10 WRAP="virtual"></TEXTAREA><BR> <INPUT TYPE="button" VALUE="Save File" onClick="setFile(this.form.input.value);" ID="3"><P> <INPUT TYPE="button" VALUE="New Window..." onClick="newRaisedWindow();" ID="4"> </FORM> </BODY>
hope it works, Ahmad Anvari ----- Original Message ----- From: Karl J. Stubsjoen To: PHP Mailing List Sent: Tuesday, February 06, 2001 6:23 PM Subject: [PHP] Save to Local Disk
Hello,
I'd like to give the user an option to "Save to Disk" the contents of a text area. Any ideas how to do this?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I'm having trouble creating a php file. I've tried to explain it to the peeps in IRC but am having trouble. It'll be easier to paste my code: ... $result2 = mysql_query("INSERT INTO winLoss(login, pass) VALUES('$login', '$pass')");
if($result2) { $fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext", "w"); fwrite($fp, "<?php $result = mysql_query("SELECT * from winLoss WHERE login='$login' AND pass='$pass'"); ?>
<html> <head> <title>$screen_name</title> </head>").........
Ive ommited the redundant things. Basicly it just creates this: SELECT * from winLoss WHERE login='' I need that value in there. Any ideas?
Thank you Dusten
attached mail follows:
Hello,
Hello I am starting to work with GD a little bit more lately and was looking for some more advanced stuff than just printing text on blue background. I was wondering if there is a way to load an image into GD to use as the background image of a image I want to create.
Does anyone know where I can get a couple good GD tutorials, other than making graphs.
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]