Re: [PHP] Problems with a simple While-If condition
There does not seem to be an 'IF' statement? Bret Register your Domain for as little as $8.95 yr. At pgaws.com Find a contractor or find a contract at Tech-Temp.com - Original Message - From: Rodrigo de Oliveira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 6:47 PM Subject: [PHP] Problems with a simple While-If condition This is the fact: I'm building a homepage that can access a mysql database, and display the records within a certain condition. Following this it is verified if the sql result was empty then it should write a certain frase, if not it should write the records. I've got the worst part ok, the while that display the results, but the if isn't being verified, it writes the frase anyway. Please help, the code is right under the file name: indicador.php ? include db_dados.php; ? ? $sql = SELECT * FROM tb_tao WHERE area='$area'and status=1; $res = @mysql_query($sql,$id) ? ? echo table width='100%' height='100%' border='0' align='center' ? ? echo trtddiv align='center'Nenhum profissional cadastrado./div/td/tr; ? ? while ($row = mysql_fetch_array($res)) { ? ? echotrtdID Profissional/td; echotd.$row['id']./td/tr; echotrtdNome/td; echotd.$row['nome']./td/tr; echotrtdProfissão/td; echotd.$row['area']./td/tr; echotrtdBairro/td; echotd.$row['bairro']./td/tr; echotrtdTelefone/td; echotd.$row['telefone']./td/tr; echotrtdE-mail/td; echotd.$row['email']./td/tr; echotrtdTelefone Celular/td; echotd.$row['celular']./td/tr; echotrtdRegistro Profissional/td; echotd.$row['regprof']./td/tr; echotrtdEndereço/td; echotd.$row['endereco']./td/tr; echotrtdnbsp;/td; echotdnbsp;/td/tr; ? ? } ? ? echo/table; ? db_dados.php ? $id = mysql_connect(localhost,rodrigo,g3mston3)or die ('I cannot connect to the database.'); $con = mysql_select_db(db_tao); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Frequent question..Which Mailing List Script
Howdy List, I know this gets asked alot, but: Does anyone have a recommendation for a *good* mailing list management script? Requirements: Multiple domain support PHP 4 MySQL Any thought are appreciated
Re: [PHP] No Reply From cURL
I had a devil of a time figuring out how to make it work. After searching the archives and lots of other sites I came up with the following code: (FYI - I am using authorize.net, so some of the response parameters may be different for you) HTH Bret ?php $data = formfield1_name=formfield1_valueformfield1_name=formfield1_value/*etc*/; # gets static data merchant info, login, password etc if($x_Method==CC){ $data .= formfield3_name=formfield3_valueformfield4_name=formfield4_value/*etc*/; #gets conditional values if Credit Card is selected } else{ $data .= formfield5_name=formfield5_valueformfield6_name=formfield6_value/*etc*/; #gets conditional values if eCheck is selected } $ch = curl_init(https://secure.website.net/script_or_application;); // URL of gateway for cURL to post to $data .= x_First_Name=$x_First_Namex_Last_Name=$x_Last_Namex_Company=$x_Company; $data .= x_Address=$x_Addressx_City=$x_Cityx_State=$x_Statex_Zip=$x_Zipx_Phone=$ x_Phone; //$data = gets the rest of all form data curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // use HTTP POST to send form data curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1) $resp = curl_exec($ch); //execute post and get results curl_close ($ch); //My responses are delimited with | (pipe) $parts = explode(|, $resp); //creates array from reponse ? - Original Message - From: Steve Keller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 2:03 PM Subject: [PHP] No Reply From cURL I apologize for being a pest about this, I'm just not getting it. I'm attempting to open a connection to NetLedger to post an XML file. I'm attempting this basic code, which is pretty much what I find everywhere: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, https://partners.netledger.com/SmbXml;); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$postData); $result = curl_exec ($ch); curl_close($ch); echo $result; And I'm getting no result back so I can't even see what error I'm getting. I'm using PHP 4.2.3, with OpenSSL/0.9.5a and compiled as follows: './configure' '--with-apxs=/usr/local/www/bin/apxs' '--with-mysql=/usr/local/' '--with-gd=/usr/local/' '--with-freetype' '--with-imap' '--with-curl' Also, how do I include a file in the postData? Can someone point me to a good page about HTTP where I can read about doing that? -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No Reply From cURL
-- snip - Thanks Greg, that's a start. Yes, it's returning a 1. So where do I go from here with troubleshooting? -- snip - That is cURL returning a (true) value having completed succesfully. Bret - Original Message - From: Steve Keller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:20 PM Subject: Re: [PHP] No Reply From cURL At 11/21/2002 11:55 AM, greg R wrote: I don't think cURL is very intuitive. Well, I'm glad to see someone else say that. Makes me feel less retarded. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, https://partners.netledger.com/SmbXml;); echo $res; That should at least tell you, if nothing else, that you could successfully get into the service. If it's a success, should return a 1, I think. Thanks Greg, that's a start. Yes, it's returning a 1. So where do I go from here with troubleshooting? -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No Reply From cURL
-- snip - Well, I'm glad to see someone else say that. Makes me feel less retarded. -- snip - Took me 3 weeks on and off and several handfulls of hair ; ) - Original Message - From: Steve Keller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 3:20 PM Subject: Re: [PHP] No Reply From cURL At 11/21/2002 11:55 AM, greg R wrote: I don't think cURL is very intuitive. Well, I'm glad to see someone else say that. Makes me feel less retarded. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, https://partners.netledger.com/SmbXml;); echo $res; That should at least tell you, if nothing else, that you could successfully get into the service. If it's a success, should return a 1, I think. Thanks Greg, that's a start. Yes, it's returning a 1. So where do I go from here with troubleshooting? -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No Reply From cURL
//My responses are delimited with | (pipe) $parts = explode(|, $resp); //creates array from reponse Where are you setting this? How I set up at Authorize.net didn't expect yours to be... one of these should work to import the file The following options expect a file descriptor that is obtained by using the fopen() function: CURLOPT_FILE: The file where the output of your transfer should be placed, the default is STDOUT. CURLOPT_INFILE: The file where the input of your transfer comes from. as in: curl_setopt($ch, CURLOPT_INFILE, fileName.XML); Bret - Original Message - From: Steve Keller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 21, 2002 5:49 PM Subject: Re: [PHP] No Reply From cURL At 11/21/2002 03:18 PM, Bret L Conard wrote: Really appreciate the help Bret. But I've still got some problems: (FYI - I am using authorize.net, so some of the response parameters may be different for you) Actually, I appreciate the fields demonstration because it made me realize I was missing two fields from the post, although Netledger is our accounting system, not the payment gateway, so I was able to dump the CC and eCHECK junk from the code since that's already been processed and written into the data file. We're using PayflowPro, and I've set up their Silent Post to feed to a script on our site that generates an XML file in NetLedger's Small Business XML format based on the data returned by PayFlow, and only if the purchase is approved. It's that XML file that I need to post, along with two identifying fields. NetLedger is then supposed to take that uploaded XML file and turn it into a sales record in our accounting. Does anyone know how to work a file into a cURL post? I've already tested the XML file numerous times (NetLedger has a way to upload the XML files from your desktop), and I know it's formatted properly. $ch = curl_init(https://secure.website.net/script_or_application;); // URL Ok, I was setting the URL in a CURLOPT. From what I understand, that shouldn't make a difference, right? //My responses are delimited with | (pipe) $parts = explode(|, $resp); //creates array from reponse Where are you setting this? Ok, I've taken a shot at using your example and just removing the CC stuff. What I came up with, then, should work, right? Nope. Still no response. Here's my code: $data = mtype=XMLDOCoutfile=true; $ch = curl_init(https://partners.netledger.com/SmbXml;); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $resp = curl_exec($ch); curl_close ($ch); $parts = explode(|, $resp); echo resp: .$resp.br /; echo parts: .$parts.br /; foreach($parts as $key = $val) { echo b$key:/b $val br\n; } Now, granted, I'm not using | as a delimiter. At least, I don't think I am. Still, $resp should echo if there's something in it, right? What I get out of that is: resp: parts: Array 0: Parts is the only one that echoes as I expected it to. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] Distance Based on Zip Code
// Function takes latitude and longitude of two places as input // and prints the distance in miles and kms. function calculateDistance($lat1, $lon1, $lat2, $lon2) // Convert all the degrees to radians $lat1 = deg2rad($lat1); $lon1 = deg2rad($lon1); $lat2 = deg2rad($lat2); $lon2 = deg2rad($lon2); // Find the deltas $delta_lat = $lat2 - $lat1; $delta_lon = $lon2 - $lon1; // Find the Great Circle distance $temp = pow(sin($delta_lat / 2.0), 2) + cos($lat1) * cos($lat2) * pow(sin($delta_lon / 2.0), 2); $EARTH_RADIUS = 3956; $distance = ($EARTH_RADIUS * 2 * atan2(sqrt($temp), sqrt(1 - $temp)) * 1.6093); return $distance; } Register your Domain for as little as $8.95 yr. At pgaws.com Find a contractor or find a contract at Tech-Temp.com - Original Message - From: vernon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 18, 2002 3:21 PM Subject: [PHP] Distance Based on Zip Code Does anyone know how I can set something up that tells the distance between one Zip Code and another? I'm needing to be able to set something up where one user's record is compared to another and a distance is measured. Any have any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [ANN] Zip code db available with latitude and longitude
I too would prefer not to get spammed on the list. As an additional note. I have the exact data and got it for free with a little searching on government web sites : ) Bret - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: Brian Dunning [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 11, 2002 12:04 PM Subject: Re: [PHP] [ANN] Zip code db available with latitude and longitude At 17:58 11.11.2002, Brian Dunning spoke out and said: [snip] Zipwise has done all of the hard work for you. [snip] Thanks a lot for that, but I'd prefer not to be spammed on this list. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [ANN] Zip code db available with latitude and longitude
h lol - Original Message - From: Ernest E Vogelsinger To: Bret L Conard Sent: Monday, November 11, 2002 12:12 PM Subject: Re: [PHP] [ANN] Zip code db available with latitude and longitude At 18:11 11.11.2002, you said: [snip] I too would prefer not to get spammed on the list. As an additional note. I have the exact data and got it for free with a little searching on government web sites : ) [snip] you're going to sell it? *lol* -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/
[PHP] IP addresses
Hi all, I've been away for a while but I'm back and have a question about IP addresses. How do I retrieve / capture a users IP? I need to have it to process electronic payments. Thanks. Bret
Re: [PHP] Paying Job...
SNIP// So that leaves hourly or by the project (not mentioned). Personally, I like to do it by the project, although I am probably a minority in my preference. By the project gives the client a nice set price. However, the scope has to be extremely well defined. It should be anyway, but more so if charging by the project. I then charge by the hour for requests outside the original scope, which happens all the time. It also keeps them in check on their requests. Depending on the client, I require a third or half up front for a project. //snip Ditto, Ditto and Ditto Bret Find a contractor or find a contract at Tech-Temp.com - Original Message - From: Chris Wesley [EMAIL PROTECTED] To: php-gen [EMAIL PROTECTED] Cc: Gerard Samuel [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 12:45 PM Subject: Re: [PHP] Paying Job... On Thu, 25 Jul 2002, Gerard Samuel wrote: Do you charge by the page, script or by the hour (that would be nice). It's a tough thing to do, but consider charging by the project. You'll find a most equitable payment/compensation when you establish up front how valuable the project is to the client, and how valuable your time and services are. I find this is the best way to put a client at ease [(s)he knows what (s)he's paying ... no surprises, unless they're client-inspired], and you can concentrate on the project instead of how to make the site fit into X pages or how to justify or fit the project into Y hours. Get a couple small projects under your belt, just for the learning experience, and you'll get a good feel for a process that suits your needs. Things I did to get become acquainted with a good process: - did small projects for free, just to prove (to the client and myself) that my code and I can survive - did small projects for an undervalued price to get my foot in the door of potential future paying clients, to build a decent portfolio, and to assemble a good list references - did projects just because I love to code and solve problems, not for the cash. (YMMV. There are a myriad of reasons I employ this philosophy, that I won't preach about here.) Typically what I try to establish up front: - the total project specs - terms on deliverable(s) (how many stages a project is divided into) - a reasonable estimated time of delivery for each stage, and the project as a whole - documentation requirements - feature-creep clauses (it's such a pain to have the project change in mid-development ... you have to watch your own back for this.) - maintenance requirements (to fix bugs for X number of days/months after delivery ... NOT FOR ADDING FEATURES: do that in separate projects) - compensation/fees - payment terms (25% upon delivery of stage1, 100% by stage3, etc.) For FREE projects ... just leave off the last two points. Even though a project may be done pro bono, it should still be relatively chaos-free. A chaotic project done for free will probably just end up being a waste of time for your client, and mostly for you. g.luck, ~Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I didnt understand the how work pathtovars, a php gpl script
http://www.domain.com/var1_value1/var2_value2/ would look like this: http://www.domain.com/script.php?var1=value1var2=value2 there would be a document name script.php followed by the ? then variable and value pairs var1=value1 separate each variable/value pair with an ampersand Hope this helps Bret Find a contractor or find a contract at Tech-Temp.com - Original Message - From: David D [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 2:24 PM Subject: [PHP] I didnt understand the how work pathtovars, a php gpl script Hello, I was looking for a query_string wrapper for web crawlers I found pathtovars : http://www.phpclasses.org/browse.html/package/561.html English is not my native language. I didnt manage to use efficently this script ! Even with the sample ! I don't know how to map url ? How to generate an url ? How to retrieve variables values in the current url ? I found this script with a very little doc. Is there someone that can have a look and try to explain me simply ? For eg : How to retieve : $var1 = value1 $var2 = value2 with that on that script http://www.domain.com/var1_value1/var2_value2/ Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Warning: e-mails being harvested from PHP newsgroups
Ha! They can have at it! If they are stupid enough to spam a bunch of programmers and network people they deserve what they get. Now it's *against the law* to harass spammers by tracking their malicious activity back to it's source and sending virus after virus : ), or hacking into their servers to delete things : ). So I would *never* recommend that course of action. But tempers do flare from time to time. and there's no telling what a bunch of aggravated programmers can/would do... Bret - Original Message - From: Cord Schneider [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 11:04 AM Subject: [PHP] Warning: e-mails being harvested from PHP newsgroups Hi all, I just wanted to warn all those who post to the PHP newsgroups, and/or PHP HTML forums, that spammers are harvesting email address from these groups. If you want to avoid ending up on some spammers list, please consider using a SpamTrap (throwaway email address) or maybe a service like Sneakemail (http://sneakemail.com). Kind regards, Cord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tales of brave Ulysses?
I received it to, but it *did* trigger my virus warning. Just deleted and moved on : ) Bret - Original Message - From: Alberto Serra [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 15, 2002 5:52 AM Subject: [PHP] Tales of brave Ulysses? ðÒÉ×ÅÔ! I just got this. Not sure whether it's the stupidest commercial I ever seen or a new virus (as you see in the headers it stepped thru the check with no warnings), or just a joke. I'd say it's a joke, as nobody would add anything clearly stating itself as decrypt-password.exe, but I will not make any experiments on my box. Looks like it didn't have any effect on a text-based email running on a Linux box, but those of you running Windows might be careful in opening any such stuff. I'll never have HTML enabled on email mainly because of this. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× --- From - Mon Jul 15 12:20:25 2002 X-UIDL: 2828 X-Mozilla-Status: 0011 X-Mozilla-Status2: Return-Path: [EMAIL PROTECTED] X-Sieve: cmu-sieve 2.0 Return-path: [EMAIL PROTECTED] Envelope-to: [EMAIL PROTECTED] Delivery-date: Mon, 15 Jul 2002 07:54:27 +0300 Received: from avcheck by mail.gala.net with antivirus-scanned (Exim 3.22 (GalaMail)) id 17TxsR-0001za-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:54:27 +0300 Received: from ns.gala.net ([194.183.188.131] helo=relay.gala.net) by mail.gala.net with esmtp (Exim 3.22 (GalaMail)) id 17TxsQ-0001z6-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:54:26 +0300 Received: from public-smtp.telkom.net.id ([202.134.0.35] helo=out-mta2.plasa.com) by relay.gala.net with esmtp (Exim 3.35 (GalaMail)) id 17TxSm-0004ON-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 07:27:58 +0300 Received: from smtp.telkom.co.id ([192.168.17.123]) by out-mta2.plasa.com with esmtp (Exim 4.02) id 17TxMG-000tqP-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:21:12 +0700 Received: from web3.telkom.co.id ([192.168.17.34] helo=AFRICA) by smtp.telkom.co.id with smtp (Exim 4.02) id 17TxFT-0005yx-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:14:11 +0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Your password! MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=L1db82sd319dm2ns0f4383dhG Message-Id: [EMAIL PROTECTED] Date: Mon, 15 Jul 2002 11:14:11 +0700 X-Envelope-To: [EMAIL PROTECTED] --L1db82sd319dm2ns0f4383dhG Content-Type: text/html; Content-Transfer-Encoding: quoted-printable HTMLHEAD/HEADBODY FONT COLOR=#FF bATTENTION!/bbrbr You can accessbr bvery important/bbr information bybr this passwordbrbr bDO NOT SAVE/bbr password to diskbr use your mindbrbr now pressbr bcancel/bbrbr (Charindra P)/font/BODY/HTML iframe src=3Dcid:W8dqwq8q918213 height=3D0 width=3D0/iframe --L1db82sd319dm2ns0f4383dhG Content-Type: audio/x-midi; name=decrypt-password.exe Content-Transfer-Encoding: base64 Content-ID: W8dqwq8q918213 here it followed the decrypt-password.exe code... @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Development Tools
When I'm at home, however, I typically use Macromedia Homesite 5 (simply because it has PHP syntax highlighting). Ditto (except v4.0) I like it for support of lots of languages. Javascript, ASP, PHP, CFM etc. Bret - Original Message - From: Martin Clifford [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 11:46 AM Subject: Re: [PHP] Development Tools I use the almighty Notepad for my coding. When I'm at home, however, I typically use Macromedia Homesite 5 (simply because it has PHP syntax highlighting). I tried using PHPEdit, but I thought it was horrible. It was buggy, and annoying. PHP Master Editor is VERY good, and you can probably find it on downloads.com. I've never tried Zend, but it does look very interesting. And since they created the engine for PHP, you would think they're editor would be god, but that, unfortunately, doesn't seem to be the case very often. HTH Martin Mark McCulligh [EMAIL PROTECTED] 07/10/02 11:42AM I am looking for a good Development tool to write my PHP in and was wondering what people are using out there. I have been looking at Dreamweaver MX, Zend Studio 2.5 and phpEdit. I know UltraDev 4 well with ASP, but the new MX now supports PHP. This MX/PHP any good? Zend looks good with the integrated documentation and debugging tools. Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Development Tools
snip/ but often find myself using an editor on the code created by these. So to answer the question above ... nothing beats a good editor. Jay /snip Hence the happy medium of Homesite. acts as a basic text editor but allows some support for coding when needed/wanted. IMHP Bret - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Uwe Birkenhain' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 12:21 PM Subject: RE: [PHP] Development Tools [snip] What makes development tools better than a good editor? (serious question) [/snip] Over the course of time (I have been writing code for 25 years, many languages, some compiled, some not) I have found that the most useful tool in the arsenal is a good editor with no more features than line numbering. When I find myself in times of code trouble (props to John Lennon) I will almost always turn to an editor first. I have used many, and for my money where web application development is concerned, Programmers File Editor (no longer supported) http://www.lancs.ac.uk/people/cpaap/pfe/ for Windows, and vi or pico on *nix are the editors of choice. I do use PHPedit from time to time because, while it is buggy, it does do syntax highlighting and matches brackets and other curly thingies well, which is especially helpful when viewing large scripts with lots of code. I have and continue to use some IDE's for certain projects (Visual C++, UltraDev for ASP code) but often find myself using an editor on the code created by these. So to answer the question above ... nothing beats a good editor. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Development Tools
I have found dreamweaver intolerable due to it's writing the code. I usually write 8 lines to do something that DW takes 24 to do. (I'm all about slim code:) ). Also, the naming conventions that DW uses for functions and variables is too long and for me makes no sense. (Always MM_* with no rhyme or reason.) I like variable and function names that are short and refer to what they do/represent for readability. I have also spent a great deal of time 'fixing' DW JavaScript that does not work. Not a confidence builder.. Bret - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 3:39 PM Subject: [PHP] Re: Development Tools For those of you using HomeSite, is it worthwhile for me to install it if I already have DreamWeaver 4 on my PC? Someone said HomeSite is basically DreamWeaver without the UI interface so I'm wondering if it's possible to use DreamWeaver the same way I would Homesite. Jesse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I am out of pleases now get me off this fun list!
I hope everyone is sending him one of those, too, to clutter up his email even more. Well absolutely... would not want to be rude and ignore the request ;) - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Zac Hillier [EMAIL PROTECTED]; Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 9:55 AM Subject: Re: [PHP] I am out of pleases now get me off this fun list! My favorite part is that he requests a read receipt for every one of these messages. I hope everyone is sending him one of those, too, to clutter up his email even more. ---John Holmes... - Original Message - From: Zac Hillier [EMAIL PROTECTED] To: Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 9:16 AM Subject: Re: [PHP] I am out of pleases now get me off this fuckin list !!! Maybe everybody should send him a copy then he'll get the message? Maybe To remove your address from the list, just send a message to the address in the ``List-Unsubscribe'' header of any list message. If you haven't changed addresses since subscribing, you can also send a message to: [EMAIL PROTECTED] or for the digest to: [EMAIL PROTECTED] For addition or removal of addresses, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete the transaction. - Original Message - From: Erik Hegreberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 2:15 PM Subject: [PHP] I am out of pleases now get me off this fuckin list ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is their a jobs mailing list?
Hi all, I posted a message about a FREE technical job site I just finished as a direct result of looking for that kind of site and not finding it. I had asked for feedback and got 1 response about a mis-spelled word (which I fixed). The site may charge eventually but for now It is free to post profiles, and Job opportunities. I would very much like it to showcase PHP and MySQL as that is what I do, and The entire site is done in them. I will still welcome any input, but the site is there and free for use Thanks Bret - Original Message - From: Peter J. Schoenster [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 07, 2002 11:39 PM Subject: [PHP] is their a jobs mailing list? Hi, I was here first: http://www.php.net/manual/en/faq.mailinglist.php#faq.mailinglist.guideline Before you post to the list please have a look in this FAQ But I found nothing about a jobs mailing list. I'm really a Perl programmer and we have jobs.perl.org which has a list which does a really good job. A person from Houston, TX asked me if I knew of any PHP people in Houston. I advertise on Google and Overture as a developer for hire. I don't sugget he post to this list as I'm not sure of the etiquette and I've never seen jobs posted to this list; I know they are accepted heartily on the mod_perl list. Anything simple but effective like this site for PHP? http://jobs.perl.org/ Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is their a jobs mailing list?
The site is called: tech-temp.com Bret
[PHP] Feedback please
Hi All.. I have recently completed work on a PHP, MySQL driven job site for Technical employment. Geared toward independent contractors and the people who hire them. If any one has the time, could you look at: www.tech-temp.com and give feedback either on the list or privately? I *think* I have covered all the bases but could use the input Thanks, Bret
Re: [PHP] How do I hide download link ...
Start a session on the sign in page, and check for the session before displaying the page with the link. The it does not matter if the link page URL is distributed. In my situation; 1. Sign in page goes to a validation script. 2. Check for form fields. (1st of Nested loops) if (isset($formField)){//check for form. 3. If form, validate user and start session $result = mysql_query(SELECT * FROM ok_users WHERE password = $password AND user_ID = $user_ID); if (mysql_num_rows($result) 1){// No user so exit if (mysql_num_rows($result) 1){// Too many users (bad data) so exit else{ //valid user session_start(); // register the variables you need or want session_register(SESSION);. 4. redirect to page with download header (Location: download.php); must be in the session start snippet or get too many headers errors / }//end start session code }//end check for multiple match }//end check for form (and other actions) else{//if no form. print (You must login to access this page); } 5. On download page check for session. ?php session_start(); // *** session check*/ if (!session_is_registered(SESSION)){ print (You must Log-In to access this page\n); print (a href='sign_in.php'); print (Click here to Log In); } else{ body of page } Now if you access the download page directly, you only get a link to sign in... Does this help? Bret - Original Message - From: Fargo Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 4:14 PM Subject: [PHP] How do I hide download link ... Hi, my customers go through a password authentication to access a link on my site to download a file. I want to prevent the distribution of the location of this file on my server by making it hidden. Is there any php function(s) that could assist in doing this? All I can think of so far is storing the original file in a hard to guess directory, when a authenticated customer goes to download it, send them to a script that copys the original file to a temp directory, they download the file in the temp directory and then run a cron every so many minutes to clear out the files in the temp directory. If anyone has any ideas, examples or a way to improve on what I came up with please respond. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with forms data please
I need to send the data from a form without taking the surfer to that page. ie: form on ' formPage.php ' with form name='foo' method='post' action='../newUser.php' but leave the user on ' formPage.php' Any way to do that? Thanks