[PHP] Re: Miserable escape string problem

2006-10-05 Thread Kae Verens
[EMAIL PROTECTED] wrote: Using this string: {$var1: $var2} of course it doesn't work as some might expect. But why in the name of [whatever, too many to list] doesn't this one below work? \{$var1: $var2} If \ is an escape character why does it also appear in the string output? Why does

[PHP] Re: want to create new format for fckeditor's combo box...

2006-10-04 Thread Kae Verens
Bipul Dobhal wrote: Hi, How can i create my own formats for fckeditors combo box.. I found the line FCKConfig.FontFormats='p;dic'pre;address;h1;h2;h3;h4;h5;h6'; in fckconfig.js file. I think by setting my own format in this line may handle this problem because when I added any

[PHP] Re: Logical OR in assignment

2006-09-28 Thread Kae Verens
Jason Karns wrote: I once saw the use of OR (|) in assignment. $x = $y | $z; Does this use bitwise OR? I'm trying to see if I could use the above expression in place of: $x = is_null($y) ? $z : $y; yes, '|' is bitwise OR, but that is /not/ a ternary operator. it's not safe to just replace

[PHP] Re: reading a remote directory

2006-09-27 Thread Kae Verens
Jay Blanchard wrote: I have to read a directory (on a windows machine) from another box (a linux machine) and I thought that I could set the handle to the IP address of the windows box, but that does not work. Do I have to open a socket or is there another way? the directory must be explicitly

[PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Kae Verens
Steve Walker wrote: [client 80.58.205.38] PHP Fatal error: Call to undefined function: cleanupbynode() in /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/classes/ezco ntentobjecttreenode.php on line 2684 could be that the function cleanupbynode() is defined in the wrong place

[PHP] Re: How would you do this ?

2006-09-26 Thread Kae Verens
Jad madi wrote: I'm building an RSS aggregator so I'm trying to find out the best way to parse users account feeds equally so Lets say we have 20.000 user with average of 10 feeds in account so we have about 200.000 feed How would you schedule the parsing process to keep all accounts always

[PHP] Re: How would you do this ?

2006-09-26 Thread Kae Verens
Kae Verens wrote: every 6 hours, check feeds who's primes are divisible by $i, then add 1 to $i of course, this should be check feeds where $i%(the prime) is 0 Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] manage/modify linux file/folder structure...

2006-09-26 Thread Kae Verens
bruce wrote: i should state... while i've seen different apps... i'm more interested in any that have actually been used by you, or someone you know!! an app that comes with references! try this? http://kfm.verens.com/ I'm biased, though - I wrote the thing. Kae -- PHP General Mailing List

[PHP] Re: Download files outside DocumentRoot Dir

2006-09-25 Thread Kae Verens
Ramiro wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded after user login. I know i can do that using some functions

[PHP] Re: Alternative to FCKeditor

2006-09-25 Thread Kae Verens
John Taylor-Johnston wrote: Anyone know of a good alternative to FCKeditor? Or a decent file uploader? Even after paying for a little help, I get zip for FCK. I need another solution, another editor with an active forum or support, John try my KFM addon for FCKeditor (http://kfm.verens.com/)

[PHP] Re: web browser shows blank page when accessing *.php file

2006-09-22 Thread Kae Verens
Anna Barnes wrote: [Tue Sep 19 15:53:57 2006] [error] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /websites/ical/functions/ical_parser.php on line 494 Not quite sure where to go from here. ical_parser sounds like it is a function which sucks in information from other

[PHP] Re: Fatal error: session_start(): Failed to initialize storage module

2006-09-22 Thread Kae Verens
[EMAIL PROTECTED] wrote: Hi, Fatal error: session_start(): Failed to initialize storage module in /home/vernoncompany.biz/includes/validations.php on line 2 validation.php: #1 ?php #2 session_start(); # ... Two weeks ago I got this essage first time. And since, I'm getting more often. Last

[PHP] Re: storing function names in db and running them as row is output?

2006-09-21 Thread Kae Verens
blackwater dev wrote: First, the example I have is not the real situation, just an example so I don't want to get into why are you doing it like that, etc. Just want to see if it's possible. Basically, I want to store stuff in a text field in a db like this johns name is ucfirst('john adams')

[PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Kae Verens
James Tu wrote: Hi: I'm trying to setup a dev environment using Apache, MySQL and PHP...to develop an application that will go to production. What is the most stable versions of the AMP components should I can install? The production environment will most likely live on a Linux machine. My

Re: [PHP] Frustrated trying to get help from your site

2006-09-19 Thread Kae Verens
Richard Lynch wrote: In brief, to explain a snapshot in layman's terms: that's probably a bad idea. anyone that doesn't know what a snapshot is, probably shouldn't need to know - they are most likely working in a package-based environment (either Windows, or an RPM-based Linux), where it

[PHP] Re: My apologies

2006-09-19 Thread Kae Verens
Howard, Tim wrote: documentation on your site. When I find the solution to my problem, I will be sure to add comments to the appropriate page so that you will not have to endure the ranting of frustrated programmers. of course, you still haven't explained what the problem is, that you are

[PHP] Re: how to get page count when uploading files

2006-09-18 Thread Kae Verens
Jian Fu wrote: I really need help and after going through the help page, I don't know where I can post my question. When I upload a file (word or pdf), how can I know the page counts of that file immediately? Thank you, Jian

[PHP] Re: Quite a basic question

2005-03-08 Thread Kae Verens
already output some text to the browser. Move the header() call above the echo call, and it should work. btw: you should have at least htmlhead/headbody/body/html for any HTML document. -- kae verens http://verens.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: using lists in php and sending

2005-03-08 Thread Kae Verens
. now, assuming you are sending as POST, the next bit builds up $addinfo: $arr=array(); foreach($_POST['rooms'] as $a=$b)$arr[]=addslashes($a); $addinfo=(count($arr))? Chosen Rooms:\n.join(',',$arr): 'No rooms chosen'; hope that's useful -- kae verens http://verens.com/ -- PHP General Mailing

[PHP] Re: Dynamic Drill down menus

2003-09-12 Thread Kae Verens
Dan J. Rychlik wrote: Hello, I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address. I am

[PHP] Re: mail function

2003-09-11 Thread Kae Verens
Deependra B. Tandukar wrote: Dear all, Recently installed PHP in my Linux server. It says, mail function is not enabled? How is turn this on? mail is handled by the server's smtp program. In Linux, this is sendmail, and should be installed by default. Haven't a clue about Windows (I don't do

[PHP] Re: Do you really still pay for bandwidth?

2003-09-11 Thread Kae Verens
Dougd wrote: Do you really still pay for bandwidth? I do. And that makes me very aware of bulky HTML and unnecessary images, which I believe improves my work by forcing me to be efficient. Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem Coding a Tutorial

2003-09-09 Thread Kae Verens
Stephen Tiano wrote: Kae, Excuse my being dense, but I just want to get your meaning with the lines you added. You're saying to substitute if($_POST['submit']=='Sign!') for if ($submit == Sign!) and to try ('$_POST[name]', ... (and not $_POST['name'])? in your code, the first variable was

[PHP] Re: Mail() question

2003-09-09 Thread Kae Verens
Ryan A wrote: Hi everyone, I am trying to create a new newsletter software as the ones i found on hotscripts were just not good enough or mucho $$ which i dont have :-( Have finished the basics but need some advise now. I am using a mysql database instead of text files. I have a table with the

[PHP] Re: Problem Coding a Tutorial

2003-09-08 Thread Kae Verens
Stephen Tiano wrote: ?php include(dbconnect.php); if ($submit == Sign!) if($_POST['submit']=='Sign!') { $query = insert into guest_info (name,location,email,url,comments) values '$name', '$location', '$email', '$url', '$comments')

[PHP] Re: Best Approach for Multiple Options

2003-09-03 Thread Kae Verens
Ralph Guzman wrote: The second approach is to store amenities as a text delimited string for each property in the facilities table. So if a certain property has a pool, fireplace and fitness center, I would have 'pool|fireplace|fitness' in the amenities field. I can then use PHP to explode or

[PHP] Re: GD PHP

2003-08-29 Thread Kae Verens
Mike At Spy wrote: Is there anything special I have to do to enable GD when using PHP 4.3.2? I'm getting an error of: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site37/web/photos/functions.php on line 594 When I use the imagecreatefromjpeg() function. Is it

[PHP] Re: register globals question

2003-08-29 Thread Kae Verens
Merlin wrote: Hello, I am wondering if an application written to work with register globals set to off ($_GET[variable] etc.) would work with a system, where register globals is set to on? yes. Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: parsing domains

2003-08-28 Thread Kae Verens
Collegesucks.Com Mike wrote: Quick question... I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. How can I make it so I aways get the .domain.com no matter

[PHP] Re: converting gif to jpeg

2003-08-28 Thread Kae Verens
Merlin wrote: Hello, I am wondering if it is possible and legal to convert gif to jpeg with php. This would be helpful for clients to upload their logo, since most have it as a gif document. Thanx for any comment on that. ImageMagick can read .gif, so you could filter the uploaded file through

[PHP] Re: Checking for Javascript funcionality

2003-08-26 Thread Kae Verens
Hecchan wrote: noscript meta http-equiv=Refresh content=0; URL=?php echo $_SERVER['PHP_SELF'];??UA_js=false / /noscript I do something similar to this at http://contactjuggling.org/ if the server thinkks JavaScript is set, then it uses the above to make sure. Otherwise, it puts this in the

[PHP] Re: math functions?

2003-08-26 Thread Kae Verens
Amanda McComb wrote: I am having trouble finding math functions on php.net. I am also getting page not found errors when trying to search. Basically, I'm looking for a mod or division function - something I can use to tell me when a number is evening divisable by a certain number. % is the mod

[PHP] Re: Image Magick

2003-08-26 Thread Kae Verens
Mike At Spy wrote: Anyone here familiar with the installation of Image Magick and what files it installs on your machine? I had an admin put it on, and then took it off - but took it off by removing what she thought were all of the files related to it. I just found some files I think that are.

[PHP] Re: Help with parse error

2003-08-20 Thread Kae Verens
James Johnson wrote: Hi, I'm trying to figure out this error I'm getting in my code: Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9 This is the code on line 9: $sDate = date('Y-m-d',time()); if you're looking for the current time, then this is sufficient:

[PHP] Re: searching date

2003-08-15 Thread Kae Verens
[EMAIL PROTECTED] wrote: Hi , The user have to choose 2 date ($date_begin $date_last) and i want to know howcan i make to find field in mysql where field included between ($date_begin $date_last) SELECT * FROM `news` WHERE `date` included in ($date_begin $date_last)

[PHP] Re: LAMP I need a good tutorial on how to install and configureGD2

2003-08-15 Thread Kae Verens
Matt Babineau wrote: Anyone have a good place to help with this... Google was seeming a bit light on good help. I tried to get it going but there seemed to be some dependant libraries tha tI could not build myself, they were erroring out..blah blah. Is there any easier way to do this? Thanks, Matt

Re: [PHP] How to Select

2003-08-15 Thread Kae Verens
John Taylor-Johnston wrote: Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists, ... Anyone good humoured who would help me fill in the blank. Like I should know this, but haven't even thought of coding SQL in a while :)

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ but it does not work and I tryed thousands of other ways plus read tutorials. Can anybody please

[PHP] Re: images with gd for printing?

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I want to create images with GD and freetype ttf which are good enough for printing .. about 150 dpi. Does anybody know how to output the jpg with a higher resolution and a determined output size? Thanx in advance, merlin output an image with dimensions, say, 320x200, but

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? *sigh* ^test\/contact.html$ Kae -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Jay Blanchard wrote: if($string == 'test/contact.html') it could be if($string == test/contact.html) not to start a flame war or anything, but isn't the apostrophe version quicker, as it doesn't ask the server to parse the string? Kae -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are member accounts which look like that:

[PHP] Re: Can't Pass variable to other page

2003-08-14 Thread Kae Verens
Jack wrote: Dear all I had write a script like this : $link = page.php?day=$daymonth=$monthyear=$year; when i click on the link, it should pass the parameter to page.php with $month and $year variables. It actually works fine in php4.2.1, but when i went to other office which got php5.0 above

[PHP] Re: Determine OS and Java Ver

2003-08-14 Thread Kae Verens
Alexandru-Vlad Badut wrote: Hya, Can someone give me a hand on how to determine if the client (the visitor) is java java enabled and the os he's using in php? couldn't you just get the Java to request a PHP file with it's version as a GET parameter? that, along with the IP address, should tell

[PHP] Re: Restricted access

2003-08-14 Thread Kae Verens
Ciprian Trofin wrote: Hi All, I want to give access to resources (PDFs and some RTFs) only to registered users and I also want to deny that kind of access to people that guess the URL. I guess it is all about putting these files outside the web-tree and somehow putting PHP to work. Could you

[PHP] date problem

2002-08-16 Thread Kae Verens
of a solution to this? Anyone have a ready-to-use function which can add/subtract an hour or two to/from the date/time? -- Kae Verens http://www.contactjuggling.org/users/kverens/ http://www.contactjuggling.org/ (webmaster) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] date() doesn't return system date?

2002-08-15 Thread Kae Verens
when I type date in a console on my server, it returns a different time than that returned by date() or gmdate() - any idea why? -- Kae Verens http://www.contactjuggling.org/users/kverens/ http://www.contactjuggling.org/ (webmaster) -- PHP General Mailing List (http://www.php.net

Re: [PHP] date() doesn't return system date?

2002-08-15 Thread Kae Verens
. They are both one hour off from the server time. when I type date in a console on my server, it returns a different time than that returned by date() or gmdate() - any idea why? -- Kae Verens http://www.contactjuggling.org/users/kverens/ http://www.contactjuggling.org/ (webmaster) -- PHP General