[PHP] Using PHP to convert to JPEG

2003-03-01 Thread Jason Paschal
I'm building a site that allows ppl to upload images. PHP was compiled with the GD lib so I'm able to verify all sorts of info about the image for validation. However, I was wondering if there is a way to convert a non-jpeg image to jpeg just by using the GD functions as opposed to using unix

[PHP] Just to ask knowledgable ppl

2003-03-01 Thread Jason Paschal
Not directly PHP related, but I'm building a site in PHP at the moment, so I've been doing a bit of research... I've been on the net for years, coding and surfing and coding. And not always in that order. ;) But only recently have I heard about web beacons, or single-pixel gifs. Seems every s

[PHP] News Content

2003-03-03 Thread Jason Paschal
Anyone know of any pre-built modules or whatnot that provide some news content and/or links and captions via PHP/MySQL that can be integrated with minimal disruption to a site? (A prerequisite being that it acts legally in terms of gathering the info. ;) Thank you, Jason __

[PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Jason Paschal
I've googled for it, but nothing came up. How do I display code on a page without it being executed? i want the page to display HTML code as it would look if you typed it into an editor (not encoded), and the code I want to display is being spit out by PHP. Which functions should i look at? i

[PHP] querying for values inside range

2003-03-18 Thread Jason Paschal
this is an sql syntax question and i know it's not appropriate for this mailing list, but i didn't want to subscribe to another mailing list for something i think one of you might be able help me with. thank you for your patience. i'm building a site utilizing PHP/MySQL. i'm querying a table

Re: [PHP] help with preg_replace please

2003-03-25 Thread Jason Paschal
what that guy said, or use ereg_replace instead of preg_... From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] help with preg_replace please Date: Wed, 26 Mar 2003 14:08:44 +0800 On Wednesday 26 March 2003 13:59, Justin French wrote: > Pa

[PHP] zip code validation/regular expression

2003-06-02 Thread Jason Paschal
Simply trying to use regular expressions to validate a 5 or 5+4 zip code, excluding 0 and 0-. Looked on http://www.regexlib.com, and that's where I found the pattern below, but it doesn't work. The best I can do on my own is two separate regular expressions, one to match a valid zi

Re: [PHP] General question...

2003-06-12 Thread Jason Paschal
ppl, you're missing the point. you keep re-stating his problem. he knows it's not good to make the 3rd party gateway so obvious. he's looking for a way to make it transparent, so it looks like it's actually part of his site. i think there should be a way to do it. maybe use the fsock stuff t

[PHP] Session Vars

2003-06-18 Thread Jason Paschal
setting up some pages to allow users to log in, and store their userID in a session var. for development purposes, i've installed AMP on my windows box. -everything parses fine -register globals is on. problem: session vars do not seem to be carrying over pages, even when i set the session_id to

Re: [PHP] Validating Dynamic Checkboxes

2004-08-07 Thread Jason Paschal
t;)) {<br> alert('Please check at least one edit checkbox before submitting this form.');<br> return false;<br> }<br> }<br> Remember that the above works insofar as it throws up the javascript alert, but then submits the form anyway. I don't see ho

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jason Paschal
didn't realize how much i've been waiting for this post until you sent it. of course, the replies are correct. they're avoiding the spam filters. however, i also read 'thongs' instead of 'thugs'. good to know you're not alone. however, might be an interesting project. just to see what you com

[PHP] Hacker IP and Script

2004-09-26 Thread Jason Paschal
This is of questionable relevance, but I'm sure it can serve to heighten awareness of vulnerabilities for those PHP'ers with similar scripts that involve loading files based upon query string info. We have installed Admin Secure over our PHP-Nuke CMS, and Admin Secure recently sent us an email of

Re: [PHP] Image Resizing

2008-12-21 Thread Jason Paschal
i use imageMagick: http://www.imagemagick.org/Magick++/Geometry.html $command_line = "convert -geometry $width" . "x" . "$height $image_path $thumb_path"; system($command_line, $return_var); if ($return_var == 1) { echo "Thumbnail creation failed! :("; } else { echo "Thumbnail create

Re: [PHP] Passing var from one page to itself

2008-12-21 Thread Jason Paschal
also, you can store info in hidden form fields. on the 2nd page, populate the hidden fields with the data from the first page. when that form is submitted, the hidden field values will get submitted as well. that's not ideal, tho. if you have validation in place between the first and second pag

[PHP] com_event_sink question

2009-01-10 Thread Jason Paschal
Hello all, Can i just create a function for the particular event i want to respond to? Or do all possible events have to be dealt with in your class? If I just make the function for the one event I want to respond to, will the COM's other events stay intact? Thank you, Jason

[PHP] iCal Attachment Format ?

2009-06-23 Thread Jason Paschal
Hi all! Built an appointment scheduling app, but now the client wants it to send out an email with the appt attached in iCal format. I've never dealt with anything iCal before. I searched around a bit, and know that there iCal php scripts available, but I don't need a bunch of rigamarole, just n

[PHP] Temporary Emails - Your Recommendations - An Appeal to the PHP Community

2007-01-01 Thread Jason Paschal
i realize this isn't the appropriate mailing list and i risk being black-listed (flame, defamed, ignored, etc.). i occasionally use temporary emails when registering for forums or to get some shareware (we've all done it, don't give me that look, i have given what i could, when i could) and while

[PHP] Reference Scripts: Imaging Database, Recursion, Age Validation, Reg Ex

2004-07-02 Thread Jason Paschal
Some things crop up while coding that I do not often use, so that I tend to forget the proper way to handle them and end up researching it and going through the same inoperable code again and again until I end up with something that works. Finally decided to host the code on my site and thought

[PHP] Something like strip_tags?

2004-07-04 Thread Jason Paschal
i'd like to be able to strip only one type of HTML tag from a web document (), but to do that with strip_tags(), i'd have to predict every possible HTML tag that might be used, except for the one i want to strip, and put those in the allowable tags parameter. That's why I was hoping someone kne

[PHP] Connect PHP to Remote SQL Server?

2007-10-05 Thread Jason Paschal
Apache and PHP 4.3.9 are on a *nix server and we don't have root access, HOWEVER we can have the tech support perform pretty much any action except re-compile PHP (for which they charge), but I'm hoping i could dynamically load extensions during run-time. I just need to know which extensions. PHP

[PHP] PHP/MySQL CMS for Articles/Studies/Research Papers?

2007-10-18 Thread Jason Paschal
One of my clients is a veterinarian who performs research on the side. He wants to be able to post his papers online and let ppl comment and have discussions. he's not just a dabbler. the university of georgia is (was?) conducting clinical trials for his parvo cure that has already saved hundred

Re: [PHP] Digital Downloads and Scale

2008-01-20 Thread Jason Paschal
this may be common knowledge, but a simple thing for databases that decreased my query time was making sure that you have indices on those fields you use in your SQL. made a world of difference for me. On Jan 20, 2008 2:57 PM, dg <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I'd appreciate an

[PHP] Copy Network Share W/ Diff. Creds To Local Folder?

2008-02-21 Thread Jason Paschal
I'm building a web app on a windows server for a company. an aspect of that requires grabbing a sound file from a network share, which i attempted with a windows copy command via exec(), but PHP needs to be able to pass the authentication credentials. runas requires password interactivity, and i'v

[PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test database, so I installed MySQL. In php.ini, i have: ; Directory

[PHP] Solution For Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
is your extension dir... On Mon, May 7, 2007 6:12 am, Jason Paschal wrote: > I use this setup locally for testing/playing. I recently installed > the > latest and greatest of the AMP collection. > > Apache 2.2.4 > PHP 5.2.2 > MySQL 5.0.37 > > Apache and PHP work fine together

[PHP] PHP - grabbing a thumb from FLV's (function)

2006-12-11 Thread Jason Paschal
i wanted to get my server to grab a thumbnail (video capture) of an FLV using PHP, and ffmpeg-php is not an option (at the moment, can't spare the possible downtime, many money-making sites involved). i installed ffmpeg. Fedora Core 4 users try this: yum install ffmpeg I went a more circuitous

[PHP] Current URL?

2004-11-12 Thread Jason Paschal
Trying to get the current viewed page's URL (query string intact). this works, but infrequently: $url = $_SERVER['URI']; and this ignores the query string: $url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; I'm certain there's a way, that is browser-independent, to get your script to grab

[PHP] Parse Flash File for URLs

2004-12-23 Thread Jason Paschal
how might i accomplish this? phpAds does this when a flash banner is uploaded, and asks if you want to change the URLs it finds. instead of being diligent and scouring the phpAds code for what I'm looking for, was hoping someone out there could offer some tips, suggestions, pseudo-code, etc for h

[PHP] Job Recruitment and Support Ticketing Appz

2005-02-04 Thread Jason Paschal
A friend of mine is looking for one each of the following web appz: 1) Job Recruitment A bundle of scripts that will allow someone to manage job listings and accept applications online. 2) Online Support Ticketing Users submit issues, and they are resolved by the support team. Resolutions may b