[PHP] list of Months

2004-09-30 Thread afan
Hi, to create a list of all months in drop-down menu I use this code: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?> $i "

Re: [PHP] list of Months

2004-10-01 Thread afan
Well, looks like the idea is alway the same, with some (very usefull) variations. Thanks for help! Afan > [EMAIL PROTECTED] wrote: >> Hi, >> to create a list of all months in drop-down menu I use this code: >> >> > $month_names = array(1=>'Jan

Re: [PHP] How to load another php page?

2004-10-02 Thread afan
if(isset($var1)) { include 'another.php'; } > Hi, > > How can i load another php file ("another.php") directly without an action > (example: clicking on a button)? > I'd like to do in my php script: > > if(isset($var1)) { // load another.php } > > It is possible to include the file, but i just

Re: [PHP] session timeout

2004-10-04 Thread afan
# store entry time to session $_SESSION['entry_time'] = time(); # checking if session expired if((time() - $_SESSION['entry_time']) > 3600) #session expired after 1 hour { header('login.php'); exit; } -afan > Hi all. > > I have users log into my s

[PHP] problem with mysql_real_escape_string()

2006-12-28 Thread afan
real_escape_string($value); 31 } 32 } Never got such a error message before. Any thoughts? Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with mysql_real_escape_string()

2006-12-28 Thread afan
A little bit "lower" on php.net/manual I found explanation too. I'm sorry for bothering - wasn't check whole page before posting. The Warning was strange for me because never got it before :) Thanks for your help. -afan > [EMAIL PROTECTED] wrote: >> I moved my

[PHP] problem with SSL

2007-01-02 Thread afan
ction? I checked the apache.org but didn't find the answer. Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] send email by php class

2007-01-08 Thread afan
t there are tons of them. Can somebody recomend any class? Something simple. Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] send email by php class

2007-01-08 Thread afan
; But, it's so easy to get blacklisted if you make a mistake and I wanted >> to >> grab and use good email class to do this. OUr web server is php5 based. >> >> Was looking on phpclasses.net for the class but there are tons of them. >> Can somebody recomend any class?

Re: [PHP] send email by php class

2007-01-08 Thread afan
, but worth mentioning. > > Jochem, I'm reading most of the posted questions/answers on the mailing list because of exact reason you mentioned. You're right. But, don't remember any that can help me with this issue. Though, wasn't detailed and give a chance to missed these. :) In general, yes, you're right, I could/should spend a bit more time scanning Archive and most likely find the answer there. Accept your critisizm and applogy. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] storing date in datetime column

2007-01-09 Thread afan
me[0] ; $time_new = $hours.':'.$date_time[1].':00'; $date_final = $date_new[2].'-'.$month.'-'.$date_time[1].' '.$time_now; Is there better solution than this above? Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOLVED: RE: [PHP] storing date in datetime column

2007-01-09 Thread afan
WORKS PERFECT! Thanks Brad! -afan > [EMAIL PROTECTED] wrote: >> hi, >> $date = "January 8 2007 11:23 pm"; >> and have to store it on db in datetime column as -mm-dd HH:ii:ss. >> Is there any function that will "translate" $date in format I &

[PHP] uploaded fiel size limitiation

2007-01-11 Thread afan
Hi, I have a little script that was working fine when uploaded files up tp 16MB. I moved to other hosting company and use the same form/script. Not, I can't upload eitherr 2MB file. Where to look for limitation first? According to phpinfo() post_max_size in php.ini is 8M. Thanks.

[PHP] what mail program I'm using?

2007-01-12 Thread afan
To: [EMAIL PROTECTED] Is it possible the get error back on specific email if email is not (for some reasons) delivered? Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what mail program I'm using?

2007-01-12 Thread afan
o, can't find (but almost sure I saw it before) the line >> for send back if error, like we have for: >> From: name <[EMAIL PROTECTED]> >> CC: name <[EMAIL PROTECTED]> >> Reply-To: [EMAIL PROTECTED] >> Is it possible the get error back on specific email

[PHP] return bounced email to specific email address

2007-01-30 Thread afan
hi, is it possible to specify email address in mail() function where bounced email could return? I checked http://us2.php.net/manual/en/function.mail.php but didn't find anything. thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] [SOLVED] [PHP] return bounced email to specific email address

2007-01-31 Thread afan
right place. It's the 5th parameter you want to change. > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > yesterday somebody posted really good explanation about this :) Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
IF Create Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Now, when I talk to them they said we have to pay $250 to be fixed?!? I have root access and have some php/mysql/apache installation experience and want to fix myself - can somebody point me to the right dir

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
' >> >> and this: >> gd >> GD Support enabled >> GD Version bundled (2.0.28 compatible) >> GIF Read Support enabled >> GIF Create Support enabled >> PNG Support enabled >> WBMP Support enabled >> XBM Support enabled >> >&

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
> can somebody point me to the right direction? > > google? very funny... already was searching google but didn't find anything. yes, I can spend enxt 12 hours searching on google, but isn't easier to ask here after SOME research? > > -- > PHP General Mailing List (http://www.php.net/) > To unsu

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread afan
r way? -afan > [EMAIL PROTECTED] wrote: >>> can somebody point me to the right direction? >>> >>> google? >> very funny... >> already was searching google but didn't find anything. >> >> yes, I can spend enxt 12 hours searching on goog

Re: [PHP] Re: JPG Not supported on my server, but GDlib enabled?

2007-02-23 Thread afan
Thanks for your help. Though, a tech guy from hosting company fixed this. And I didn't need to mess around. ;) Thanks. -afan > Haydar Tuna wrote: >> Hello, >> Firstly, you should download latest GD library and Jpeg library >> and >> then you should c

RE: [PHP] php and javascript error

2007-03-07 Thread afan
t issue, but may have something to do with the data you > are echoing out in PHP. Look at the source in the browser. My guess it > that > you've got a stay quote mark in one of your PHP vars. > > Edward > > PS: If you want your code to validate, change the & to & Add t

Re: [PHP] help with script needed

2007-03-07 Thread afan
try this if ($i%5 == 0) echo "foo"; -afan > I have a little script that prints a number out from 1 to 100 > [php] > for( $i=1; $i<=100; $i++ ) > { > echo $i; > echo ""; > > } > ?> > [/php] > > I just need to add code to print someth

Re: [PHP] storing functions

2007-04-04 Thread afan
lDate2friendlyDate.php, etc) and these wil be called/included when needed. -afan > > > > > R. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread afan
first step is: take a paper and pen and start drawing your app structure in blocks. once you "finished your app" on the paper start drawing db structure. start coding after you have the solution for every situation. :D -afan > Hey... I am new to the list so please forgive me if I

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread afan
never find good app for it. if you can recommend - I'll be more than happy to use it and stop wasting paper (agree with you on "poor tree" :D) -afan > Cheers, > Rob. > -- > .. > | InterJinn Application Framewor

Re: [PHP] mysql if empty

2007-04-09 Thread afan
#x27;"; > > $result = mysql_query($sql); > > if ($result == "") > { > echo "No result found"; > } > echo "Found"; try this: $sql = "SELECT Client FROM booked WHERE Name = 'larry'"; $result = mysql_query($sql); if(mysql_num_rows(

Re: [PHP] PHP editor

2007-04-11 Thread afan
http://www.estrintech.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > On both Win and Linux I use Zend Studio. Not free but it's worth every cent. Before I used HomeSite. Great tool too. If you use Linux Quanta+ is great tool too. Download EVERY editor you think and try it. What I like doesn't mean it's ok with you. Try even not free editors - it's worth testing, and you will find what do you really want from an editor. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset

2007-04-15 Thread afan
> Afan Pasalic wrote: >> >> Jochem Maas wrote: >>> Richard Kurth wrote: >>> >>>> What do you do when isset does not work? If I send data in a >>>> $_REQUEST['var'] like >>>> if (isset($_REQUEST['var&#

[PHP] Uploading products in database using zip file?

2005-02-11 Thread afan
es) he has to do just one thing: upload zip file. ??? Or, if somebody has an idea about this whole process? Thanks! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading products in database using zip file?

2005-02-11 Thread afan
rketing person zip images and csv file together, then in admin area > uload zip file to server, and php then unzip file and do the job. > Actually, instead doing two operations (upload csv file and ftp images) he > has to do just one thing: upload zip file. > ??? > > Or, if som

Re: [PHP] Uploading products in database using zip file?

2005-02-11 Thread afan
>>>Hi, >>>right now in my firm, to upload new products to web site, marketing >>> person >>>has to, in admin area, upload csv file (then php read content and store >>>info in DB), and then ftp all images in temp directory. And then, using >>>other php script, resize images and put them in product_

[PHP] How to get rid off empty elements of an array?

2006-08-07 Thread afan
g else is "entered" in 4th field. What I'm doing wrong? Thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOLVED (spelling error) - Re: [PHP] How to get rid off empty elements of an array?

2006-08-07 Thread afan
Sorry for this. Spelling error. :( -afan > Hi to all! > > I have a form with 6 text fields where visitor has to enter product serial > number (same type data). he has to enter AT LEAST ONE. > > for ($i=0; $i<6; $i++) > { > echo ' size="25">'

[PHP] problem with quotes (single and double) in forms

2006-08-09 Thread afan
/www.zend.com/manual/security.magicquotes.disabling.php that ini_set() is not an option, but there is an solution to disable magic quotes at runtime. Means, I can use this to change code (prepare for turning off) on pages with forms? Correct? Thanks for any help. -afan -- PHP General Mailing List (htt

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
hm. good idea. actually, it's, at least, the most safe way. :) thanks. -afan > [EMAIL PROTECTED] wrote: >> Hi to all. >> >> Have a web site on server where magic quote is turned On. Because of >> problems with quotes within forms, I was thinking to turn it Off. I

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
hes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } and included i header.php (header of every page). -afan >

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
good idea! :) thanks richard! -afan > On Wed, August 9, 2006 9:07 am, [EMAIL PROTECTED] wrote: >> Have a web site on server where magic quote is turned On. Because of >> problems with quotes within forms, I was thinking to turn it Off. I >> wonder >> how much work

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
My thought was to use this until I do all changes. Once the changes are done - turn off magic_quote_gpc in php.ini. but, agree, redo whole site on separate place (under 'new' or on other box) is much better solution. -afan > On Thu, August 10, 2006 7:54 am, [EMAIL PROTECTED] wrot

[PHP] requests from 2nd window breaks my program

2006-08-11 Thread afan
scenarios of "bug make mess". Did anybody had a problem with "2nd window" and how is it solved? What's wrong with structure/idea I used to make a program? Any comment will be helpful to determine or give me an idea how to fix this bug. Thanks for any help. -afan -- P

Re: [PHP] requests from 2nd window breaks my program

2006-08-14 Thread afan
, $_SESSION['session_info']['OrderID, '], $_SESSION['session_info']['PageID'], etc.) is to be able to see who is "online", eventually by redoing sessions table, when they started session, how much time they spend on application, what they mostl

[PHP] sorting array after array_count_values

2006-08-15 Thread afan
the first place, but what ever I use (rsort, krsort,..) i loose product numbers (key). any suggestions? thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shopping cart

2006-08-20 Thread afan
o of those too and they look fine and stable to me). My question is actually, your opinion about OSC and/or CRE Loaded, safety, support and, of course, how the application is coded (as friend of mine told me once "the worst code ever written that works fine" :)). Thanks. -afan > OSC

[PHP] preg_match problem

2006-08-21 Thread afan
hi. I have to check if the script file belongs to any ov form1.php to form6.php files. Need something like: preg_match('/form*.php/', $_SERVER['PHP_SELF']) wher * kan be any number between 1 and 6. Thanks for any help. -afan -- PHP General Mailing List (http://www.php.

Re: [PHP] preg_match problem

2006-08-21 Thread afan
Works perfect. Thanks! ;) -afan > function doMatch($f) { > echo $f, > " = ", > (preg_match("#^form[1-6]\.php\$#",basename($f))?"true":"false"), > "\n"; > } > > doMatch(

Re: [PHP] replace single and double quotes

2006-08-29 Thread afan
= mysql_real_escape_string($_POST[editid]); then: $sqledit = " update activities set act_extra='".$act_extra."', act_extra_fr = '".$act_extra_fr."' where act_id = '".$act_id."'"; to check: echo $sqledit; it shou

[PHP] switch()

2006-08-29 Thread afan
I have something like this: when I tried to use swiitch() it will give me only the first true case. if $result['col_1'] == 'value_1' is true 2nd case will never be executed? Does it mean I CANNOT use switch() in this case? -afan -- PHP General Mailing List (htt

Re: [PHP] switch()

2006-08-29 Thread afan
Means, my first solution was the only solution. Thanks. -afan > Using a switch like this is more equivalent of > > if(something){ > // true > } else { > // false > } > > You're doing : > > if(something1){ > // true 1 > } > > if(something2)

Re: [PHP] switch()

2006-08-29 Thread afan
No. They are two if statements because they are indepedent. > On Tuesday 29 August 2006 13:44, Ray Hauge wrote: >> Using a switch like this is more equivalent of >> >> if(something){ >> // true >> } else { >> // false >> } > > Actually, it's more like an if/elseif/else (if you use default:) or >

Re: [PHP] switch()

2006-08-29 Thread afan
rst place. > I forgot about this "break" (sounds crazy :)). Thanks for making this clear to me. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] spec chars in file name

2006-09-08 Thread afan
link it. How can I get rid of special chars from file names? Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to skip browser's Warning?

2006-09-13 Thread afan
e Page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel." Thanks for any help. -afan -- PHP General Mai

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
:D :D :D How to get back then? > [EMAIL PROTECTED] wrote: >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
as a >> search or online purchase) will be repeated. To resend the data, >> click OK. >> Otherwise, click Cancel." >> >> Thanks for any help. >> >> -afan >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
>> cache. If you resend the data, any action the form carried out such as a >> search or online purchase) will be repeated. To resend the data, click >> OK. >> Otherwise, click Cancel." >> >> Thanks for any help. >> >> -afan >> >> --

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
gt; from >> >> cache. If you resend the data, any action the form carried out such >> as >> a >> >> search or online purchase) will be repeated. To resend the data, >> click >> >> OK. >> >> Otherwise, click Cancel." >> &

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

2006-09-21 Thread afan
Hi, "Fatal error: session_start(): Failed to initialize storage module in /home/vernoncompany.biz/includes/validations.php on line 2" validation.php: #1 http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I can see my php code in browser?

2006-09-27 Thread afan
r any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I can see my php code in browser?

2006-09-27 Thread afan
php - didn't get any error, >> but >> when tested I was able to see my code (tested with ) >> in >> the browser. for installation used yast. >> >> what could cause this? >> >> tanks for any help. >> >> -afan >> >> -- >>

Re: [PHP] I can see my php code in browser? [SOLVED]

2006-09-28 Thread afan
.. and this was the "mmissing" part. I thought YAST will do everything :( Yup. It works now. Thanks Rob! Thanks to everybody else for help. -afan > Cheers, > Rob. > -- > .. &g

[PHP] need help to build a query

2006-10-09 Thread afan
;order_status'] ."|"; echo "UPLOADED FILES: "; $query2 = mysql_query(" select uf.file_name from uploaded_files as uf where uf.order_id = $result['order_id'] "); while($result2=mysql_fetch_array($query2)) { echo $result2[

Re: [PHP] need help to build a query

2006-10-09 Thread afan
orders > JOIN uploaded_files AS uf ON orders.order_id = uf.order_id > ORDER BY orders.order_id DESC > LIMIT 100 > > HTH, > John W > > >> >> thanks for any help. >> >> -afan >> >> -- >> PHP General Mailing List (http://www.p

Re: [PHP] need help to build a query

2006-10-09 Thread afan
while I was trying again I did something wrong (?) and my server is now "busy" and looks like it went down?!? The qestion is how can I check first query before I apply it to be sure I'm not goig to read every record in my DB or get into loop? thanks. -afan > On 10/9/06

Re: [PHP] need help to build a query

2006-10-10 Thread afan
sure it is! ;) > On Mon, October 9, 2006 2:58 pm, John Wells wrote: >> On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> but I know there must be much better solution then this one. >> >> You're right: Simply JOIN your queries... >> >> SELECT order_id, order_date, order_status, file_nam

Re: [PHP] need help to build a query

2006-10-10 Thread afan
ok. got the point. > > > > On Mon, October 9, 2006 3:09 pm, [EMAIL PROTECTED] wrote: >> But, in this case I will have repeating order_date and order_status >> info? >> >> idorder_datestatusfile_name >> 122006-10-09live file1.jpg >> 122006-10-09live file2.jpg >

Re: [PHP] Re: moving to other web server

2006-10-11 Thread afan
no. there is no such variable name in my code. > Afan Pasalic wrote: > >> hi to all, >> we are moving our web server from one to other hosting company. we have >> chance to request what version of php i want to be installed, 4 or 5. >> Current web server works

Re: [PHP] Re: moving to other web server

2006-10-11 Thread afan
currently using mysql 4.0.18. want to move to 5.0 (latest stable version for commercil use). is there anytihng I have to be considered DB will not work? thanks. > no. there is no such variable name in my code. > > >> Afan Pasalic wrote: >> >>> hi to all, >>

[PHP] counting records in db

2006-10-26 Thread afan
ult = mysql_fetch_array($query); $NoOfRecords = $result['NoOfRecords']; OR $query = mysql_query(" SELECT cust_id FROM customers WHERE last_name = 'Smith'"); $NoOfRecords = mysql_num_rows($query); OR something else? Than

Re: [PHP] counting records in db

2006-10-26 Thread afan
WOW! That was fast! :D Thanks Dave! -afan > $query = mysql_query(" >SELECT COUNT(*) as NoOfRecords >FROM customers >WHERE last_name = 'Smith'"); > $result = mysql_result($query, 0); > -- PHP General

Re: [PHP] counting records in db

2006-10-26 Thread afan
Hm. There is a little problem - this doesn't work. Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /var/www/html/xxx/tests/count.php on line 28 ? > $query = mysql_query(" >SELECT COUNT(*) as NoOfRecords >FROM customers >

Re: [PHP] counting records in db

2006-10-26 Thread afan
Sorry, my bad! It works jsut fine. I did misstake. :) >> >> >> > $query = mysql_query(" >> >SELECT COUNT(*) as NoOfRecords >> >FROM customers >> >WHERE last_name = 'Smith'"); >> > $result = mysql_result($query, 0); >> > -- PHP General Mailing List

Re: [PHP] counting records in db

2006-10-26 Thread afan
Would it be ok to use the same code to check if customer is loged in? $query = mysql_query(" SELECT COUNT(Username) as NoOfRecords FROM customers WHERE Username = '$Username' AND Password = '$Password'"); if (mysql_result($query, 0) == 0) { echo 'Ple

Re: [PHP] counting records in db

2006-10-26 Thread afan
rd = >> '$Password'"); >>if (mysql_result($query, 0) == 0) I just realized that the answer I already got in previous answers :) Didn't pay an atention! :) Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting records in db

2006-10-27 Thread afan
e using register_globals "on" which is bad. Nope! globals are off. :D > Once again, start reading: > http://phpsec.org/ I'm Shiflett's fan! :) -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Additional query for number of records in table

2006-11-17 Thread afan
query? as a solution, I can run a query to grab all records and then list just 25 products but I think it's not so smart idea :) thanks for any help. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Additional query for number of records in table

2006-11-17 Thread afan
cords. >> do I have to run first a query (something like SELECT COUNT(*) as >> NoOfRecords FROM products) and then query above or there is solution to >> have both info using one query? >> >> as a solution, I can run a query to grab all records and then list just >&

RE: [PHP] Additional query for number of records in table

2006-11-17 Thread afan
ry will give you the number of rows that would have been > returned without the LIMIT clause. There's no way to do it with one > query though... at least easily or quickly. > I have to test it because I use 4 tables in the query. But, I think is worth trying. At least will learn

[PHP] what settings I have to use in php 5.1.2?

2006-11-22 Thread afan
hi! the company I work for moves our web server to other hosting company (dedicated server). we use php 5.1.2, apache 2.2, mysql 5.0.18, and I wonder what else I have to change in php.ini settings? register_globals is Off magic_quotes_gpc is Off what else you recomand to do? thanks. -afan

Re: [PHP] what settings I have to use in php 5.1.2?

2006-11-22 Thread afan
ter_globals is Off >> magic_quotes_gpc is Off >> >> what else you recomand to do? > > r2 turn off ALL the garbage disposers. what do you mean? > and have a look at php.ini-recommended (or whatever it's > called exactly) Thanks Jochem! > >> >>

[PHP] problem with register globals on new server

2006-11-30 Thread afan
register_globals On but it doesn't work. any help will be appreciated. thanks -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with register globals on new server

2006-12-01 Thread afan
r, he is not happy to reconfigure Apache to allow .htaccess because of security issue. Is this REALLY so big issue? I have several osComerce carts and in some (most) of them I did some changes in code. Means, I have to move all carts to other shopping cart app and it's HUGE work?!? btw,

Re: [PHP] How to be sure to use SSL

2006-12-02 Thread afan
my solution: if($_SERVER["HTTPS"] != 'on') { header ('location: https://www.your_domain_here.com'); exit; } -afan > Hi, > > I would like to know how can i be sure to make customer use the SSL all > the > time. > all the time in my PHP c

[PHP] php and DB2

2006-12-08 Thread afan
th 200-300 orders per day and averge of 5 items per order I think we really don't need that replacement. though, don't know how php works with DB2 (assuming same quality as with mysql). can anybody give me some ideas and "reasons" to present to boss to NOT replace mysql with

[PHP] problem with ob_start() and header() in osCommerce cart

2006-12-13 Thread afan
ader("Content-Encoding: gzip"); } and I'm getting login.php as blank page. But, when I hide ob_start() and header() lines I will get login page but with Warning says "The Encryption key file is missing."?!?!? Any idea? -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-13 Thread afan
OS,php version, OSC version, etc you are > running) > > bloomin' weird error about the 'Encryption key' though... assuming it's a > php error... chances are it's specific to OSC. > > ps - don't know anything about OSC myself, sorry > I alerady p

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-14 Thread afan
t; ps - don't know anything about OSC myself, sorry >>> >> I alerady posted on osCommerce forum but soemtimes I have to wait for 2 >> days to get an answer :) >> Could it be something in php.ini has to be changed? Or Apache? >> I use php 5.2 and Apache 2.2

Re: [PHP] PDFLib or some free solution?

2006-03-21 Thread afan
le stuff) >> - Is there a difference (look and programming) and how "big" it is, >> between PDFLib and free solution? >> >> Could you please give me some directions? >> >> Thanks. >> >> -afan > > > Pure Web Solution > http://www.purewebs

[PHP] PDFLib or some free solution?

2006-03-21 Thread afan
I need for really simple stuff) - Is there a difference (look and programming) and how "big" it is, between PDFLib and free solution? Could you please give me some directions? Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] switching between admin areas on two domeins with one login?

2006-03-23 Thread afan
;t compare them? Thoughts? Thanks! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
Where is "the limit"? Why is not 24M as default in php.ini? Thanks! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
bytes. >> I tried with 16M and it worked :) >> >> My question is how "far" I can go with increasing? Where is "the limit"? >> Why is not 24M as default in php.ini? >> >> Thanks! >> >> -afan >> >> > I think 16m should be

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
to put >> ini_set("memory_limit","12M"); >> on the top of the script, except allowed memory size wasn't 8m then 12m >> bytes. >> I tried with 16M and it worked :) >> >> My question is how "far" I can go with increasing? Where is

[PHP] how to kill session id without closing the window?

2006-04-06 Thread afan
Hi to all, session_start(); $_SESSION['sessid'] = session_id; echo $_SESSION['sessid']; will show e.g. 699e506bd42ea402985dce24a0ef9 After: unset($_SESSION['sessid']); $_SESSION['sessid'] = session_id(); I'm getting the same SID again. I tried with session_unregister() and session_destroy()

Re: [PHP] Re: looking for shopping cart

2006-04-09 Thread afan
Try CRE Loaded. http://www.creloaded.com/ It's osCommerce shopping cart with tons of already pre-loaded contributions (modules). -afan > I actually just installed OS commerce on my site, but I think it might be > hard for my clients to upload their contents. They need it to be

Re: [PHP] how to kill session id without closing the window?

2006-04-09 Thread afan
Yup! That works perfect! Thanks Tedd :) -afan > At 9:19 PM +0200 4/6/06, [EMAIL PROTECTED] wrote: >>Hi to all, >> >>session_start(); >>$_SESSION['sessid'] = session_id; >> >>echo $_SESSION['sessid']; will show e.g. 699e506bd42

Re: [PHP] refresh PHP page via onclick event

2006-04-15 Thread afan
Or, use form and images as button and you will not get variables at the end of the link: > and on the top of the page (php file) before you grab info from database and language info (maybe i the header file): -afan > On 15 Apr 2006, at 12:51, Alain Roger wrote: > >> bu

[PHP] How can I see where my script wasting time?

2006-04-17 Thread afan
rders is a little bit over 200,000 - what is not "so much". I'm assuming that the problem is not in the script than in the way I built queries. My question is how can I check what's taking so long in execution of the script/query? Where to start with improving the script? Th

RE: [PHP] How can I see where my script wasting time?

2006-04-17 Thread afan
Yes, I have indexes but can't say they are done perfectly though. :) -afan > [snip] > I was developing one site with fake records in DB. Now, I put it live > whit > real records. The site is running ok, but it's painfully slow. Even for > grabbing an order from DB and s

[PHP] [SOLVED] RE: [PHP] How can I see where my script wasting time?

2006-04-17 Thread afan
Yes, it was problem with indexing and with help of "explain select" I got really decent speed. tanks to all for big help! -afan > [snip] > I was developing one site with fake records in DB. Now, I put it live > whit > real records. The site is running ok, but it'

  1   2   3   >