[PHP] Gotta learn asp.net...

2005-11-09 Thread Joseph Szobody
*sigh* I'm a hardcore PHP programmer.. I've been using it for over five years now, and would consider myself fairly advanced. I have a project where I'm being forced to do some ASP.NET development, which I've never touched. I need to learn it fast. I'm thinking there must be some other folks

[PHP] Re: Beginner amazes self with image gallery script!

2004-02-07 Thread Joseph Szobody
My question is, I'm updating the pages by creating a url back to the same script with some differing $_REQUEST settings for the page number (PAGE=2) and on a smaller screen this bumps the page back to the top. Is there a better way to do this with some kind of update image function without

[PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Joseph Szobody
Folks, I'm taking some user input, and creating a folder on the server. I'm already replacing with _, and stripping out a few known illegal characters (', , /, \, etc). I need to be sure that I'm stripping out every character that cannot be used for a folder name. What's the best way to do

[PHP] Re: Email forwarding from SendMail to PHP

2003-07-28 Thread Joseph Szobody
See if this helps: http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/ Joseph Donald Tyler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone know of a place to get some good tutorials on how to forward email from SendMail to PHP for processing? -- PHP General

[PHP] Re: PHP code beautifier?

2003-07-17 Thread Joseph Szobody
Jacob, http://www.tote-taste.de/X-Project/beautify/ http://www.semdesigns.com/Products/Formatters/PHPFormatter.html http://www.trita.com/features/php-beautifier.jsp http://www.bierkandt.org/beautify/ http://www.trita.com/ http://www.beautifier.org/ This should get you started. I think

[PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Joseph Szobody
Folks, I'm just getting ready to built a webserver this weekend and was planning on using RH9, so this thread especially caught my eye. The website that the server will be hosting is pretty simple, some basic DB queries, no special Apache modules. Is Apache 2.0 still not a good choice for

[PHP] Re: Ticketing System?

2003-06-25 Thread Joseph Szobody
Andreas, I haven't used this one, but it looks really good. http://www.innovatehelpdesk.com/ Joseph Andreas Cahen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello List :) Is there any usefull ticketing system (Hotline/Support/etc.) written in PHP? I have found some on

[PHP] Re: Securing PHP code

2003-06-25 Thread Joseph Szobody
A safer architechture would be to use two machines. One to act as the Web server and the other to process transactions. The Web server would take the orders and request the transaction server to process them. The transcation server can only be accessed from the Web server. Nobody should

[PHP] Re: Are there any PHP functions for creating graphs and/or charts?

2003-06-24 Thread Joseph Szobody
http://www.aditus.nu/jpgraph/ Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to get the date of this Saturday all the time?

2003-06-24 Thread Joseph Szobody
date(Y-m-d,strtotime(next Saturday)); That would give the Saturday for next week (2003-07-05). Try this Saturday or just Saturday. date(Y-m-d,strtotime(this Saturday)); // Currently returns 2003-06-28 Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: ?xml version=1.0 encoding=UTF-8

2003-06-23 Thread Joseph Szobody
I believe this is because the PHP engine thinks that the ?xml is a PHP opening tag. 1. Turn off short PHP tags (short_open_tag in php.ini) -OR- 2. Use this instead: ?php echo '?xml version=1.0 encoding=UTF-8?'; ? Joseph Doug Essinger-Hileman [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: MAIL( ) - Send mail using another SMTP

2003-06-21 Thread Joseph Szobody
Here is a class that you could use. http://phpmailer.sourceforge.net/ Joseph Chinmoy Barua [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Everybody, I don't have sendmail/qmail on my web server where i installed PHP. But I want to send mails from web server using PHP.

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Joseph Szobody
For (2) you could even build an array, object, etc. if you need to store several values and use serialize() right before setting the cookie, and unserialize when you retrieve the cookie. Joseph Henning Sittler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1. Set a big value in

[PHP] Re: Creating graphs with PHP?

2003-03-20 Thread Joseph Szobody
Dennis, Try this: http://www.aditus.nu/jpgraph/ Joseph Denis L. Menezes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello friends, Is there a possibility to create graphs on a web page using PHP? I have loooked through the PHP manual but cannot find anything. Thanks very much.

[PHP] Re: Force refresh of graphic - how?

2003-03-12 Thread Joseph Szobody
Mark, Why not call the makepic.php image, passing in an URL parameter that is always different. This makes the browser think you are always calling a different image, and won't cache it. IMG SRC=makepic.php?opt1=abcopt2=defnocache=?php echo time() ? Joseph Mark Wilson [EMAIL PROTECTED] wrote

[PHP] Re: HTTP_REFERER security implications?

2003-03-10 Thread Joseph Szobody
Tom, This will completely break in AOL. An AOL user's referer changes all the time. Joseph Tom Woody [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am working on a simple authentication script, where the user submits a login and password, the credentials are checked and the user

[PHP] Re: Get Browsers time zone

2003-03-06 Thread Joseph Szobody
Jonathan, Only way I can think of is to display the time using Javascript. This way it will be displayed according to the users computer clock. Of course, if the computer clock is wrong... Joseph Jonathan Arnold [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a way to

[PHP] PHP OOP design question

2003-03-04 Thread Joseph Szobody
I have several web projects that are all database driven. I have recently been diving into OOP, and rewriting a lot of procedural code in OOP. I have a design question about handling the MySQL connection. I have a mysql() class which handles all my queries, automatic inserts/updates, etc. Just

Re: [PHP] crontab

2003-03-04 Thread Joseph Szobody
I want to run /var/www/backup_mysql.php Are you just trying to backup your MySQL database? If so, check this out: http://members.lycos.co.uk/wipe_out/automysqlbackup Edit a view configuration variables (db to be backed up, path, etc), throw it in /etc/cron.daily, and forget about it. I does

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
You need to use exec, system, etc. Here is a script that I recently put together. It backs up the database, and pushes it as a download to the user. ?php $filename = db_backup_ . date(n-j-y); header(Content-Disposition: filename=$filename.sql); header(Content-Type: application/force-download);

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
u. that should read: exec(mysqldump -c -q database -u user -ppassword, $sql); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting number of pages in a multi-page .TIFF file

2003-02-24 Thread Joseph Szobody
Can PHP tell how many pages there are in a multi-page .TIFF file? The tif file would be on the local machine. Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
Thanks Justin. I should have clarified this is going to be used on an Intranet, where I can be sure that every browser will be IE 6 with javascript enabled, and no firewalls between the webserver and the clients. That's why I felt more or less safe with depending on HTTP_REFERER and

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
But... it seems like this will be used in an intranet where everybody is using WinXP so there shouldn't be any problem ;) Actually, it still won't work under Windows. Even on a pop-up window, you can right click, view properties, copy the page address, open a new browser window, paste in the

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
...press CTRL-N - there you go, a new window, pointing to the same page, with the addess bar showing exactly where the page is. I use this method quite often :) Furthermore, disabling right-click does NOT disable the Context Menu key (you know, the one in between the Windows

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Joseph Szobody
Justin, I have no intenetion of implementing such work-arounds. I simply wanted to know if a popup can determine the Referer. With PHP, that answer is no. The continuing discussion has been helpful to clarify what one 'can' and 'cannot' do, not that I'm actually going to use all these methods!

[PHP] displaying a TIFF file

2002-11-12 Thread Joseph Szobody
Folks... when I execute the following code, I get a big black nothing. I think it's the right size, but all black. No image is showing up. What gives? Header(Content-type: image/tiff); $filename = image.tif $file = fopen($filename,rb); fpassthru($file); fclose($file); Any help would be

[PHP] can a popup window get the page referer?

2002-11-12 Thread Joseph Szobody
Folks, I have a popup window that I would like to put a mild security constraint on. I don't want others to be able to directly type in the address of this page, modify url parameters, etc. I only want this page accessible if it was triggered from a link on my own website, then I know I can

[PHP] Re: Flash and PHP?

2002-10-29 Thread Joseph Szobody
http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html http://www.phpbuilder.com/columns/hill20011214.php3 Neil [EMAIL PROTECTED] wrote in message news:20021029140955.29707.qmail;pb1.pair.com... Does anyone use this? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: flash - php

2002-10-05 Thread Joseph Szobody
Couple good places to start... http://www.phpbuilder.com/columns/hill20011214.php3 http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html Joseph Zeljko Bozic [EMAIL PROTECTED] wrote in message

[PHP] extract domain name from a URL

2002-10-02 Thread Joseph Szobody
://www.google.com 2) http://www.google.com/ 3) http://www.google.com/search?sourceid=navclientq=evil+microsoft ... would all give me http://www.google.com Could anyone give me a hand? Thanks! -- : Joseph Szobody : Computers are like airconditioners: They stop working properly if you open windows. -- PHP

[PHP] Re: extract domain name from a URL

2002-10-02 Thread Joseph Szobody
Never mind. Didn't realize PHP had the parse_url function. Got it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Searching a db

2002-09-23 Thread Joseph Szobody
Joshua, I learned a ton by reading this tutorial. See if it helps... http://www.zend.com/zend/tut/tutorial-Ferrara.php Joseph Joshua E Minnie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey all, I am looking for a way to search a MySQL DB based on a

[PHP] Specify authentication for SMTP mailserver?

2002-09-22 Thread Joseph Szobody
I'm trying to send mail on a Windows machine using PHP. I have made the necessary corrections in the php.ini file for the SMTP server address, and the sendmail_from, my problem is that my SMTP server require authentication. How do I tell PHP to provide this? Thanks! Joseph -- PHP General

[PHP] Running a PHP script automatically?

2002-09-21 Thread Joseph Szobody
Folks, I have a PHP script that needs to be executed automatically every 15 minutes. I have the option of doing this on a RedHat linux box, or on Windows 2000 Server. How would I do this (on either platform) and which would be easier? I believe somehow I could create a cron job on linux, but

[PHP] Re: Dynamic HTML Email

2002-09-20 Thread Joseph Szobody
Mike, Here is how I send an HTML e-mail. Say I have a contact form with the values $name, $email, and $message. The form submits to say. process.php. ? // process.php $message = stripslashes(nl2br($message)); $date = Date(F d, Y h:i a); $body = pfont color='#99' face='Arial,

[PHP] Displaying PDF file

2002-09-12 Thread Joseph Szobody
I've made a website for a real estate appraiser, who wants to put all his appraisals for his clients online. I have stored these PDF documents in a folder outside of the webserver folder, for security. When a client successfully logs in and clicks the link to biew the PDF, I have a PHP script

[PHP] Re: Displaying PDF file

2002-09-12 Thread Joseph Szobody
Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the Header(Content-type: application/pdf); line? I tried using readfile() keeping the header. When I click the link to the PHP script that should show me the PDF, the IE status bar says something like

[PHP] Re: Displaying PDF file

2002-09-12 Thread Joseph Szobody
Ok I think it's working now. When I click the link going directly to the PHP script, it's displaying the PDF file in the browser appropriately. Exactly what I want. Now some of these PDF docs are so big, they could take a while to show up if a client is on a slow connection. So now I

[PHP] AOL problem with remote IP address

2002-08-28 Thread Joseph Szobody
page, he's redirected to error.php?err=2. For some reason, the IP address appears to be changing. Is this a known issue with AOL? Is the IP really changing from page to page? That seems weird. Any way around this, or must I stop using this security approach? Thanks, -- : Joseph Szobody

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Joseph Szobody
But I wouldn't be relying on a remote IP for anything... they're too unreliable. This wasn't meant to be a fool-proof security solution to begin with. None of these 'protected' pages contain anything real sensitive. However... what are some good security procedures (besides an encrypted

[PHP] '#' character breaking the URL string

2002-08-27 Thread Joseph Szobody
this? Is this something I must simply check for and strip out? What other characters must I worry about? As you can see, I'm already putting everything through htmlspecialchars() and addslashes(). Thanks -- : Joseph Szobody : Computers are like airconditioners: They stop working properly if you open windows

[PHP] Re: '#' character breaking the URL string

2002-08-27 Thread Joseph Szobody
Thanks. That's what I needed. Joseph Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have a 5-step (5 page) process in which users must answer various questions. Each page passes along the data to the next page, at the same time capturing the data from the

[PHP] PHP and multiple page .tiffs

2002-08-03 Thread Joseph Szobody
Is there a way for PHP to look at a local multiple-page .tiff file and find out haw many page it has? Thanks, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing multiple List/Menu values

2002-07-10 Thread Joseph Szobody
access all these different values in 'list'? If I try to echo '$list' it only show *one* of the selected items from the list. I've tried treating it as an array ($list[0], $list[1], etc), but that doesn't work either. How do I get at the different values? Thanks, -- : Joseph Szobody : Computers

[PHP] can I call a variable... using variables?

2002-07-09 Thread Joseph Szobody
So here's what I'm trying to do: I have a form submitting dozens of variables called var1, var2, var3, .. and on and on. I want to check the value of each of these variables: for($i = 1;$i 100; $i++) { if($var$i 0) echo Yup. $var$i is greater than 0; } I get a parse error when

[PHP] Re: can I call a variable... using variables?

2002-07-09 Thread Joseph Szobody
Thanks folks. Worked like a charm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] my PHP scripts hangs over a simple error

2002-07-08 Thread Joseph Szobody
Folks: I just setup a Redhat/Apache/PHP box for testing purposes as I develop some PHP websites. The weird thing, is that the server takes FOREVER to respond when I make a very simple error in the code. On other servers it comes up with a 'Parse Error' message immediately, but not so with

[PHP] Re: if statement

2002-07-08 Thread Joseph Szobody
try this: if($type==test1 || $type==test2 || $type==test3){ Joseph [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is it possible to do something like this all on one line. What I need is if any one of these are true then run the script