Re: [nyphp-talk] Can't do PHP 'exec' for an rsync command via web server

2012-06-24 Thread Rolan Yang
try specifying the entire path to /usr/bin/rsync in your exec command line. ~Rolan On 6/24/2012 8:51 AM, David Roth wrote: I'm developing a small utility web page to run on my own server which is running CentOS 6.2 and Apache. PHP 5.3.3. I tried using from PHP the exec function and also system

Re: [nyphp-talk] PHP graphics programming for a template

2012-04-07 Thread Rolan Yang
On 4/6/2012 4:26 PM, David Roth wrote: I want to be able to take the output of this on a USB flash drive (or DVD-ROM) to a professional printer that is using 11 x 17 color laser printers. I want to make this as easy as possible for the printer, so they just open the file for printing and go, with

Re: [nyphp-talk] Next Meeting Poll and PHP Usage Statistics

2012-04-03 Thread Rolan Yang
Logo is in the top 20??? On 4/3/2012 7:32 PM, Hans Zaunere wrote: Hi all, First, a couple of interesting stats/surveys: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://venturebeat.com/2012/01/11/what-developers-will-be-doing-learning-lis tening-to-in-2012-survey-result

Re: [nyphp-talk] Virtualbox as a dev environment

2011-09-02 Thread Rolan Yang
I've been using Centos Xen VM's on a dedicated development machine and it's been working well without any problems. When I'm done with the client's job, just shut down the instance and store away the disk image on a backup. Didn't do any good when we lost power for half a day after the hurrican

Re: [nyphp-talk] Virtualbox as a dev environment

2011-09-02 Thread Rolan Yang
What's your thought on using XAMPP instead of creating a bunch of virtual machines? You could run two instances of apache (php ver 5.2 & 5.3) on different ports and have both reference the same web directory and mysql. I have found XAMPP to be slow (umm, my laptop is a Dell D410 Pentium Mobile

Re: [nyphp-talk] Writing daemons in PHP

2011-04-09 Thread Rolan Yang
I use this: http://pear.php.net/package/System_Daemon and it's worked flawlessly for the past 2 years. ~Rolan On 4/7/2011 5:38 PM, Gary Mort wrote: Just wondering what, in general, others are using for writing daemons in PHP. Just code it directly using libevent... or using a framework suc

Re: [nyphp-talk] PHP & Google Calendar

2010-11-15 Thread Rolan Yang
On 11/15/2010 1:34 PM, Christopher R. Merlo wrote: On Mon, Nov 15, 2010 at 1:30 PM, Chuck Reeves > wrote: Are you getting any php errors? Nothing. It just stops dead. I've seen PHP die like that when a required library or dependency is missing. Dump your

Re: [nyphp-talk] What's a good way to handle this?

2010-05-10 Thread Rolan Yang
On 5/6/2010 11:36 AM, Anthony Papillion wrote: ... Now, the TweetFree Network Servers maintain a network block list. So every time the Relay Servers send a post, the Network Server checks to make sure the client that the relay is posting for isn't blocked from the network. If it is, it says no

Re: [nyphp-talk] Undelete mysql records

2010-04-15 Thread Rolan Yang
Nicholas Hart wrote: I'm now trying to restore missing data from a prior date using binlogs but cannot seem to get this to load. Anyone familiar with restoring data from binlogs? Yes. Did you look at this? http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html ~Rolan _

Re: [nyphp-talk] PHP IDE, Hudson, Netbeans

2010-02-08 Thread Rolan Yang
Gary Mort wrote: On Mon, Feb 8, 2010 at 7:54 PM, Rolan Yang <mailto:ro...@omnistep.com>> wrote: Gary Mort wrote: Motivated by all the positive feedback on Netbeans discussed here, I downloaded it last week and will dip my feet into it over the next few days. Are

Re: [nyphp-talk] PHP IDE, Hudson, Netbeans

2010-02-08 Thread Rolan Yang
Gary Mort wrote: Well...after a foray of reviewing IDE's I come to the conclusion that I STILL loathe Eclipse with a passion. .. I've been using jEdit ever since Jayesh Seth made the recommendation a few years ago. It has the support of many useful plugins such as the php parser, proje

Re: [nyphp-talk] email system for website

2010-01-04 Thread Rolan Yang
Paul A Houle wrote: Matt Juszczak wrote: The term "REST" is an early predictor for project failure a year or two down the road. More than once I've been the guy who cleans up the mess after somebody ignorantly blunders into using "REST" for something that it's not appropriate for. Well, w

Re: [nyphp-talk] email system for website

2010-01-04 Thread Rolan Yang
Matt Juszczak wrote: store everything in a db. don't be too fussy about the design. you're just crunching emails. That's the thing. I do want to store everything in the DB! Since we have so many front ends, I'd much rather control all the emailing with triggers and stored procedures (and a

Re: [nyphp-talk] cheapest and best way to server 1TB worth of data per month

2009-12-24 Thread Rolan Yang
Konstantin K wrote: Hey guys, I need some expert advice. Let's say I have about 2MB of static data (images, css, js) and I need to serve about 1TB worth of it per month to users who visit this site. I know that means at least 500,000 page views per month (not considering browsers caching image

Re: [nyphp-talk] Firefox 3.5.5 not rendering PHP

2009-12-06 Thread Rolan Yang
Néstor wrote: People, I have installed lamp & wamp several times in the pst and for the last 24 hours I have been trying to install wamp and php using FF will ask me " What should I do with this file" Annoying because I follow the steps that I remembered and it did not worked. Then I lo

Re: [nyphp-talk] Bad ISP Problem: Need New Domain Registration, Management and Hosting Service

2009-09-04 Thread Rolan Yang
Michael B Allen wrote: Hi All, I have a problem. I cannot get the ISP I registered my domains with to reply to my support requests. Initially they did respond to my request 1and1.com has fairly cheap domain registration and basic DNS functionality. They keep your credit card on file so bu

Re: [nyphp-talk] Simple MySQL web based form creator?

2009-08-25 Thread Rolan Yang
If your customer is using windows, check out MySQL-Front. ~Rolan Matt Juszczak wrote: I have a single table, with about 20 fields, 2 enum's, etc. I'm looking for a simple tool that can wrap a form around this table and allow people to update/edit it. I feel phpmyadmin would work but it's wa

Re: [nyphp-talk] Barcodes

2009-08-06 Thread Rolan Yang
Many barcode reading devices act as a keyboard emulator via USB or PS2 connector. I have written keyboardless touchscreen and barcode scanner kiosk apps based on apache/php. One simple trick is to create a form on the page and have a body onload javascript running that does a constant "focus"

Re: [nyphp-talk] Trying to decide between MDB2 and PHP PDO

2009-06-26 Thread Rolan Yang
Hans Zaunere wrote: Hi, I work with Kevin. Our application needs to run on both mySQL and Oracle so we are looking for portability. We currently are using PEAR DB and we are looking into moving to MDB2 or PDO so we thought it would be a good idea to If you actually do

Re: [nyphp-talk] [0T] Verizon FIOS -- comments?

2009-05-15 Thread Rolan Yang
Cablevision isn't bad.. it depends on the density of "high use" customers in your area. I noticed several times this winter, when the neighborhood was snowed in, the throughput went to crap. All other times my downstream is about 13Mbps, upstream 1.5Mbps. They block port 80, 443, 1080 and 25,

Re: [nyphp-talk] Chat software

2009-03-25 Thread Rolan Yang
Aaron Fischer wrote: Heya, does anyone have any experience or recommendations for chat software? I'm looking for something to host a group of chatters in a room, probably around 20-40 chatters at a time. I had something a year or so ago, I think it was called FlashChat, and it was a php/flas

Re: [nyphp-talk] generate random unique 8-digit number

2009-03-10 Thread Rolan Yang
Dan Cech wrote: ... If you're trying to generate relatively short pseudo-random IDs to thwart guesses, then the simplest method is going to be the previously-recommended approach of generating a random number and checking if it has already been used, rinse and repeat until you find one that has

Re: [nyphp-talk] the stale V in MVC web apps

2009-03-04 Thread Rolan Yang
John Campbell wrote: On Wed, Mar 4, 2009 at 12:10 PM, David Mintz wrote: The problem is with intervals, is that if someone's connection flakes out for a minute or two, you end up doing tons of ajax calls that all overlap causing wacky behavior. The point of tail recursion is to wait for the

Re: [nyphp-talk] equal (==) vs identical (===) and casting

2009-02-23 Thread Rolan Yang
Konstantin Rozinov wrote: Hey guys, Some more questions. 1. Is there a significant speed difference between the equal operator (==) and the identical operator (===)? Should I even be concerned about this? For example, if I know a variable will be of type INT 100% of the time, and I pass it to

Re: [nyphp-talk] slow php

2009-02-13 Thread Rolan Yang
Nicholas Hart wrote: I have a php 'cron job' script which is inserting some records. It uses arrays to store 12 field records along with several nested loops in which it tests various currency values from a separate 4 field table and sorts them to get the lowest one for insert into a new 4 fi

[nyphp-talk] Zend Puts PHP on IBM System i

2009-02-11 Thread Rolan Yang
Might be old news? Just saw it on my eweek feed this morning. http://www.eweek.com/c/a/Application-Development/Zend-Puts-PHP-on-IBM-System-i/?kc=NANANANANAFAKETRACKINGIDHIFROMNYPHP or http://tinyurl.com/bdu3gb ~Rolan* * ___ New York PHP User Group Comm

Re: [nyphp-talk] [OT] blacklist monitor recommendations?

2009-02-06 Thread Rolan Yang
Allen Shaw wrote: We're seriously considering bringing our mass email communications in-house for various reasons and want to stay on top of any spam reports against us. Can anyone recommend an email blacklist monitoring service you've had good results with? Thanks, Allen Search for "rbl l

Re: [nyphp-talk] [Slightly OT] Profiling Site Response Time

2008-12-16 Thread Rolan Yang
Nasir Zubair wrote: Hi All, Can anyone suggest an offline program or utility to profile response time for an intranet website during various visits. I'm trying troubleshooting a peculiar problem with one of our intranet websites in IE6. The site is not fully functional in non-IE browsers (I

Re: [nyphp-talk] Run PHP script as service (every 10 seconds)

2008-12-16 Thread Rolan Yang
hafez ahmad wrote: Dears, I need to run PHP script every 10 seconds , I can do that with (while true) and sleep(10), but I need to the script always run on Linux machine as service. Any Ideas? While not as elegant as some of the other suggestions above, you could run "screen" to create a v

[nyphp-talk] reports/graphs realtime mashups

2008-12-09 Thread Rolan Yang
This is somewhat, but not completely related to the "Report with line breaks" thread. I discovered yesterday that Google spreadsheets allows importing external data into the tables with the "=importData(URL)" function. Thought it would be cool to import some weather and home automation data w

Re: [nyphp-talk] Report with line breaks

2008-12-09 Thread Rolan Yang
Kenneth Downs wrote: Néstor wrote: When creating a report how do you guys handle line breaks? When printing a table text table cell how do you do so that part of text is not on one page and part on another? Thanks, Have you tried fpdf (fpdf.org) to make things in PDF format? I tried making

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Rolan Yang
Randal Rust wrote: On Wed, Dec 3, 2008 at 3:43 PM, Joseph Crawford <[EMAIL PROTECTED]> wrote: Like I said have a php script serve it as a download. Doing it this way allows you to make sure that the user logged in. Thanks, Joe. It worked perfectly! This question and solution see

Re: [nyphp-talk] OT - need pointer to JavaScript discussion list

2008-11-19 Thread Rolan Yang
Michael Southwell wrote: Can anyone point me to a JavaScript discussion list that is as good as this one? I am stuck on a dropdown-toggle visibility issue that is extremely flaky. I think at one time or another we've all encountered the css drop down rollover flicker problem with IE browser.

Re: [nyphp-talk] OT: Evite-Like Service

2008-11-17 Thread Rolan Yang
Recently something similar was thrown into my lap. I set up a single web page describing the event, a paypal product button at the bottom to make payment, and configured the paypal to redirect to a confirmation page back on my site afterwards which requested additional information from the atte

Re: [nyphp-talk] OT - sound on HTML page

2008-11-13 Thread Rolan Yang
I believe it's because your FF on linux doesn't have the mp3 extension tied to a plugin, but most everything seems to play .au files. ~Rolan Néstor wrote: Actually, the boss wants the page to autoload the sound in the background. The code I showed in my original post does work on IE. Since i

Re: [nyphp-talk] OT - sound on HTML page

2008-11-13 Thread Rolan Yang
convert it to a .au or .voc file. Néstor wrote: Hi people, This is not an PHP question. It is a question about auto load sound on an html page. I am using the following inside an html page but it works on IE but it does not work in FF. FF in rhel5 wants me load a plugin and FF on W2K does

Re: [nyphp-talk] OpenID is what?

2008-10-30 Thread Rolan Yang
[EMAIL PROTECTED] wrote: Sorry, didn't mean to downplay the seriousness of this hack, the badguys were server 10s or thousands of porn images for several days before the site ran out of bandwidth and shut down. That was the only way I discovered that they were there. I had not idea that my site w

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-19 Thread Rolan Yang
[EMAIL PROTECTED] wrote: Update: I just discovered that the "robot" that is accessing and spamming my sites it XRumer. It hacks into gmail, gets a valid gmail account then it registers and spams as many Forum sites as it can find to "plant" illicit links so it can exploit google's PR system. Any

Re: [nyphp-talk] accessibility issue, how to solve?

2008-10-17 Thread Rolan Yang
[EMAIL PROTECTED] wrote: Hello NYPHP, I know I am going to get some heat for this one but here goes... Let me preface this by definitively stating that I am categorically NOT making a request for information on how to hack into a system. This is a legitimate programming problem that I am trying

Re: [nyphp-talk] Timeouts ... how to get around it?

2008-10-14 Thread Rolan Yang
[EMAIL PROTECTED] wrote: Hello NYPHP, I have an array that has 13000 email addresses. For now, its in the script but will be in a database table eventually. It is a list of known bad guys. I have a database table with 9000 records and one of the fields is ... Anyone have a better idea

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-06 Thread Rolan Yang
Put the timestamp of when the page was first served as a hidden variable in the form. Then compare it to the time when it was submitted (after completed). ~Rolan [EMAIL PROTECTED] wrote: Hello NYPHP, Greetings to All, I need to time how long it takes to fill out a registration form, from

Re: [nyphp-talk] [OT] Voting

2008-08-27 Thread Rolan Yang
Peter Sawczynec wrote: What is it? How come we can financially, socially and medically network the entire world including gadgets and games and calendars that instantly recall and matrix all your comments and whatever, everything you and all your dispersed friends care to catalog. But we cannot

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-19 Thread Rolan Yang
David Mintz wrote: I heard somewhere that it does cost to reference/de-reference for no good reason, and that if youi're not going to write to it, pass it by value not reference. But I don't remember when or where, so don't ask me support that with things like facts or sources. -- David Mi

Re: [nyphp-talk] Email Pain

2008-08-09 Thread Rolan Yang
(Margaret) Michele Waldman wrote: The oddest thing is happening. Sometimes newlines are ignored. Some purists would cry "blasphemy", but if you're emailing html form data, you might want to consider sending that data as an html formatted table within the email. ~Rolan ___

Re: [nyphp-talk] PHP Bcc Headers

2008-08-04 Thread Rolan Yang
Some mail servers will send out email using a default envelope like "[EMAIL PROTECTED]" (even though the email header reads "From:[EMAIL PROTECTED]"). The receiving mail server will see this domain as bogus and reject the email as spam. If this is done at the start of the smtp session, the reci

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Rolan Yang
Hrm.. another web 2.0'ism is about to be born. We already have phishing, vishing (voip based phishing). I'd like to coin the term scishing (scour.com phishing?). Scishing - (ski'-shing) : The act of fooling an internet user into divulging their web mail login/password during registration, then

Re: [nyphp-talk] string function

2008-07-03 Thread Rolan Yang
Dan Cech wrote: Urb LeJeune wrote: An unknown string,its format is: y="tnk81|98.8$|yuhj78t|32.6$|tris78y|459.78$|." .. You could write this a little more simply as: $parts = explode('|',$y); $cnt = count($parts); for ($i = 0;$i < $cnt - 1;$i += 2) { echo $parts[$i] .' '. $parts[$i+1]

Re: [nyphp-talk] mysql slow Internet connection trickery

2008-06-30 Thread Rolan Yang
Allen Shaw wrote: Patrick May wrote: The odd issue is connectivity. If there is no network connectivity to the primary mysql server, how can one use transactions to manage synchronization? In fact there /is/ connectivity. It's just bone-numbingly slow and occassionally non-existent. Not sur

Re: [nyphp-talk] Old subject new day - Pear Captcha

2008-06-14 Thread Rolan Yang
[EMAIL PROTECTED] wrote: hello rolan, so did you make any code change or just had freetype2 installed? ~rob ps - thanks for replying to my post :) Unfortunately, I was in a rush to get it done and didn't take notes. I do remember now that the true type fonts were not installed on the machine

Re: [nyphp-talk] Old subject new day - Pear Captcha

2008-06-13 Thread Rolan Yang
Rolan Yang wrote: I managed to get it working, but IIRC had to upgrade gd lib. ~Rolan Correction: the freetype2 lib was not installed on the machine by default and was required. ~Rolan ___ New York PHP Community Talk Mailing List http

Re: [nyphp-talk] Old subject new day - Pear Captcha

2008-06-13 Thread Rolan Yang
[EMAIL PROTECTED] wrote: hello, i realize this is an old thread, but was anyone ever been able to get the pear captcha working? here is the original thread from last year, but it seems like no one had a resolution to it. http://lists.lists.nyphp.org/pipermail/talk/2007-August/023134.html i

Re: [nyphp-talk] 3D ANIMATION

2008-06-04 Thread Rolan Yang
selyah wrote: Hello: This request is a bit off topic, but i was wondering if anyone know or have information on a 3-D program that can be downloaded from the net and also have a easy to follow tutorial. I have to combine a web page and an animation/rendering of solids into a projec. Thanks in

Re: [nyphp-talk] MySQL Syntax questions

2008-05-28 Thread Rolan Yang
Steve Manes wrote: Kristina Anderson wrote: Tim, with regard to the second query, I wanted the entire row not just the ID...do I need to do two queries to get that? Or a subquery: SELECT * FROM table_foo WHERE id = (SELECT MAX(id) FROM table_foo); select * from table_foo order by

Re: [nyphp-talk] submitting two forms with one button - possible?

2008-05-23 Thread Rolan Yang
tedd wrote: At 8:27 AM -0700 5/22/08, Kristina Anderson wrote: Kristina: Another consideration is that PayPal provides a link back to your "Thank You page" -- so why not send your variables through PayPal via a GET, such as: thankyou.php? From there you can pick them up and put them in you

Re: [nyphp-talk] submitting two forms with one button - possible?

2008-05-22 Thread Rolan Yang
As an added protection, you should verify the Paypal payment with IPN (https://www.paypal.com/ipn) before sending off any products or authorizing memberships. ~Rolan Kristina Anderson wrote: http://www.captain.at/howto-ajax-form-post-request.php This AJAX stuff is a little hairy, I'm going t

Re: [nyphp-talk] submitting two forms with one button - possible?

2008-05-22 Thread Rolan Yang
Kristina Anderson wrote: How hard is #1? I have two situations that I have to handle in this manner (one with two forms and one with two submits of the same form and then the second form, to check if user account exists). Can you point me to some examples? Not that hard. It's actually s

Re: [nyphp-talk] submitting two forms with one button - possible?

2008-05-22 Thread Rolan Yang
One way would be to do an ajax call to submit the form #1 data to your database, then upon acknowledgment of success, do a regular form submit to payal (I'm guessing the user is supposed to be redirected to paypal to complete the transaction). The other way would be to do a regular submit, pas

Re: [nyphp-talk] need help with simple ajax demo project

2008-05-21 Thread Rolan Yang
Michael Southwell wrote: My brain is fried; I need help with a simple AJAX demo. The intent is to show the color of some wines upon mousing over their names. You could probably accomplish the same task without the use of AJAX, by embedding the answer in the same page and using a rollover javas

Re: [nyphp-talk] Trapping JS errors in function called onSubmit

2008-05-06 Thread Rolan Yang
which one are you using? FormChek.js is easy and hasn't let me down yet. ~Rolan ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participatio

Re: [nyphp-talk] About Formalizing an Enterprise PHP and the PHP+ Developer

2008-04-22 Thread Rolan Yang
Peter Sawczynec wrote: So what would be wrong if we just agreed as a professional group to use these above entities as our bedrock standards. We use the Zend cert, the Zend IDE/framework and officially sanction Php.net and Sourceforge.net/PEAR as the defacto outlets of help/reference and code.

Re: [nyphp-talk] Serial communication in Mac OS X

2008-04-17 Thread Rolan Yang
Corey Fogarty wrote: Hi All, I am trying to connect to /dev/tty.USA28Xb2P1.1 which is a Keyspan USB to Serial adapter. I have had success using the screen utility, #screen /dev/tty.USA28Xb2P1.1 but I would like to use PHP to create a web interface to a microcontroller. Hi Cory, With wha

Re: [nyphp-talk] OT: webmaster test

2008-04-14 Thread Rolan Yang
André Pitanga wrote: I really dislike cool stuff... Here's my designer question: When should a hyperlink *not* be blue and underlined? why? When the background page is blue... ~Rolan ___ New York PHP Community Talk Mailing List http://lists.nyphp.or

Re: [nyphp-talk] PHP and MySQL Connections

2008-04-11 Thread Rolan Yang
Randal Rust wrote: We have been having some performance issues on one of our larger sites, and I'm trying to figure out the best way to go about fixing them. . On a related note, our main issue is that the site keeps slowing down and we are getting a 'Too Many Connections' error from MySQ

Re: [nyphp-talk] Website Data Encryption tools

2008-04-06 Thread Rolan Yang
Joe Leo wrote: Still, I wonder why you want to do that? Do you distrust your hosting company that much? In that case I'd look for a different provider. Well, I am just looking into a solutions to encrypt data. The question as to why I would want to do that is not the question - B

Re: [nyphp-talk] Passing JAVASCRIPT variables to PHP

2008-04-05 Thread Rolan Yang
I'm see a lot of odd code in the past few posts. $'s mixed in with javascript and attempts to blend client side javascript variables with server side php variables. Misleading code that simply wont work. Here's a working example for ya: test var date = new Date(); var d = date.getDate(); var

Re: [nyphp-talk] Form not working as expected

2008-03-13 Thread Rolan Yang
Rolan Yang wrote: [EMAIL PROTECTED] wrote: Hello and Warm Greetings, I have a form that I have been asked to modify and thought it was a straight forward and simple MOD but it seems to have some a condition that I didn't count on when I agreed to make the change and I need some a

Re: [nyphp-talk] Form not working as expected

2008-03-13 Thread Rolan Yang
[EMAIL PROTECTED] wrote: Hello and Warm Greetings, I have a form that I have been asked to modify and thought it was a straight forward and simple MOD but it seems to have some a condition that I didn't count on when I agreed to make the change and I need some advice. =instructions for formattin

Re: [nyphp-talk] displaying error messages from PHP 5.2.4

2008-03-10 Thread Rolan Yang
You shouldn't have to reboot. Restarting (or stopping, then starting) apache should do the job. ~Rolan alexey tkachenko wrote: Thanks for your help! It seems like what I needed was a reboot of the system. The changes I made to php.ini file were applied after I rebooted, so I'm able to see

Re: [nyphp-talk] Detecting send email bounces

2008-03-05 Thread Rolan Yang
If you examine the manual and the code in phplist (http://www.phplist.com) , that will offer some good ideas on email bounce management. ~Rolan Cliff Hirsch wrote: How do you detect bad email errors? Pear mail provides errors messages, but most deal with things like bad formatting, sendmail

Re: [nyphp-talk] What does this code do?

2008-03-03 Thread Rolan Yang
-- rada -- wrote: Hi all, I am trying to implement a user-input scrubbing function, more specifically, normalize linebreaks from windows/mac to unix. I can just do preg_replace but I saw this piece of code somewhere and don't understand it enough to even know what to google. supposedly conv

Re: [nyphp-talk] PHP/MySQL environment problem??

2008-02-29 Thread Rolan Yang
Might not be your exact problem, but I once had some issues porting of the the data from one machine to another. The auto increment was failing with a "duplicate index" error, but I could not find any duplicate indices. There was, however, a 0 value in the indexed column, which upon removal, fi

Re: [nyphp-talk] javascript calling php function

2008-02-22 Thread Rolan Yang
csnyder wrote: Right, you can't trust the referer if you fear scripted attacks. John, is that what you were talking about, or was it something more abstract and seo-related? I was picturing people using the open redirect to take advantage of your page rank by causing your site to link to theirs

Re: [nyphp-talk] Thank you NYPhP -- Kerbeaz launches!

2008-02-14 Thread Rolan Yang
Cliff Hirsch wrote: NYPhP: I have been holding off on this, waiting until things are “perfect”, but finally realized that could be an eternity. So... Kerbeaz went live on Monday. I thought the hard part was behind me, but now the true adventure begins — building traffic. ... Many thanks,

Re: [nyphp-talk] escaping

2008-01-23 Thread Rolan Yang
Dropping all submissions with "http://"; will eliminate a good amount of spam, however you will end up with thousands of robot submitted messages which contain nonsense messages. I'm not sure how anyone benefits from this, but I see it a lot. Ultimately, you will probably resort to putting a ca

Re: [nyphp-talk] Thanks in advance

2007-12-26 Thread Rolan Yang
chad qian wrote: I get the following source code from internet.It can upload the image but it can't display the image on the web page.There is always "x" sign .Any idea?Thanks a lot! Here is the source code: . Here's the latest picture fix the image tag ~Rolan _

Re: [nyphp-talk] Question about random selection

2007-12-10 Thread Rolan Yang
Anthony Papillion wrote: Hi Rolan, Thanks for the input. Works like a charm. I was approaching the problem from the wrong angle. Thanks again. you should probably randomize the entire list and do an A->B,B->C,C->D,D->E, etc.. instead of pairing up because by the 4th or 5'th gift, people

Re: [nyphp-talk] Question about random selection

2007-12-10 Thread Rolan Yang
Anthony Papillion wrote: Hello Everyone, I have a 'secret santa' type application that I designed for a Yahoo Group my wife owns. The way it works is that people go to the site, enter their email address and are randomly matched with some other person. The two filtering criteria for the mat

Re: [nyphp-talk] Error from PHP system function

2007-12-01 Thread Rolan Yang
Nelly Yusupova wrote: Here is the command that I'm trying to execute. system ("/usr/bin/wget -P/tmp --post-data 'subscribees=$email&adminpw=$password&send_welcome_msg_to_this_batch=0&send_ notifications_to_list_owner=0' http://www.emdrhap.org/mailman/admin/$list/members/add";, $returnval);

Re: [nyphp-talk] GoogleMapAPI

2007-11-15 Thread Rolan Yang
Steve Manes wrote: Gary Mort wrote: Steve Manes wrote: I could as well but I don't like mucking with third-party libraries or APIs. Murphy's Law says that after I turn this software over to the client someone will download an updated API six months from now and lose the fixes. Why not exte

Re: [nyphp-talk] GoogleMapAPI

2007-11-14 Thread Rolan Yang
http://code.google.com/apis/maps/documentation/services.html#Traffic_Overlays ~Rolan Steve Manes wrote: Is anyone using this API? I'm testing this PHP class for possible use on a project. I've the basic functionality working but, for the life of me, I can't figure out how to get it to displa

Re: [nyphp-talk] call command-line script asynchronously

2007-11-10 Thread Rolan Yang
If you're on a unix system, you can throw it into the background process like this: `/somewhere/out/of/the/www/tree/backgroundscript.php $yourparameters > /dev/null &`; print "it's probably still running, but we're done here"; ?> ~Rolan Marc Antony Vose wrote: I'm confused. Which function

Re: Re[2]: [nyphp-talk] Injection Attack, any ideas?

2007-11-07 Thread Rolan Yang
You might want to log all the submitted POST data for a few days in case the spam spider comes around again. Add something like this to the start of your script: $fp=fopen('/tmp/'.time().'-'.uniqid().'-'.$_SERVER['REMOTE_ADDR'],'w'); fputs($fp,print_r($_REQUEST,TRUE)); fclose($fp); ~Rolan On Nov

[nyphp-talk] Good one today on xkcd

2007-10-10 Thread Rolan Yang
http://xkcd.com/327/ ~Rolan ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_particip

Re: [nyphp-talk] Scripting to get a backup of your current MySQL database.

2007-10-03 Thread Rolan Yang
If you want to do a database backup with no downtime, replicate to a second mysql machine. You can stop the slave and perform a dump. Then after the dump is complete, it will sync back up upon restart. If you're really tight on hardware resources, you might even be able to start a second instan

Re: [nyphp-talk] MTA commands

2007-09-22 Thread Rolan Yang
Urb LeJeune wrote: Does anyone have any experience with MTA commands being injected in a forms input fields which are exploited by spammers? In case there was one bogus email address in the To: field and then many multiple email address (coma separated) which all received the same message.

Re: [nyphp-talk] Class name conflict with Pear Pager

2007-09-13 Thread Rolan Yang
Rolan Yang wrote: Cliff Hirsch wrote: Shana Tovah: I have a class called Pager. Bad name. This conflicts with Pear Pager. It is used in a zilion places so changing the name would be a pain. Not a big deal, but a pain. To date, I have just been deleting or renaming the Pear Pager class, but

Re: [nyphp-talk] Class name conflict with Pear Pager

2007-09-13 Thread Rolan Yang
Cliff Hirsch wrote: Shana Tovah: I have a class called Pager. Bad name. This conflicts with Pear Pager. It is used in a zilion places so changing the name would be a pain. Not a big deal, but a pain. To date, I have just been deleting or renaming the Pear Pager class, but every time I “refres

Re: [nyphp-talk] Minimal overhead

2007-09-02 Thread Rolan Yang
You might be able to create a modified XBitHack Apache module which, essentially checks to see if the a file has the "x" (execute) bit set under permissions. If so, then it parses the file, if not, then it displays as a regular html file. This is normally used for server side includes, but you

Re: [nyphp-talk] Why can't I create a second directory?

2007-08-30 Thread Rolan Yang
Gary Mort wrote: I have a complex little install script that creates directories and subdirectories and copies files. It keeps failing on one providers server. I boiled down the install script problems to the fact that it cannot create a subdirectory after creating a directory. I lost some

Re: [nyphp-talk] Any Subversion and/or Tortoise SVN experts out there?

2007-08-13 Thread Rolan Yang
What does the "-wu" do? ~Rolan Dmitry Ananyev wrote: You better install console version of svn tools and just use # svn diff -x -wu /path/to/trunk > mydiffs.txt -- WBR, Dmitry Ananyev [EMAIL PROTECTED] -

Re: [nyphp-talk] Having problems with PHP or maybe something bigger...

2007-07-24 Thread Rolan Yang
Rob Marscher wrote: It looks like the problem is that you're not closing the form properly: echo "\n"; not echo "\n"; So the browser is probably getting confused on where to send the form submission. -Rob Good eye on that one. ~Rolan ___

Re: [nyphp-talk] shell_exec security pitfalls?

2007-07-18 Thread Rolan Yang
Dell Sala wrote: Rolan Yang wrote: Whenever I need to store credit card data, I encrypt it with GPG before storing it in the database. The private key file is not to be stored on the same machine and should definitely not be accessible by the web server! That's always been my understa

Re: [nyphp-talk] shell_exec security pitfalls?

2007-07-18 Thread Rolan Yang
Dell Sala wrote: Hi all, I'm doing some research on using GPG from PHP to encrypt sensitive data that will be stored server-side. I came across an old but good article: ... Quoted from the article: A second pitfall is in the use of PHP's shell_exec() statement. Since you are executing a she

Re: [nyphp-talk] Online POP3 and SMTP account creation using PHP

2007-07-15 Thread Rolan Yang
csnyder wrote: On 7/14/07, Rolan Yang <[EMAIL PROTECTED]> wrote: This will probably get you a C- grade, but it works :) Wow, we're giving the webserver sudo permissions now? You don't need system accounts in order to have mailboxes. Use a mail server that allows virtua

Re: [nyphp-talk] Online POP3 and SMTP account creation using PHP

2007-07-14 Thread Rolan Yang
Shadab Wadiwala wrote: Hello friends, I m working on a minor project using PHP/MySQL in my college. I have been assigned a tough task to do. The project is a web-based email service on the lines of Yahoo Mail and Gmail. Actually I need to create an online POP3 account and an SMTP account of

Re: [nyphp-talk] Online POP3 and SMTP account creation using PHP

2007-07-14 Thread Rolan Yang
Shadab Wadiwala wrote: Hello friends, I m working on a minor project using PHP/MySQL in my college. I have been assigned a tough task to do. The project is a web-based email service on the lines of Yahoo Mail and Gmail. Actually I need to create an online POP3 account and an SMTP account o

Re: [nyphp-talk] Questions to ask at a job interview?

2007-07-08 Thread Rolan Yang
tedd wrote: At 8:05 PM -0400 7/7/07, David Krings wrote: Ben Sgro (ProjectSkyLine) wrote: Hey again, So, I had a string of interviews over the last two weeks. I have just hired one candidate that I believe will be a good addition to our company. I ended up using the Joel Spolsky (or whoeve

Re: [nyphp-talk] Web contact form -- email or database?

2007-06-27 Thread Rolan Yang
I usually email. AND append the data to a local ascii file. On 6/27/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: Appreciate thoughts on contact/help forms on a web site: Options: 1. Directly send email to admins 2. Store form in database for online viewing by admins Thoughts? Email is simplest

Re: [nyphp-talk] DB Schema for storing revision history?

2007-06-27 Thread Rolan Yang
Jake McGraw wrote: Hi All, this is my first post, so if this is in the wrong section please let me know. I'd like to know if anyone has developed a database schema for storing the revision history for a plain text document by multiple users. Basically, I'm talking about a wiki, but something muc

Re: [nyphp-talk] Sessions / Cookie question

2007-06-17 Thread Rolan Yang
[EMAIL PROTECTED] wrote: ... The expectation is that if the member comes back after the time out, then they would be required to login again but the login code does a check for an active cookie and not a session and allows the user to access the site apparently creating a new session. I hope

  1   2   >