Re: [PHP] file() ignores PHP tags

2007-09-23 Thread lists
Yes, that is a little better. Thanks for that! But now all the PHP is removed. Is there some other header to send, in order to get PHP in my output? Could you send the code you are having? If you are doing it properly all should be shown, it will not remove anything. The file() don't parse

Re: [PHP] Using a variable for include statement

2007-09-11 Thread Tom Ray [Lists]
Jeff Benetti wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just getting into PHP. If there is a better place to ask noobie questions then let me know. I want to use the include statement but I want to pass the name of the file rather than hard code it. It

Re: [PHP] Public Announcement

2007-09-11 Thread Tom Ray [Lists]
Greg Donald wrote: On Tue, 11 Sep 2007, Stut wrote: You didn't say what you have against mod_rewrite. I'll bet you mod_rewrite can parse a request and send it to the right script faster than your PHP implementation. Has anyone tried Nginx? The rewrite rules are a bit more clear than

[PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
I swear, it was just working last week! Well, a while ago, on another machine. You get the idea. Here's the deal... PHP 5.1.6 and MySQL 5.x on FC6 fully patched. 1. A simple page with a call to phpinfo() works fine. 2. A barely more complicated page also works fine, in that it throws an

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
comex wrote: On 8/24/07, Linux NG/Lists [EMAIL PROTECTED] wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. Well, I suppose I should say Doh! but even when I get rid of the @, I still get a blank

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
Well, I suppose I should say Doh! but even when I get rid of the @, I still get a blank page - no errors, and no database, either! A followup - I'm taking this over to PHP-DB since it's now database-centric, I think. This still fails: $db = new mysqli( But this works $conn =

Re: [PHP] Open Source Job Wanted system

2007-08-09 Thread Tom Ray [Lists]
Joey wrote: Has anybody had any experience with any open source Job posting systems out there? Thanks! I've written one myself. It allows for job seekers to put up a profile, resumes, etc and for employers to post their jobs and search resumes. Full search ability on both sides. They

Re: [PHP] need mysql_ping when using mysql_pconnect?

2007-08-08 Thread lists
Quoting Richard Lynch [EMAIL PROTECTED]: On Tue, August 7, 2007 3:58 am, [EMAIL PROTECTED] wrote: Just becasue you create a persistent connection it can still go down, can't it? So therefore using mysql_ping inside of scripts with plenty of idle time is useful? It can still go down, for

[PHP] ORM framework suggestion

2007-08-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello All, I'm thinking of using an ORM framework for a new project. From my research, I've found Propel and Doctrine (of course, there might be others). Would anyone suggest what ORM framework they're using right now? I am experienced with OOP and am just looking for a framework to speed things

[PHP] need mysql_ping when using mysql_pconnect?

2007-08-07 Thread lists
Hi, Just becasue you create a persistent connection it can still go down, can't it? So therefore using mysql_ping inside of scripts with plenty of idle time is useful? /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating watermarks

2007-08-04 Thread Tom Ray [Lists]
I've been learning how to use PHP with the GD Library and I've managed to learn quite a bit. I can upload, resize, create thumbnails and I'm even able to create security code images for forms. My question is how do I create a Watermark on the image? I want something transparent but still

Re: [PHP] Creating watermarks

2007-08-04 Thread Tom Ray [Lists]
); imagejpeg ($sourcefile_id); } imagedestroy($sourcefile_id); imagedestroy($watermarkfile_id); } ? Regards, Greg http://www.psmdev.com http://www.psmdev.com/ On 8/4/07, *Tom Ray [Lists]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've been learning

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Tom Ray [Lists]
Stut wrote: blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Network Solutions are expensive, GoDaddy are cheap. That's all there is to it. In my

Re: [PHP] Which PHP-Editor to use?

2007-08-02 Thread Tom Ray [Lists]
Merlin wrote: Hi there, I have worked now for several years happily with homesite 4.5, but now it looks like I have to switch to another system as homesite will not run without admin rights on a XP machine. What editors do you use? Do you have any recomendations on a special one? I have

Re: [PHP] Bizarre array create error

2007-07-31 Thread Tom Ray [Lists]
Paul Novitski wrote: At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /*

Re: [PHP] Re: Pirate PHP books online?

2007-07-29 Thread Tom Ray [Lists]
Really, I had expected more mature commentary from the adults on this list. So did I. I expect adults to display morality and values. Really? Have you hung out with many computer geeks? Oh..wait..morality..I thought you said maturity. Pardon me. :) -- PHP General Mailing List

Re: [PHP] Re: Rules of Engagement

2007-07-29 Thread Tom Ray [Lists]
(here, read: I'm fucking exhausted, and yes, I dropped the F bomb). In either case, it's not conducive to a new contributor to have to weed through vacation response messages each time he/she replies to the list. I agree here. I am on many lists and if I'm interested in something then I expect

Re: [PHP] Bizarre array create error

2007-07-29 Thread Tom Ray [Lists]
Ken Tozier wrote: Hi I'm trying to assign two fields of an object returned from a MySQL query and have stumbled upon the most bizarre PHP bug where I can't create two arrays in succession. Here's the MySQL query with two dummy fields to be filled in later select *, 0 as dummy_1, 0 as

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Tom Ray [Lists]
Chris wrote: Richard Lynch wrote: On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote: I'm trying to use PHP to compose an HTML formatted email Don't do that... 3) Spam Assassin doesn't like it either way and tags the email as SPAM for the following reasons: 0.6 HTML_SHORT_LENGTH

Re: [PHP] Hide the real URL

2007-07-27 Thread Tom Ray [Lists]
Eric Butera wrote: On 7/28/07, brian [EMAIL PROTECTED] wrote: Eric Butera wrote: On 7/27/07, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have

[PHP] HTML Email Composing Problem.

2007-07-26 Thread Tom Ray [Lists]
I'm trying to use PHP to compose an HTML formatted email and I'm running into some small problems. 1) When using Content-Type: multipart/mixed during my testing both Thunderbird and Gmail display the plain text and html version of the email and Firefox attaches the html portion as an

[PHP] Upload Tracker.

2007-07-17 Thread Tom Ray [Lists]
I'm a little unsure on how to do this but basically when someone uses a form to upload a file I want to have a popup window come up and so the process in percentage of the transfer. Anyone do this before? Is it possible in PHP or do I need to do it in javascript or a mixture of both? Any

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
Richard Heyes wrote: Every single one of us has been guilty of it at some time or another You can't make that assumption. Sure he can. Assumptions are like opinions which are like ...well you know what I'm getting at...we all have them. And if someone can honestly say they've never stolen

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
Daniel Brown wrote: P.S. - If a rooster lays an egg in a nest under a tree that falls in the woods and no one is there to hear it, how soon will train B meet train A if the wind blows the egg off the top of a barn facing west before sundown? Oh, I know this! Roosters can't lay eggs. --

[PHP] Currency Exchange Database?

2007-06-28 Thread Tom Ray [Lists]
I have a client that's looking to do auto conversions of currency on their reservation payment form. No big deal, I can that part down. However, exchange rates change on a minute to minute basis and they want the program to automatically know the current rates. Is there an online database or a

Re: [PHP] Currency Exchange Database?

2007-06-28 Thread Tom Ray [Lists]
I thought about that but I'm looking to make it seem-less. I just want to get the numbers and do the conversion myself not have the third party do it. I just need an updated list on a daily/hourly basis. Paul Scott wrote: On Thu, 2007-06-28 at 20:44 -0400, Tom Ray [Lists] wrote: I have

[PHP] Creating an executer

2007-05-24 Thread lists
Hi, Summary: 1. I execute script1 that will run in the background (daemon) 2. script1 needs to execute script2 and capture STDERR, STDOUT and exitcode from script2 if script2 exits before SIGTERM is received. 3. If I send SIGTERM to script1 it should kill script2, and write to DB (or log

[PHP] Creating process and do actions with signals

2007-05-23 Thread lists
Hi, I have this script testing.php that I run on a Linux machine thru the command line. In the end of the file you see two cases. One where it is just having a while(true) loop doing nothing, and the other calling an other script that is doing nothing but doesn't exit. When I send

[PHP] define() an array?

2007-04-20 Thread lists
Hi, I thought I could define() and array. However, when I do this: define(THECONSTANT, array(1,2,3)); print_r(THECONSTANT); it prints THECONSTANT and not the array :( according to the manual: bool define ( string $name, mixed $value [, bool $case_insensitive] ) And isn't mixed of any type?

[PHP] php-mysql problem

2007-04-03 Thread Me2resh Lists
hi i need help regarding a sql query in my php app. the query is : $SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes' LIMIT $startingID,$items_numbers_list; i want to sort this query by the number of the repeated EMail counts. can anyone help me with that please ?

[PHP] Rewriting urls

2007-03-26 Thread lists
Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (linux) this works fine. But on my development server it woun't work. I have a file basicpage.php that is located in the webroot. I then have a .htaccess file with the following

[PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I have a working lighttpd + fastcgi + PHP + eaccelerator installation. I have also enabled short tags on the /usr/local/lib/php.ini but I'm having problems with PHP not escaping the short tags. To better illustrate, my phpinfo() file can be accessed at

[PHP] SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script that I have: ./configure --enable-fastcgi --enable-discard-path --enable-force-redirect

[PHP] Re: SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/26/07, Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED] wrote: Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script that I have

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread lists
Quoting Roman Neuhauser [EMAIL PROTECTED]: # [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: #/thepathtophp ?php exec(ls -lrt, $stdout, $exitcode); if($exitcode!=0) { echo Command ls -lrt could not be executed correctly. Exit code: $exitcode\n; } else { echo

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread lists
Quoting Roman Neuhauser [EMAIL PROTECTED]: # [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: #/thepathtophp ?php exec(ls -lrt, $stdout, $exitcode); if($exitcode!=0) { echo Command ls -lrt could not be executed correctly. Exit code: $exitcode\n; } else { echo

RE: [PHP] PHP+MySQL website cache ? Yes/No

2007-02-25 Thread lists
Quoting Martin ZvarĂ­k [EMAIL PROTECTED]: I did a benchmark with and without caching to HTML file and it's like: 0.0031 sec (with) and 0.0160 sec (with database) I know these miliseconds don't matter, but it will have significant contribution in high-traffic website, won't it? Martin -- PHP

[PHP] Classified Ads Script

2007-02-19 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm planning to put up a local classified ads website and I'm looking for an open-source script for this. I've already had some links from Google and Sourceforge but I'd like to get some opinions on people who've already run a classifieds website as to what they're using and

Re: [PHP] OT - Regular Expression

2007-02-09 Thread lists
Hi, I was not having PHP on the machine I am reading this email for the moment. But I tried to use it together with egrep, but it didn't work. Maybe egrep is using different syntax for these lookaheads, but with other tests it has been working same as for preg_match in PHP. As you see

Re: [PHP] Graphs

2007-02-02 Thread Lists
[EMAIL PROTECTED] skrev: I would like to add some graphing capability to an app of mine. What package is recommended? I don't need anything too fancy, just some bar graphs, pie charts, etc. Thank you in advance. Take a look a at: http://www.java2s.com then click on PHP in the menu and

[PHP] Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I store files on the server (.pdf, .doc, .txt, etc.) which are referenced by entries in a database. The filenames are only stored in the database and are not BLOBs. What I'd like to do is to be able to show a web form wherein a user can choose stored documents on the server and

Re: [PHP] Re: Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 1/8/07, Ville Mattila [EMAIL PROTECTED] wrote: Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti: What's the easiest way to go about this? Specifically, what's the easiest way to read a file from the server and send it as an email attachment. I would suggest you to use http

[PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Hi, I am running Fedora Core 6 with PHP 5.1.6 This little snippet will output the file is not writable: if (file_exists($file)) { if(!is_writeable($menu_filename)){ echo the file is not writable; } } else echo The file does not exist; I have set the permissions

RE: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Sorry, it should be $file for both as in the more complex code. So the below code is the code that is generating the file is not writable. if (file_exists($file)) { if(!is_writeable($file)){ echo the file is not writable; } } else echo The file does not exist;

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Some additional information: On the running server I am getting this dumped: audit(1168010361.652:217): avc: denied { write } for pid=2924 comm=httpd name=hcat.log dev=dm-0 ino=8718108 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:etc_runtime_t:s0 tclass=file Anyone?

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Thanks for your answer, It was a bit late because we already disabled selinux just to try, and it worked :) But hopefully this could help someone that bumps into the same problem. On a live webserver, what security issues would disableing the selinux cause? Any? Best regards, Peter

[PHP] Download adds ^M to beginning of file

2006-12-12 Thread lists
Hi, Using the below code to force download works fine on most servers and with most browsers. However it does crash Firefox when I download a specific file, IE works like beauty. File content starts with: #!/sbin/_joor_perl_use Filter::decrypt.. This is the code to force the download:

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu [EMAIL PROTECTED] wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect to local MySQL server through socket

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Chris wrote: Tom Ray [Lists] wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu [EMAIL PROTECTED] wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect

[PHP] Probably a dumb question but...

2006-10-31 Thread Tom Ray [Lists]
I've just installed PHP 4.4.4 with CLI disabled and CGI enabled. With CLI I can find the PHP executable in $prefix/bin/php but with CGI I can't find it. I need the path to the PHP executable so I can install suPHP but $prefix/bin/php no longer exists and all I have in $prefix/bin is php-config

[PHP] Problem compiling PHP 4.4.2 with mcrypt

2006-10-26 Thread Tom Ray [Lists]
I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to

[PHP] User question for PHP

2006-10-19 Thread Tom Ray [Lists]
Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Script timing out.

2006-08-20 Thread Tom Ray [Lists]
I just installed PHP Open Chat and I'm getting an error when I log in about the script being unresponsive. Anyone ever run into this? Or could shed a light as to what causes this error? I've never seen it come up before.I'm running PHP 4.4.2/Apache 2.0.5 -- PHP General Mailing List

[PHP] Max File Upload

2006-08-15 Thread Tom Ray [Lists]
Is there anyway to overwrite the max file upload in php.ini per instant? I'd like to have users controlled on a certain website to have more then average uploads but the site runs on a shared hosting environment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Cookie Question

2006-06-23 Thread Tom Ray [Lists]
I've run into something rather odd with cookies today. I'm working with this admin section on a site and I'm setting a cookie that is supposed to be good for one hour. So in the cookie I have time()+3600 and all was well or that was until someone fired up IE. It seems that IE refused to set

Re: [PHP] GD

2006-06-13 Thread Tom Ray [Lists]
Beauford wrote: I'm using Slackware 10 and installed GD as an install package. I also changed some lines in the php.ini file for GD. Tom: I have no idea how this program works, all I know is that I need it for the captcha program to display the image. I wouldn't even bother otherwise.

Re: [PHP] GD

2006-06-12 Thread Tom Ray [Lists]
Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP,

[PHP] Handling illegal byte sequences in UTF-8 strings

2006-04-21 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello list, We have recently upgraded our database to PostgreSQL 8.1.x which handles UTF-8 more strictly than previous versions. The new version will not allow illegal byte sequences when inserting data. This has caused some errors in our system which inputs data. Basically, what the system does

[PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, Would anyone know a PHP script that can sanitize variables to prevent XSS and SQL injection? Thanks and best regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/29/06, Ray Hauge [EMAIL PROTECTED] wrote: Chris Shiflett has written a number of good articles on the matter. You can find them at: http://shiflett.org/articles The articles in particular would be: Security Corner: Cross-Site Request Forgeries Security Corner: Data Filtering

Re: [PHP] Re: Site bloated by images/method question added

2006-02-16 Thread Lists
I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? Browser Activity on that page (quoted were long

Re: [PHP] define() or $variable for application settings?

2006-02-09 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 2/9/06, Jochem Maas [EMAIL PROTECTED] wrote: bare in mind though that define() is horribly slow (to paraphrase Rasmus) which may be the reason many projects choose to use variables instead. see here: Thanks Chris and Jochem! That should've been my follow up question - which is, if define()

[PHP] define() or $variable for application settings?

2006-02-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello Everyone, I have a config.inc.php file which basically contains all the configuration info that the applications needs (directory/file locations, database credentials, etc). The information there is set using the define() function. However, I've seen some open-source projects which either

Re: [PHP] PHP hosting with multiple domains?

2006-01-30 Thread Lists
On Jan 30, 2006, at 11:13 AM, Richard Davey wrote: I use Pair Networks (www.pair.com I vote Pair too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get text from funky url?

2006-01-20 Thread lists
Hello, I am trying to get xml from AIM's new presence API. The url is unusual, it has quotes in it. Anyone know a way to get the text from this? http://api.oscar.aol.com/SOA/key=PandorasBoxGoodUntilJan2006/resource-lists/ users/*anonymous*/presence/~~/resource-lists/list[name=\users\]/[EMAIL

Re: [PHP] Get text from funky url?

2006-01-20 Thread lists
on 1/20/06 4:37 PM, Philip Hallstrom at [EMAIL PROTECTED] wrote: I am trying to get xml from AIM's new presence API. The url is unusual, it has quotes in it. Anyone know a way to get the text from this? http://api.oscar.aol.com/SOA/key=PandorasBoxGoodUntilJan2006/resource-lists/ users

[PHP] Help taking a string from a file

2006-01-14 Thread Lists
Hello List, I made something work, but probably in the most crappy way possible. My goal is to take just the HTML for the image and link from the Flickr badge js script. This is what I did, please help me do in a better way. I'd appreciate good sources to read to learn to strip stuff

Re: [PHP] CSS Switching

2006-01-09 Thread Lists
http://www.alistapart.com/articles/phpswitch/ or http://www.alistapart.com/articles/alternate/ maybees -dg On Jan 9, 2006, at 10:58 AM, Mike Tuller wrote: I am drawing a blank on how to go about doing this for some reason. I have a page that pulls info from a database, and I want to have a

[PHP] Earlier versions hurt PHP 5

2005-12-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
As a developer, I would love to use PHP 5+ for applications but I am afraid to do so because 90% of web hosting companies do not offer it. The biggest reason that that they do not offer it is because there is little demand for it. The reason why there is little demand for it is that developers

Re: [PHP] CSS and TablesL

2005-12-10 Thread Lists
On Dec 10, 2005, at 7:43 AM, Leonard Burton wrote: That is one thing I notice is convieniently left out of the tutorials. If they don't know about ctl+ why would I waste time reading their tutorial? When I come across a tutorial on replacing tables with CSS I look to see if it mentions the

Re: [PHP] PDF printing under windows.

2005-10-25 Thread Dave Lists
Richard Lynch wrote: On Mon, October 24, 2005 1:48 pm, Dave Lists wrote: I'm generating PDFs under windows using PDFlib and all is easy. What I am wondering though, and google reveals nothing usefull, can I print the PDF to a network printer from windows? I'm presuming to print the file I

Re: [PHP] PDF printing under windows.

2005-10-25 Thread Dave Lists
[EMAIL PROTECTED] wrote: Two (and a half) things: 1. Even though DOS/Windows machines don't have, specifically, /dev/printer or /dev/lpr or whatever the *nix specific is, it does have a LPTx: device According to the page listed below, it may be possible to do: copy /b filename LPTx The /b

[PHP] PDF printing under windows.

2005-10-24 Thread Dave Lists
I'm generating PDFs under windows using PDFlib and all is easy. What I am wondering though, and google reveals nothing usefull, can I print the PDF to a network printer from windows? I'm presuming to print the file I would ahve to use COM and open it under Acrobat? Anyone done this before and

[PHP] COM and MS word.

2005-09-12 Thread Dave Lists
Hi all, I'm using com to acces MS word and building tables: $word-Documents-Add(); \\ Gives me a new doc $word-Selection-InsertAfter(poo, foo, you); \\ gives me one row $word-Selection-ConvertToTable(,); \\ converts the table to a row. What I can't work out is how to change the width on the

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
? Burhan Khalid wrote: On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
, Tom Ray [Lists] [EMAIL PROTECTED] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls

Re: [PHP] Message check then post

2005-08-03 Thread Tom Ray [Lists]
George- Without seeing your code it's hard to say what the problem is. There could be a typo, a missing quote or semi colon. The code snippet of the review page would be helpful. Now when you say it's entering blanks into the database, I'm assuming you have a messageID field in the db that

Re: [PHP] Sessions Issue

2005-07-31 Thread Tom Ray [Lists]
sessions without recompiling? And if I can't, how do I recompile since I used the SuSE cd's and YasT? John Nichel wrote: Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned

[PHP] Sessions Issue

2005-07-29 Thread Tom Ray [Lists]
We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined function errors. This is

[PHP] Curious bug and crash

2005-05-17 Thread Dave Lists
Hi, Tonight I installed a new php5 instance. php5.0.4/apache-1.3.33/mysql-4.1.10. I was getting \Wed May 18 01:59:42 2005] [notice] child pid 1621 exit signal Segmentation fault (11) error whenever I accessed a PHP enable page. I recompiled a few times and removed unnecessary modules. Still

[PHP] IRC from PHP - help

2005-04-01 Thread Mailing Lists
hello i'm a newcomer to this list, fairly experienced PHP programmer but coding mostly for personal web sites or hobbies. I also run an irc chat network and am curious as to if I can integrate php into it somehow. for example: I want to have a webpage that can present a list of all connected

[PHP] session_save_path() issue

2005-03-30 Thread Tom Ray [Lists]
Hey there- I went to install phpopenchat today and when I run the test.php script that comes with, I get this error: *Fatal error*: Call to undefined function: session_save_path() in */path/to/website/htdocs/phpopenchat/config.inc.php* on line *98 *I'm not sure why this is coming up since the

[PHP] Windows COM programming.

2005-02-21 Thread Dave Lists
Hi, Anyone got any good pointers to COM programming in PHP under windows? Searching for com in google has been no help to me :-) http://www.zend.com/tips/tips.php?id=262single=1 and http://www.php.net/manual/en/ref.com.php have been quite helpful, but I'm sure there is much more to see. Dave. --

[PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you are actually inserting/updating into the database. Whether magic quotes are on or not you

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:28 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: Am I correct in thinking Magic Quotes automatically adds quotes to all posted variables, therefore if you are displaying post variables on a form you have to remove the quotes. They are only needed if you

Re: [PHP] Magic Quotes

2005-02-10 Thread Ben Edwards (lists)
On Thu, 2005-02-10 at 13:45 +0100, Jochem Maas wrote: Ben Edwards (lists) wrote: PS phpsc.net seems to be down, or is the domain wrong? er yes, oops. as Jeffery pointed out it should have been phpsec.org. had a brainfreeze sorry. OK, trying to do a function to remove magic quotes from

[PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Ben Edwards (lists)
The following code is passed $_POST to clean magic quotes code out ;_ function remove_magic_quotes( $array ) { foreach( $array as $index = $value ) { if ( is_array( $array[$index] ) ) { remove_magic_quotes( $array[$index] ); } else {

[PHP] Creating a varable with a name held in a string

2005-02-10 Thread Ben Edwards (lists)
I have the following code;_ $sql = select * from text where id= '$id' ; $row = fetch_row_row( $sql, $db ); $img_loc= $row[img_loc]; $text_type = $row[text_type]; $seq

[PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? Ben -- Ben Edwards - Poole, UK, England If you have a problem

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
On Tue, 2005-02-08 at 16:47 +, Chris Ramsay wrote: [snip] I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP?

[PHP] Is there a function to c if a php function exists

2005-02-02 Thread Ben Edwards (lists)
I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month() in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134 I found a reference to this an the web and it

[PHP] PHP SOAP Client question

2005-02-01 Thread PHPDiscuss - PHP Newsgroups and mailing lists
The following wsdl file was provided to me. http://64.122.63.81:5454/IfxService.wsdl I first attempted to genrate the PHP classes using the following code... ?php require_once('SOAP/Client.php'); $wsdl=new SOAP_WSDL('http://64.122.63.81:5454/IfxService.wsdl); // Look at the generated code...

[PHP] Loading all clases always

2005-01-22 Thread Ben Edwards (lists)
I have all my classes in a single directory. I was thinking of automatically loading them all at the beginning of every page. The logic being that the class definitions will get cached (I guess PHP uses filesize/date/time) so the overhead would not be that great. Also at any given time they

[PHP] Problem with hidden form input values

2005-01-19 Thread Ben Edwards (lists)
I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the browser. input type=hidden

[PHP] Re: 404 custom handler on a cgi-wrap PHP - No input specified error

2005-01-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Luke Barker wrote: I have made a 404 custom error handler, using .htaccess in a directory - it is usppoed to route all unfound pages to error.php, and works as expected for .htm and .html pages as well as gifs etc. But ofr .php scripts, e.g /path/to/wrongurl.php it doesnt show my page -

[PHP] Problem with foreatch()

2005-01-16 Thread Ben Edwards (lists)
I have the following Code: foreatch( $_POST[mtype] as $akey = $avalue ) { echo $akey, $avaluebr; } When I run it I get: Parse error: parse error, unexpected T_AS in /var/www/mb/mb_estab_update.php on line 58 58 is the line with the foreatch on it. However if I replace it with:

Re: [PHP] Forms on PHP

2005-01-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Leon Poon wrote: Refer to the following line numbers: 01 ?php 02 // Start of PHP code - Extract values from form. 03 /* Other values read */ 04 $n=$_POST['n']; 05 06 // Pass the data from the form to lightcurve_csharp 07 $command=./lightcurve_csharp $a $i $e $lomega $bomega

[PHP] Forms on PHP

2005-01-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I am new to this or any newsgroup in PHP, as well as PHP itself, so this question is probably rather elementary. I have a form which on clicking on the Submit button calls up a compiled program on the server that is executed and writes output to a file. This file is then read by the PHP

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

<    1   2   3   4   5   6   7   >