[PHP] Re: R: [PHP] Date Function Questions

2005-12-11 Thread [EMAIL PROTECTED]
Is the system time through Linux, Apache or through the php.ini file? On 12/11/05, Sebastian En3pY Zdrojewski [EMAIL PROTECTED] wrote: afaik it's the system time. Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL

Re: [PHP] Inserting a NULL value into MySQL via PHP

2005-12-07 Thread [EMAIL PROTECTED]
I tried this and it didn't work using PHP it just leaves a blank instead of a NULL setting. Any other ideas? On 11/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, November 10, 2005 11:15 pm, Curt Zirzow wrote: ?php $sql_quoted = array(); // shiflett' -- style $myFieldValue

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread [EMAIL PROTECTED]
HomeSite. I tried several others but always came back to HomeSite. :) -afan Jeff McKeon wrote: Hey all, Forever now I've been using Frontpage for all my web work including php. I'm sure there's better software out there that is more suited to writing and editing PHP pages. What do

RE: [PHP] Re: PDF Generator

2005-12-04 Thread [EMAIL PROTECTED]
Why not use JavaScript? It's supported well in Acrobat Professional. Jud. Original Message: - From: Dan Harrington [EMAIL PROTECTED] Date: Sun, 4 Dec 2005 09:12:51 -0700 To: php-general@lists.php.net Subject: [PHP] Re: PDF Generator I have a TON of forms that I have

[PHP] when to enter submitted in mysql?

2005-11-29 Thread [EMAIL PROTECTED]
Hi to all! I have form made on 4 pages (by groups of questions). Right now my code works this way: once somebody submit the first page of the form his/her submitted info is entered in database with status=temp. I store the ID (insert_id()) in session and then every time visitor submit the next

Re: [PHP] Re: when to enter submitted in mysql?

2005-11-29 Thread [EMAIL PROTECTED]
. Actually, I use Interbase (Firebird) for this type of application. Todd [EMAIL PROTECTED] wrote: Hi to all! I have form made on 4 pages (by groups of questions). Right now my code works this way: once somebody submit the first page of the form his/her submitted info is entered in database

[PHP] better way to mix html and php code?

2005-11-16 Thread [EMAIL PROTECTED]
Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code. Which one you prefer? (And why, of caurse :)) Solution 1: ?php require

[PHP] Inserting a NULL value into MySQL via PHP

2005-11-10 Thread [EMAIL PROTECTED]
Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL?

Re: [PHP] PDF Thumbnails

2005-10-03 Thread [EMAIL PROTECTED]
How do I implement using your script? Do this take all of the files in a directory and convert them into pdf thumbnails? Where does the directory path go? Thanks for posting and the help. On 9/29/05, Matt Darby [EMAIL PROTECTED] wrote: I wrote a script for this; it's designed to run from

Re: [PHP] PDF Thumbnails

2005-09-26 Thread [EMAIL PROTECTED]
You would haven't happen to have an example? I am new to imagemagick. Any help would be greatly appreciated. On 9/26/05, Jim Moseby [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 1:43 AM To: php

[PHP] PDF Thumbnails

2005-09-25 Thread [EMAIL PROTECTED]
I give my users an option to upload pdf files to my site and would like them to see a thumbnail view of the file once uploaded. Has anyone heard of a way how to do this?

Re: [PHP] can not re-use a object

2005-09-20 Thread [EMAIL PROTECTED]
? (phpinfo() would tell you if you're not sure) Good luck! On Sep 19, 2005, at 6:26 AM, [EMAIL PROTECTED] wrote: Hi! Sorry about the bad english :-[ I try to re-use an object that manage the mysql connections (it is code from sugarcrm) $db = new PearDatabase(); $var = ' . $user_id

Re: [PHP] can not re-use a object

2005-09-20 Thread [EMAIL PROTECTED]
mmcache or any other code caching mechanism? (phpinfo() would tell you if you're not sure) Good luck! On Sep 19, 2005, at 6:26 AM, [EMAIL PROTECTED] wrote: Hi! Sorry about the bad english :-[ I try to re-use an object that manage the mysql connections (it is code from sugarcrm) $db = new

[PHP] can not re-use a object

2005-09-19 Thread [EMAIL PROTECTED]
Hi! Sorry about the bad english :-[ I try to re-use an object that manage the mysql connections (it is code from sugarcrm) $db = new PearDatabase(); $var = ' . $user_id .'; $pregunta = SELECT user_name FROM users WHERE id = $var; $resultado = $db-query($pregunta, true, Error filling in user

Re: [PHP] array simple question

2005-09-13 Thread [EMAIL PROTECTED]
tray print the array this way: echo 'pre'; print_r($array); echo '/pre'; -afan matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if you

[PHP] Date/Time Display for recurring monthly event

2005-09-10 Thread [EMAIL PROTECTED]
Having a heck of time getting anything to work, can anyone make a suggestion to the following. I need a webpage that displays 5 recurring meeting dates, i.e. the second Wednesday, Thursday, and Friday of each month in five different locations. Is there an easy (meaning code only, without using a

Re: [PHP] mixing $_POST and $_GET vars

2005-09-09 Thread [EMAIL PROTECTED]
need/wind up doing something like if ($_GET['foo'])... if ($_POST['apple'])... and just have a mix of both methods within the code... thanks -bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: security while building online store

2005-08-31 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: kat Dzesi momak ;) I think you know PHP enough to make your code secure. Just take care (as Christian wrote)about sql-injections and register_globals. The biggest problem could be Linux/Apache/MySQL server security threat... --- avast! Antivirus: Outbound

[PHP] security while building online store

2005-08-30 Thread [EMAIL PROTECTED]
Hi, I was checking on several php/mysql based on line store, free and commercial, but didn't find any that fits the best for us. Looks like, it would be the best to develop one. To make a online store that works fine - it shouldn't be such a big problem. To make a SECURE ad SAFE online store -

Re: [PHP] Week Days

2005-08-20 Thread [EMAIL PROTECTED]
Rob, I tried your code below, but it didn't work. I put the number of week days in $addWeekdays variable. Am I doing something wrong or is there an error in the code? Appreciate your help! On 8/18/05, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2005-08-19 at 02:17, Robert Cummings

Re: [PHP] Week Days

2005-08-20 Thread [EMAIL PROTECTED]
Rob, This code works great! Thank you for all of your help and everyone else who responded! On 8/18/05, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2005-08-19 at 02:10, Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: I am trying to add 3 (or a user-defined amount) week days

[PHP] Week Days

2005-08-19 Thread [EMAIL PROTECTED]
I am trying to add 3 (or a user-defined amount) week days to a certain date.. An example is today 2005-08-18 then adding 3 week days to give me a date of 2005-08-23. I have tried searching online but cannot find an easy way of doing so.

[Fwd: Re: [PHP] previous + next buttons, no DB]

2005-08-18 Thread [EMAIL PROTECTED]
if you have all images in one directory and ONLY images in that folder you can try something like this: $path = '/path/to/directory/with/images'; $handle = opendir($path); while (false != ($file = readdir($handle))) { if ($file != . $file != .. !ereg('.php', $file))

[PHP] Re: Large forms to Mysql table...

2005-08-14 Thread [EMAIL PROTECTED]
Just use some text as delimiter string. Merge all fields together with delimiter and than insert it into db table. Something like ?php $separator_string = '||__||';//or something else //u can use foreach($_POST..) here or merge all one by one

Re: [PHP] one more mysql question

2005-08-13 Thread [EMAIL PROTECTED]
Hey! Stop it! I put a question on wrong place. I was nailed for it by John. I accepted I was wrong. I apologized. What do you want now? Sebastian wanted to help – in difference to you and John. Even it’s “wrong place”. I guess you would never stop and help to car in trouble on highway

[PHP] one more mysql question

2005-08-12 Thread [EMAIL PROTECTED]
I apology for mysql question posted here, but, as I said once, I like you guys more! :) have two tables: orders and special_orders. foreign key is trans_no. I can't figure it out how to create a query that pulls orders from the orders tables that are NOT in special_orders table? Thanks for

Re: [PHP] one more mysql question

2005-08-12 Thread [EMAIL PROTECTED]
I tried this one: SELECT trans_no FROM orders WHERE trans_no IN ( SELECT trans_no FROM special_orders ) but gives me an error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT trans_no FROM

Re: [PHP] one more mysql question

2005-08-12 Thread [EMAIL PROTECTED]
to your MySQL server version for the right syntax to use near 'select trans_to from printed_orders)' at line 1 Syntax error? ??? -afan [EMAIL PROTECTED] wrote: I tried this one: SELECT trans_no FROM orders WHERE trans_no IN ( SELECT trans_no FROM special_orders ) but gives me an error: You

Re: [PHP] one more mysql question

2005-08-12 Thread [EMAIL PROTECTED]
ok. accept critique. :( @moderator: please take my mysql questions off the php list. I apology to everybody for any inconviniance. -afan John Nichel wrote: [EMAIL PROTECTED] wrote: I apology for mysql question posted here, but, as I said once, I like you guys more! :) I like my wife

[PHP] select * from...

2005-08-09 Thread [EMAIL PROTECTED]
Hi to all, It's more mysql question than php, but I like you more than mysql guys! :) Let's say I have a table called orders and other table called special_orders_instructions. Logically, one column in orders table should be link to special_order_instructions (foreign key ?) and if that one is

[PHP] how to check http:// or https:// ?

2005-08-05 Thread [EMAIL PROTECTED]
Hi, I need to check does URL use http or https? Right now I use this code: if(preg_match('/https:/', $_SERVER['SCRIPT_URI']) == false) { header('location: [URL]https://www.test.com/test.php[/URL]'); exit; } but I am sure there is much better solution. :) -- PHP General Mailing List

Re: [PHP] how to check http:// or https:// ?

2005-08-05 Thread [EMAIL PROTECTED]
%27HTTP S%27%5D -- BeebleX - The PHP Search Engine http://beeblex.com On 8/5/05 2:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I need to check does URL use http or https? Right now I use this code: if(preg_match('/https:/', $_SERVER['SCRIPT_URI']) == false) { header('location

Re: [PHP] how to check http:// or https:// ?

2005-08-05 Thread [EMAIL PROTECTED]
PROTECTED] [EMAIL PROTECTED] wrote: Thanks Marco! :) I was looking for something like this on phpinfo() but didn't found? That's because it shows up only if you are under HTTPS! :-) AFAICT tell you should check whether the value is actually set to 'on' (IIRC a post by Rasmus): e.g

[PHP] skip a row in foreach loop

2005-08-03 Thread [EMAIL PROTECTED]
I have a code foreach($results as $key = $value) { echo $key.': '. $value .'br'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0? I know I can do foreach($results as $key = $value) { if(!empty($value)) { echo $key.': '. $value .'br'; } } but

Re: [PHP] skip a row in foreach loop

2005-08-03 Thread [EMAIL PROTECTED]
Nichel wrote: [EMAIL PROTECTED] wrote: I have a code foreach($results as $key = $value) { echo $key.': '. $value .'br'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0? I know I can do foreach($results as $key = $value) { if(!empty($value)) { echo

[PHP] how to mix two arrays into one and sort it by date/time?

2005-08-02 Thread [EMAIL PROTECTED]
I have two tables with orders of different type of articles. order_table_1 order_table | order_transaction_no | order_date | ... 1 | 56982 | 2005-07-29 9:12:34 1 | 97163 | 2005-07-30 8:45:32 1 | 67452 | 2005-07-31 10:56:11 order_table_2 order_table | order_transaction_no | order_date | ... 2 |

Re: [PHP] how to mix two arrays into one and sort it by date/time?

2005-08-02 Thread [EMAIL PROTECTED]
= '. $date_yesterday .') order by order_transaction_no desc, order_date desc , 0); :) [EMAIL PROTECTED] wrote: I have two tables with orders of different type of articles. order_table_1 order_table | order_transaction_no | order_date | ... 1 | 56982 | 2005-07-29 9:12:34 1 | 97163 | 2005-07

Re: [PHP] PHP autogenerating Website Templates

2005-06-17 Thread [EMAIL PROTECTED]
Maybe off topic: I would not agree totally with that link because this really doesn't make a sense: ... Before asking a technical question by email, or in a newsgroup, or on a website chat board, do the following: 1. Try to find an answer by searching the Web. 2. Try to find an answer by

Re: [PHP] PHP autogenerating Website Templates

2005-06-17 Thread [EMAIL PROTECTED]
is used to often as an answer. And part ...sometimes Im scared to ask because of RTFM... was metaphor. ;) -afan John Nichel wrote: [EMAIL PROTECTED] wrote: Maybe off topic: I would not agree totally with that link because this really doesn't make a sense: snip The point of doing all

[Fwd: Re: [PHP] Explanation in Shiflett's PHP Security Briefing]

2005-06-09 Thread [EMAIL PROTECTED]
Hm? Didn't see this one yesterday on the list? Let's try again :) -afan Chris Shiflett wrote: You forgot to filter your input. Shame! :-) Escaping alone can save you in many cases, but always filter input and escape output. I confess: I didn't forget. I did it just wrong :( Even I thought

[PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
I have an admin area for one page on shared hosting. And I wanted to protect it by shared SSL from my hosting company. I got from them Your domain, afan.net, can now access our shared SSL certificate. To securely access the documents folder, go to ... https://secure.inetwave.com/afan/filename

Re: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
According to Google, my MySQL db is not on secure.inetwave.com server and have to use something else instead of localhost for host in mysql_connect(), right? -afan [EMAIL PROTECTED] wrote: I have an admin area for one page on shared hosting. And I wanted to protect it by shared SSL from my

Re: [PHP] Can't connect to local MySQL server through socket.. ?

2005-06-09 Thread [EMAIL PROTECTED]
Just as I thought :( Thanks Richard. -afan Richard Davey wrote: Hello afan, Thursday, June 9, 2005, 7:07:26 PM, you wrote: aan I have an admin area for one page on shared hosting. And I wanted to aan protect it by shared SSL from my hosting company. I got from them aan Your domain,

Re: [PHP] Message could not be delivered

2005-06-08 Thread [EMAIL PROTECTED]
I just got this one? Of course I didn't open the attachment, but someone sick is trying to involve the php group into a spreading of viruses. -afan Returned mail wrote: Dear user of lists.php.net, We have found that your account was used to send a large amount of spam messages during

Re: [PHP] linux php editor

2005-06-08 Thread [EMAIL PROTECTED]
On windows platform I use HomeSite 5.5 and I'm more then happy. On Linux platform QuantaPlus For small and fast changes on file vi/vim is the best. -afan On 6/6/05, Clive Zagno [EMAIL PROTECTED] wrote: what php GUI editors do you recommend. any other recommendations, thanks -- PHP

Re: [PHP] linux php editor

2005-06-08 Thread [EMAIL PROTECTED]
On windows platform I use HomeSite 5.5 and I'm more then happy. On Linux platform QuantaPlus For small and fast changes on file vi/vim is the best. my $.02 :) -afan On 6/6/05, Clive Zagno [EMAIL PROTECTED] wrote: what php GUI editors do you recommend. any other recommendations, thanks

[PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
I was reading PHP Security Briefing from brainbulb.com (Chris Shiflett) and didn't get one thing: in example: ?php $clean = array(); if (ctype_alnum($_POST['username'])) { $clean['username'] = $_POST['username']; } ? why to set the $clean as array? what's wrong if I use:

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
Thanks Richard. I got the point Chris was making: never believe _GET/_POST and use ctype_alnum(), mysql_real_escape_string(), htmlentities() - and I already started :) (Thanks Chris that was great for us beginners, already posted on few Bosnian php forums :)) My question though was is the

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread [EMAIL PROTECTED]
First, thanks guys for such a fast response :) Matthew Weier O'Phinney wrote: While the above would prevent most SQL injections, it could still wreak havoc with your database. For instance, what if your 'phone' or 'zip' fields in your database are integer fields, and text gets passed from

[PHP] Newbie - Request interface for PHP 5 website

2005-06-02 Thread [EMAIL PROTECTED]
For PHP 4.x sites I used my index page to capture the HTTP request and use a switch statement to call the content or task based on the $_GET and $_POST arrays. That was very inefficient and the Switch case became totally unmanageable along with the rest of the site. I am re-designing the site

Re: [PHP] mysql with php

2005-05-20 Thread [EMAIL PROTECTED]
try this: $sql = SELECT User_name, User_pass FROM `user` WHERE User_name= '$_POST[user_id]' AND User_pass = '$_POST[user_pass]' ; -afan Rittwick Banerjee wrote: Hi friends, I am Rittwick Banerjee and i have made a mysql based user name and password program but I

Re: [PHP] step by step learning

2005-04-26 Thread [EMAIL PROTECTED]
try webmonkey.com my first tutorial was this http://webmonkey.wired.com/webmonkey/programming/php/tutorials/tutorial4.html little bit out of date (1999), but it's good one. maybe will be helpful for you. :) -afan Paul Kain wrote: Hi there are there any sites online that show one how to learn php

Re: [PHP] Re: Browser problem

2005-04-05 Thread [EMAIL PROTECTED]
take out the sign. just: pag.php?var=1#print -afan Satyam wrote: I think the #, if meant as a bookmark, should go before the ?: pag.php#print?var=1 If it is not meant as a bookmark, then it should be urlencoded Satyam Ja Ko [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have

[PHP] failed to open stream?!?

2005-03-28 Thread [EMAIL PROTECTED]
Hi to all. I'm uploading file and use this copy($_FILES['NewImage']['tmp_name'], 'temp/'.$item_number.'.jpg') or die (mysql_error());* *I have this Warning:* Warning*: copy(temp/05V0115.jpg): failed to open stream: Permission denied in */var/www/html/afan/admin/add_image.php* on line *12 *

Re: [PHP] failed to open stream?!? - SOLVED!

2005-03-28 Thread [EMAIL PROTECTED]
The problem was that uploaded images already were there and didn't want to overwrite. -afan [EMAIL PROTECTED] wrote: Hi to all. I'm uploading file and use this copy($_FILES['NewImage']['tmp_name'], 'temp/'.$item_number.'.jpg') or die (mysql_error());* *I have this Warning:* Warning*: copy(temp

Re: [PHP] Best Server OS

2005-03-28 Thread [EMAIL PROTECTED]
Hi John, since I have CentOS 3.4 and just wanted to update MySQL to version 4, your comment surprised me :). Can you give some more info about that? Thanks! -afan John Hinton wrote: Phil Neeb wrote: I'm lookin for some opinions on this one ... What do you think the best OS is for running a

Re: [PHP] Array problem

2005-03-26 Thread [EMAIL PROTECTED]
May be this help you: $data=$_POST['position']; $positions=array_keys($data); foreach($positions as $pos){ $row=$data[$pos]; foreach($row as $value){ $sql=INSERT INTO table_name (field_name)VALUES ('$value'); $cursor=mysql_query($sql); } } Devta. [EMAIL PROTECTED] escribió: Hi

Re: [PHP] Re: Storing data structires in DB

2005-03-26 Thread [EMAIL PROTECTED]
You can have the functions list in an array and check if any of that is in the code you are going to pass to eval(). Devta. GamblerZG escribió: Ok, let me ask in a different way. Is there any way to make eval to parse only data structures, without executing any functions it may encounter?

[PHP] Download Link !

2005-03-25 Thread [EMAIL PROTECTED]
Hello, When I purchased a website template from templatemonster.com, they sent the download link to my email, this link was active for only 2 or 3 days then it became inactive. Now I'm writing a script for selling website templates, the templates are uploaded to a certain folder, when someone

Re: [PHP] How can I destroy parameters by page

2005-03-25 Thread [EMAIL PROTECTED]
Use unset() unset($_GET['item']); unset($_GET['ac2']); if you want to destroy the value and its name in the same $_GET array. or unset($item); if you want to destroy another variable, not related to $_GET You can use the same with $_POST... Devta. IHow Can I destroy some variable that I pass by

Re: [PHP] checkbox value

2005-03-24 Thread [EMAIL PROTECTED]
# index.php form method=post action=index.php ?php $checked = ($_POST['CheckThis'] == 'Yes') ? 'checked' : '' ; input type=checkbox name=CheckThis value=Yes ?= $checked ? input type=Submit value=Submit /form -afan William Stokes wrote: Hello, I have a checkbox in a form. How can I determine if

Re: [PHP] Meed a multiple merchant shopping cart please

2005-03-24 Thread [EMAIL PROTECTED]
freshmeat.net and search shopping carts check X-Cart (x-cart.com) - shopping mall version (I think it's xcart pro ili something like that) -afan Denis L. Menezes wrote: Hi. I am looking for a shopping cart where we can have teh following : 1. Multiple vendors on our site, 2. Have accounts for

Re: [PHP] Storing Arrays in a database

2005-03-24 Thread [EMAIL PROTECTED]
check serialize() and unserialize() in manual. implode() and explode() functions too. -afan Joe Harman wrote: Hey, I was curious if anyone here stores arrays in MySQL... and how r u doing this... are you converting the values to a delimited string or is there another way? Thanks Joe -- PHP

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread [EMAIL PROTECTED]
1. you can put your array in string using implode() function and on next page create the array back using explode() function. $testArray = implode('|', $testArray); # you will get: Apple|Banana|Peach On next page: $testArray = explode('|', $testArray); 2. use serialize()/unserialize()

Re: [PHP] Forms

2005-03-21 Thread [EMAIL PROTECTED]
The way I did: # taking values from DB $query = mysql_query(select * from VALUES) $result = mysql_fet_array($query); #create an array of all values of dropdow menu $values = arra('value1', 'value2', 'value3', 'value4'); # create SELECT form using for loop echo 'select name=category

[PHP] problem with csv file (or php code?!?)

2005-03-18 Thread [EMAIL PROTECTED]
My marketing department create a csv file which later upload into database. Everything was working fine - until upload they tried to make two days ago. In that file there were few of products that drive me crazy. The file is here: http://www.afan.net/7V_2005.csv The file has just

[PHP] Re: problem with csv file - SOLVED :)

2005-03-18 Thread [EMAIL PROTECTED]
problem solved. while getting info from csv file I limited myself with 1000 charcters: $data = fgetcsv($handle, 1000); :) [EMAIL PROTECTED] wrote: My marketing department create a csv file which later upload into database. Everything was working fine - until upload they tried to make two days

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-15 Thread [EMAIL PROTECTED]
David OBrien wrote: At 04:53 PM 3/14/2005, [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I

[PHP] Re: can't pull products from DB with REGEXP?

2005-03-15 Thread [EMAIL PROTECTED]
Yup! That works just fine. I took out all spaces after comma and it's ok now. Thanks Jaime. -afan Jamie Alessio wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ...

[PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
Hi guys, Few days ago somebody asked something about listing content of directories and subdirectories. How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Thanks -afan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
That's a problem - didn't know where to look :) Thanks! Chris Ramsay wrote: [snip] How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) [/snip] Check out the mail archive, mate...

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
Mar 2005 10:00:19 -0600, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, Few days ago somebody asked something about listing content of directories and subdirectories. How I can get answers on this queastion? I have a same problem and don't want to bother you again with same thing :) Thanks

Re: [PHP] listing directories

2005-03-15 Thread [EMAIL PROTECTED]
I replaced is_dir() with filetype() and code works just fine. But the question is still there! :) -afan [EMAIL PROTECTED] wrote: Ok, I wasn't able to find anything in archive to fit my needs... This is a problem: To display content of directory I have this code: if ($dir = opendir($path

[PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread [EMAIL PROTECTED]
I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the moment) Now, I have to list all products that

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread [EMAIL PROTECTED]
Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep

Re: [PHP] inserting arabic into mysql

2005-03-13 Thread [EMAIL PROTECTED]
Hello, Try to set the charachter encoding of your page to: Arabic(Windows-1256) Anas SSBoYXZlIGEgdGV4dCBhcmVhIGZvcm0gYW5kIHdoZW4gSSBpbnNlcnQgaXQgaW50byBteXNxbCBJ IGdldCBsZXR0ZXJzIGxpa2UgCnRoaXM6CsOZIsOZxaDDmMKow5jCqsOZ4oCgw5kiw5nigKbDmeKA

[PHP] A little disturbing query !!!

2005-03-13 Thread [EMAIL PROTECTED]
Hello, I have a query that I'm unable to work it out, each time I run it I get some error, I need your help. I have a webtemplates table which contains some basic information about each template (author, price, description, ...etc). I created a search form that a user can use to search by

[PHP] Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't remember I did anything wrong. Just regular php

Re: [PHP] Re: Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
Jason Barnett wrote: [EMAIL PROTECTED] wrote: Hi guys. Last night I got Internal Server Error on every page written in php. HTML pages work just fine. Our web site is on dedicated server. I contacted tech and he said they didn't touch the server and must be something I did. I REALLY don't

Re: [PHP] Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
thankns guys for your help. problem solved. tech from hosting company said they had last night power problem and rebooted server few times and left open some files ?!? I didn't get this part but didn't have time and nervs to talk to him more. Thanks! -afan -- PHP General Mailing List

Re: [PHP] How to handle actions that may take a long time?

2005-03-01 Thread [EMAIL PROTECTED]
You can send a piece of HTML defining some little thing like a div layer with your "please wait, bla bla bla" So the visitor can read something. When the process is finished, you can write another piece of HTML containing some _javascript_ lines, changing the text (and icons or images) so

[PHP] PHP 4.3.10 and Apache2.0 with MPM

2005-03-01 Thread [EMAIL PROTECTED]
When I install PHP 4.3.10 with Apache 2.0 with a tool called YUM that installs rpms for Fedora Core 3 I get the following: Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. Pre-configuration failed I¹m not sure why Fedora would

Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread [EMAIL PROTECTED]
Richard Lynch wrote: That's definitely not good. But there is only so much you, and PHP, can do to stop a bad programmer from chewing up resources. I'm pretty sure that you can prevent this somehow! There is no way any OS with respect for themself, will allow any user installed programs (like PHP)

[PHP] Hosting woes and PHP 4.3.8 install (Interland)

2004-12-30 Thread [EMAIL PROTECTED]
My hosting company is very stubborn when it comes to functionality. They do not compile their version of PHP 4.3.8 with DOM so now none of my XML generating code works. The environment is a virtual host meaning that I share space on a server with other users but only I have access to my stuff.

[PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
Wasn't sure if I should post here or on the apache mailing list, but I want to code a simple apache2 module, that will change the 'open_basedir' at runtime. Is it possible, or does anyone know how I can change this value? Am’ I posting to the right list?

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
On Wed, 22 Dec 2004, [EMAIL PROTECTED] Wrote: Wasn't sure if I should post here or on the apache mailing list, but I want to code a simple apache2 module, that will change the 'open_basedir' at runtime. Is it possible, or does anyone know how I can change this value? Am’ I posting to the right

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
On: Wed, 22 Dec 2004 06:50:25 Jay Blanchard wrote: [snip] After a little digging about I found this post: http://marc.theaimsgroup.com/?l=php-devm=106084499620342w=2 I've just wondering what headers and libraries I will need to compile in as well? Do I just include the php.h, or is there a how to

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
On Wed, 22 Dec 2004 08:54:39 Jay Blanchard wrote: [snip] On Wed, 22 Dec 2004, [EMAIL PROTECTED] Wrote: Wasn't sure if I should post here or on the apache mailing list, but I want to code a simple apache2 module, that will change the 'open_basedir' at runtime. Is it possible, or does anyone know

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
On Wed, 22 Dec 2004 Jay Blanchard wrote: [snip] I haven't tried this question on the Apache mailing list. But after finding more stuff about the 'zend_alter_ini_entry' in the PHP Dev mailing list I wanted to try here first. In that case I'm off to join yet another mailing list... erghhh.

[PHP] GD library with tiff images

2004-12-16 Thread [EMAIL PROTECTED]
handling, PHP Web:www.digital-data.co.uk scripting, and wireless Email:[EMAIL PROTECTED] networking, just for a change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Oversized file behaviour

2004-12-16 Thread [EMAIL PROTECTED]
clarify quite what happens when an upload is larger than the legal limit. Cheers, Tom -- Working on webhosting Tel:01388 11 MTA handling, PHP Web:www.digital-data.co.uk scripting, and wireless Email:[EMAIL PROTECTED] networking, just for a change. -- PHP General

Re: [PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-13 Thread [EMAIL PROTECTED]
: [EMAIL PROTECTED] wrote: Hi, I have been having problems trying to get file uploads working with PHP in a Debian Linux enviroment. I have ensured that both the temporary directory PHP uploads use has the appropriate permissions set, as well as the folder I am attempting to copy the images

[PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-10 Thread [EMAIL PROTECTED]
trying to copy the file to. Anyone have any suggestions? Tom Williams Anyone -- Working on webhosting Tel:01388 11 MTA handling, PHP Web:www.digital-data.co.uk scripting, and wireless Email:[EMAIL PROTECTED] networking, just for a change. -- PHP General Mailing

Re: [PHP] php editor or php IDE for linux with autocompletion

2004-12-08 Thread [EMAIL PROTECTED]
Steve Brown wrote: Eclipse: http://www.eclipse.org/ PHPEclipse: http://www.phpeclipse.de/ What about Eclipse? Did anyone make it work? How does it compare to Kdevelop? I tried to install it, unsuccesfully, on Mandrake 10.1 CE. Apparently, one library is missing (but the library does not

Re: [PHP] (Quanta) php editor or php IDE for linux with autocompletion

2004-12-08 Thread [EMAIL PROTECTED]
Jason Wong wrote: What version of quanta are you using? Autocompletion was available quite a while ago. I am using Quanta 3.2.3, and php auto completion does not work. How do you activate it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] (Quanta) php editor or php IDE for linux with autocompletion

2004-12-08 Thread [EMAIL PROTECTED]
Jason Wong wrote: I think I may have misunderstood what you mean by auto-completion. What Quanta does is auto-complete words that you *already* have in the document. Not really. With HTML / XHTML Quanta does auto complete words, tags, properties, attributes which are in the DTD. Or am I

Re: [PHP] (Quanta) php editor or php IDE for linux with autocompletion

2004-12-08 Thread [EMAIL PROTECTED]
Jason Wong wrote: So are you looking to auto-complete (X)HTML tags or are you looking to auto-complete PHP keywords/functions? What is your question? We need to auto-complete PHP words and functions INDIPENDENTLY of the fact that they are present or not in the page. For instance if one

Re: [PHP] Re: intalling pear:db

2004-12-04 Thread [EMAIL PROTECTED]
was including my config file which defined my DSN driver. Once I was able to successfully include the config file and actually define the DSN info, everything was fine. Thanks! Tim on 11/26/04 1:18, Ryan King at [EMAIL PROTECTED] wrote: On Nov 25, 2004, at 1:56 AM, Merlin wrote: Hi

[PHP] php editor or php IDE for linux with autocompletion

2004-11-30 Thread [EMAIL PROTECTED]
Hi. We use linux as default development system. Does anyboy know about a linux based php editor with autocompletion? Must be open source free software (free as in speech, not beer). We like quanta and kate, but there is no autocompletion. Does anyone know about a php IDE? I got a look at the

[PHP] Help with DB.php in PHP5

2004-11-28 Thread [EMAIL PROTECTED]
I upgraded to PHP 5 and now I am having some problems with DB.php. 2 problems: 1. I get this notice Notice: Undefined property: DB_mysql::$disconnect 2: the $db-query no longer works. I have gone as far as to place this line at the beginning of the file: set_include_path(.:/usr/local/lib/php);

<    1   2   3   4   5   6   >