Re: [PHP] Problem with mbstring.internal_encoding, mcrypt and php-fpm

2013-09-23 Thread Condor
On 2013-09-23 15:42, Aziz Saleh wrote: Hristo, Try changing the php.ini config: mbstring.func_overload 0 See if that helps your issue, more on what it does: http://php.net/manual/en/mbstring.overload.php [3] Aziz On Mon, Sep 23, 2013 at 8:23 AM, Condor wrote: Hello, from two days I have

Re: [PHP] Problem with mbstring.internal_encoding, mcrypt and php-fpm

2013-09-23 Thread Aziz Saleh
Hristo, Try changing the php.ini config: mbstring.func_overload 0 See if that helps your issue, more on what it does: http://php.net/manual/en/mbstring.overload.php Aziz On Mon, Sep 23, 2013 at 8:23 AM, Condor wrote: > > Hello, > > from two days I have strange problem with this param > mbst

Re: [PHP] Problem with variables

2013-06-28 Thread Tamara Temple
Fernando A wrote: > I am working with php and codeigniter, but I have not yet experienced. > I need create a variable that is available throughout system. > This variable contains the number of company and can change. > as I can handle this? Hi, Fernando, welcome. I'm just a little unsure what y

Re: [PHP] problem with my login script

2012-10-02 Thread Maciek Sokolewicz
On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)... (switch is an exception) I personally find this statement to be utter bullshit.

Re: [PHP] problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
Make sense, I haven't ever realizad how old the code appears like when it haves a break. Fell like C. Livin' n' learnin'. Thanks! Enviado por Samsung Mobile Bálint Horváth escreveu: "As a Oo developer, a run away from using switch" - I don't understand this: OOP and switch could be good toge

Re: [PHP] problem with my login script

2012-10-02 Thread Bálint Horváth
"As a Oo developer, a run away from using switch" - I don't understand this: OOP and switch could be good together and I also prefer switch eg. at action or page selection... break is an old stuff and not a nice solution (like "goto")... killing a procedure!? -means wrong planning of an app! (and

Re: [PHP] problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
Better solution than mine (that don't even make a code) As a Oo developer, a run away from using switch, so I should never use break too... Good to know. By the way, what's the problem with it? Enviado por Samsung Mobile Bálint Horváth escreveu: The problem was already solved. I forgot to se

Re: [PHP] problem with my login script

2012-10-02 Thread Bálint Horváth
The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)... (switch is an exception) In the other hand Thomas, you should use while and count the lines and u need to test if username fou

Re: [PHP] problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
Hello Thomas. The if are being evaluated in all iterations of the while, the problem is you didn't stop the loop when it finds what it's searching for. Try putting a break in the end of the if, them, when the condition match, the while will stop. And hey! You're using a lot of legacy code for o

RE: [PHP] Problem with PHP in Moodle LMS

2012-09-27 Thread admin
> Has anyone ever heard of a problem with the Moodle LMS when trying to edit an activity (quiz, resource) in which there is a timeout after only a few seconds and a message saying something to the effect of > that the system is sorry but there was a time out, please retry. When I look in the URL I

Re: [PHP] problem sending email

2012-05-24 Thread Matijn Woudt
On Thu, May 24, 2012 at 2:00 PM, As'ad Djamalilleil wrote: > hi all,i'm having this problem in sending email using pear. > it just wont send :( > here's the code .. > >    require_once 'Mail.php'; > >    $from_name = "My Self"; >    $to_name = "My Friend"; >    $subject = "Sending Trial"; >    $m

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Michael Otteneder
Hi, sorry, I forgot to include the class definition: class GeneratedFiltersTest extends PHPUnit_Framework_Testcase { function testUnconfiguredFilter() { $matcher = array( 'tag' => 'ul', 'children' => array( 'count' => 3, 'only' => array('tag' => 'li')

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Jim Lucas
On 05/02/2012 10:55 AM, Michael Otteneder wrote: Hi List! I'm trying to use phpUnit's AssertTag function to make sure that some html code contains an ul element with exactly li items in it. My test looks like this: function testUnconfiguredFilter() { $matcher = array( 'tag' => 'ul', 'child

Re: [PHP] problem about PHP-FPM in TCP socket and Unix socket

2012-03-02 Thread Daniel Fenn
Something else that should be said: You won't need to muck around with firewall settings as well (that if your running a firewall on the same box On Sat, Mar 3, 2012 at 11:22 AM, Matijn Woudt wrote: > On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang wrote: >> Hello all, >> >> I am trying to confi

Re: [PHP] problem about PHP-FPM in TCP socket and Unix socket

2012-03-02 Thread Matijn Woudt
On Fri, Mar 2, 2012 at 5:56 PM, Yuchen Wang wrote: > Hello all, > > I am trying to config some new server > > All of my servers are using TCP Socket(127.0.0.1:9000) between nginx and > php-fpm before > > But, I run ab(ab -n 2 -c50 http://192.168.74.130:81/) to test the > performance of Unix So

Re: [PHP] problem about PHP-FPM in TCP socket and Unix socket

2012-03-02 Thread Daniel Fenn
This how I would look at it, if it on the same box use socket, and yes it is expected that socket is faster than TCP since (as far as I know) you don't need to deal with the overhead of TCP. Regards, Daniel Fenn On Sat, Mar 3, 2012 at 3:56 AM, Yuchen Wang wrote: > Hello all, > > I am tryin

RE: [PHP] Problem with date

2011-12-07 Thread admin
> -Original Message- > From: Jack [mailto:jacklistm...@gmail.com] > Sent: Wednesday, December 07, 2011 1:49 PM > To: PHP > Subject: [PHP] Problem with date > > Hello All, > > > > I have a problem where Dates are coming out as 12.31.1969 19:00:00 > which of > course we didn't have PC's

RE: [PHP] Problem with date

2011-12-07 Thread Jack
> To: PHP > Subject: RE: [PHP] Problem with date > > > > > > > How about a little debugging here (and possibly elsewhere): > > > > if (isset($pubdate) && ($pubdate >0)) { > > $pubdate=strtotime($pubdate); > >

RE: [PHP] Problem with date

2011-12-07 Thread Jack
> > How about a little debugging here (and possibly elsewhere): > > > > if (isset($pubdate) && ($pubdate >0)) { > > $pubdate=strtotime($pubdate); > > } else { > > die("Barf. Can't run a string to time conversion on 0 or -1."); > > } > > > Thanks Kevin, T

RE: [PHP] Problem with date

2011-12-07 Thread Jack Sasportas
> > > How about a little debugging here (and possibly elsewhere): > > if (isset($pubdate) && ($pubdate >0)) { > $pubdate=strtotime($pubdate); > } else { > die("Barf. Can't run a string to time conversion on 0 or -1."); > } > Thanks Kevin, This bombs

Re: [PHP] Problem with date

2011-12-07 Thread Jim Lucas
On 12/7/2011 10:48 AM, Jack wrote: > Hello All, > > I have a problem where Dates are coming out as 12.31.1969 19:00:00 which of > course we didn't have PC's in 1969 > > I'm not able to see where the date is getting screwed up, any ideas?? > > // >

Re: [PHP] Problem with date

2011-12-07 Thread Joshua Kehn
$pubdate is probably null or something. Regards, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Dec 7, 2011, at 1:48 PM, Jack wrote: > Hello All, > > > > I have a problem where Dates are coming out as 12.31.1969 19:00:00 which of > course we didn

Re: [PHP] problem with sending AT command in php

2011-11-18 Thread a dehqan
In The Name Of Allah Thank you all for attentions ; Weird but solved with using another symbolink of Device Weird because other App in linux in the same time were using for example /dev/ttyusb1 but php code works with /dev/ttyusb3 .. Regards dehqan On Tue, Nov 15, 2011 at 7:39 PM, Richard Quadl

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Richard Quadling
On 15 November 2011 15:12, Mike Mackintosh wrote: > > > On Nov 15, 2011, at 8:25, Richard Quadling wrote: > >> On 15 November 2011 11:50, a dehqan wrote: >>> \n is for Linux >>> \r is for Windows >>> >>> On 11/14/11, Richard Quadling wrote: On 12 November 2011 20:02, a dehqan wrote: >

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Mike Mackintosh
On Nov 15, 2011, at 8:25, Richard Quadling wrote: > On 15 November 2011 11:50, a dehqan wrote: >> \n is for Linux >> \r is for Windows >> >> On 11/14/11, Richard Quadling wrote: >>> On 12 November 2011 20:02, a dehqan wrote: dio_write($handle, 'AT') & dio_write($handle, "AT") make fire

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread Richard Quadling
On 15 November 2011 11:50, a dehqan wrote: > \n is for Linux > \r is for Windows > > On 11/14/11, Richard Quadling wrote: >> On 12 November 2011 20:02, a dehqan wrote: >>> dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out >>> on Waiting for localhost ... . >>> But dio_wr

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread a dehqan
\n is for Linux \r is for Windows On 11/14/11, Richard Quadling wrote: > On 12 November 2011 20:02, a dehqan wrote: >> dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out >> on Waiting for localhost ... . >> But dio_write($handle, "AT\n") makes it prints AT exactly the sam

Re: [PHP] problem with sending AT command in php

2011-11-14 Thread Richard Quadling
On 12 November 2011 20:02, a dehqan wrote: > dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out > on Waiting for localhost ... . > But dio_write($handle, "AT\n") makes it prints AT exactly the same command > or  A > A , .. > > On Sat, Nov 12, 2011 at 10:02 PM, Negin

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread a dehqan
dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out on Waiting for localhost ... . But dio_write($handle, "AT\n") makes it prints AT exactly the same command or A > A , .. On Sat, Nov 12, 2011 at 10:02 PM, Negin Nickparsa wrote: > are you sure about ATD03518726535\

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread Negin Nickparsa
are you sure about ATD03518726535\n? can you try if ( dio_write($handle, 'AT') )?

Re: [PHP] Problem with code...

2011-10-06 Thread tamouse mailing lists
On Thu, Oct 6, 2011 at 7:28 PM, Jason Pruim wrote: > Have a question about this block of code I'm not seeing anything immediately standing out as a problem. > Sometimes... It is dropping the last $mailmessage line... The payment method > in the actual email it sends... Can you see if the l

Re: [PHP] Problem with code...

2011-10-06 Thread Tommy Pham
On Thu, Oct 6, 2011 at 7:29 PM, Jason Pruim wrote: > > Jason Pruim > li...@pruimphotography.com > > > > On Oct 6, 2011, at 9:04 PM, George Langley wrote: > > > On 2011-10-06, at 6:28 PM, Jason Pruim wrote: > >> > >> >> > >> //SETUP VARIABLES > >> > >> $mailTo = "li...@pruimphotography.com"; > >>

Re: [PHP] Problem with code...

2011-10-06 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Oct 6, 2011, at 9:04 PM, George Langley wrote: > On 2011-10-06, at 6:28 PM, Jason Pruim wrote: >> >> > >> //SETUP VARIABLES >> >> $mailTo = "li...@pruimphotography.com"; >> $mailFrom = "li...@pruimphotography.com"; >> //These 2 can be changed IF you

Re: [PHP] Problem with code...

2011-10-06 Thread George Langley
On 2011-10-06, at 6:28 PM, Jason Pruim wrote: > > > //SETUP VARIABLES > > $mailTo = "li...@pruimphotography.com"; > $mailFrom = "li...@pruimphotography.com"; > //These 2 can be changed IF you know what you are doing and why! > $returnPath = $mailFrom; > $replyTo = $mailFrom; > $mailSubject = "N

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
On 8/11/2011 9:34 AM, Jason Pruim wrote: > > Hey Jim, > > Would that still hold true with inserting into a database which is the true > end of it? This is going to be a one time thing I'm doing and I'm trying to > make it a learning experience as I go since that's what everything should be > r

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jason Pruim
Jason Pruim pru...@gmail.com On Aug 11, 2011, at 11:52 AM, Jim Lucas wrote: > On 8/10/2011 6:22 PM, Jason Pruim wrote: >> So here I am attempting to generate some numbers to be inserted into a >> database... eventually they will make up a phone number (Which I've emailed >> about before and k

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jason Pruim
Jason Pruim pru...@gmail.com On Aug 11, 2011, at 9:35 AM, Andrew Ballard wrote: > On Wed, Aug 10, 2011 at 9:22 PM, Jason Pruim wrote: >> So here I am attempting to generate some numbers to be inserted into a >> database... eventually they will make up a phone number (Which I've emailed >> ab

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
On 8/10/2011 6:22 PM, Jason Pruim wrote: > So here I am attempting to generate some numbers to be inserted into a > database... eventually they will make up a phone number (Which I've emailed > about before and know about the bad ideas with it.. But it's the customer :)) > > Here is the code I

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Andrew Ballard
On Wed, Aug 10, 2011 at 9:22 PM, Jason Pruim wrote: > So here I am attempting to generate some numbers to be inserted into a > database... eventually they will make up a phone number (Which I've emailed > about before and know about the bad ideas with it.. But it's the customer :)) > > Here is t

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Ashley Sheridan
Jason Pruim wrote: >Replies below > > >Jason Pruim >li...@pruimphotography.com > > > >On Aug 10, 2011, at 11:08 PM, Ken Robinson wrote: > >> At 09:22 PM 8/10/2011, Jason Pruim wrote: >>> So here I am attempting to generate some numbers to be inserted into >a database... eventually they will mak

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Florian Lemaitre
Le 11/08/2011 13:08, Tamara Temple a écrit : On Aug 10, 2011, at 8:22 PM, Jason Pruim wrote: while ($num != "1") { Problem is here ^ You are testing a numeric $num with a string "1", which $num will *never* equal. Leave off the quotes on the number. Hum, I suggest you read this

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Tamara Temple
On Aug 10, 2011, at 8:22 PM, Jason Pruim wrote: So here I am attempting to generate some numbers to be inserted into a database... eventually they will make up a phone number (Which I've emailed about before and know about the bad ideas with it.. But it's the customer :)) Here is the cod

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jason Pruim
Replies below Jason Pruim li...@pruimphotography.com On Aug 10, 2011, at 11:08 PM, Ken Robinson wrote: > At 09:22 PM 8/10/2011, Jason Pruim wrote: >> So here I am attempting to generate some numbers to be inserted into a >> database... eventually they will make up a phone number (Which I've

RE: [PHP] Problem with inserting numbers...

2011-08-11 Thread Dajka Tamás
om: Tim Streater [mailto:t...@clothears.org.uk] Sent: Thursday, August 11, 2011 11:22 AM To: Jason Pruim Cc: PHP General List Subject: Re: [PHP] Problem with inserting numbers... On 11 Aug 2011 at 02:22, Jason Pruim wrote: > while ($num != "1") { >while($row = mysql_fetch_as

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Tim Streater
On 11 Aug 2011 at 02:22, Jason Pruim wrote: > while ($num != "1") { >while($row = mysql_fetch_assoc($result)) { >$padnum = number_pad($num, "4"); >echo $row['areacode'] . "-" . $row['prefix'] . "-" . $padnum . ""; >$num++; >} > > > } This is certain to fail.

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Ken Robinson
At 09:22 PM 8/10/2011, Jason Pruim wrote: So here I am attempting to generate some numbers to be inserted into a database... eventually they will make up a phone number (Which I've emailed about before and know about the bad ideas with it.. But it's the customer :)) Here is the code I am work

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread 李白|字一日
when $num++; executed $num will never be '1'; you may change the while loop to while ($num < 1) { while ($row = ... 2011/8/11 Jason Pruim > On Aug 10, 2011, at 9:36 PM, MUAD SHIBANI wrote: > > > Basically you can increase time limit for this file to handle your > request by usi

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Chris Stinemetz
> > basically all I'm trying to do is generate the last 4 digits starting at > and going up to . for testing purposes I'm just echoing back but will > eventually insert the complete number back into the database as a 7 digit > string. > > The error I'm getting is: > > Fatal error: Maxim

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Jason Pruim
On Aug 10, 2011, at 9:36 PM, MUAD SHIBANI wrote: > Basically you can increase time limit for this file to handle your request by > using > set_time_limit function ... Hi Maud, Looked into set_time_limit and even tried running it with a value of "120" but it didn't help... I'm affraid I have

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Finally I solved my problem! I have downloaded another version of cake that is less than 2 now it works like a charm:)

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
cool I found this hidden file .htaccess: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] well I don't know that this apache module is enabled or not I changed the apache2 in /etc/sysconfig and add the rewrite in modules right here: APACHE_

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
I have debugger.php in cake/libs I don't know why it doesn't access to this file and tell me can't find the class

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Thank you, I found that only the tmp directory must be writable then I used this one: also by right clicking and using wwwrun for user I tried to set them as you told chmod -R 0777 /srv/www/htdocs/first_app/app/tmp/ and the I get fatal Error: Fatal error

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Peet Grobler
On 8/7/2011 9:53 AM, Negin Nickparsa wrote: > Hello List > > I want to use Cake PHP ,I have downloaded it from it's site,rename the > folder to first_app > and copied it to > /srv/www/htdocs > > my root is here: > > /srv/www/htdocs > > by entering http://localhost/first_app/ > > it has some er

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Jason Pruim
On Jul 31, 2011, at 6:23 PM, Tamara Temple wrote: > > On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: > >> So I'm attempting to redirect back to the main site of a page after a >> successful insert into a database... Here's my code: >> > >> if (!$resp->is_valid) { >> // What happens whe

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Tamara Temple
On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. G

Re: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Jul 31, 2011, at 2:50 PM, Dajka Tamas wrote: > Try lowercase 'http'. Anything in error log? Try turning on display_errors. Tried both, upper and lower case http nothing changed... And nothing in the error log... I try a simple echo with a link and th

RE: [PHP] Problem with header("Location:" )...

2011-07-31 Thread Dajka Tamas
Try lowercase 'http'. Anything in error log? Try turning on display_errors. Cheers, Tamas -Original Message- From: Jason Pruim [mailto:li...@pruimphotography.com] Sent: Sunday, July 31, 2011 8:40 PM To: Subject: [PHP] Problem with header("Location:" )... So I'm attempting to r

Re: [PHP] problem in onclick

2011-05-20 Thread Ashley Sheridan
On Sat, 2011-05-21 at 00:42 +0430, Negin Nickparsa wrote: > why URL? I've read over this thread and the other one you created earlier. I really think you would do better if you took an hour or so to read over how the typical client/server web model works, as this is leading to a lot of confusion

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
why URL?

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 03:27 PM, Negin Nickparsa wrote: i want to click on the image then it stores the session so i can have many different tables in another one unique page suppose that i have A in my column when i click on image then it showed me the table of A in another page but if i click on the image

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
it is the result!!! Now = getdate(time()+TIMESEED*60); else $this->Now = getdate(($mode? $dd:strtotime($dd))); $this->Now["fyday"] = ($this->Now["yday"]+287)%365; if($this->Now["fyday"]==0) $this->Now["fyday"] = 365; } function getFarsiDate($mode, $fa=true, $echo=true) { $varStr = ""; switch($mode)

RE: [PHP] problem in onclick

2011-05-20 Thread admin
20, 2011 3:46 PM To: ad...@buskirkgraphics.com Cc: Robert Cummings; Andre Polykanine; tedd; php-general@lists.php.net Subject: Re: [PHP] problem in onclick i'm using http://localhost/ i don't have server like something.com i wrote url:'loadsession.php' instead of http:

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i'm using http://localhost/ i don't have server like something.com i wrote url:'loadsession.php' instead of http://www.yourserver.com/loadsession.php', and i deleted src="http://www.yourserver.com/js/jquery.js"; but it doesn't work what i must write in there?

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i want to click on the image then it stores the session so i can have many different tables in another one unique page suppose that i have A in my column when i click on image then it showed me the table of A in another page but if i click on the image of B then in the next page it will show me th

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 03:06 PM, Negin Nickparsa wrote: Robert could u plz exactly tell me how i can work with GET and write my SESSION i tried your code abt session but i didn't get it right but for another ones i tried and it was right Hi Negin, What part are you having a problem with? The first part o

RE: [PHP] problem in onclick

2011-05-20 Thread tedd
At 2:57 PM -0400 5/20/11, HallMarc Websites wrote: > At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: >Hi Richard, Tedd, > >Hey guys, you did understand what I meant. I meant you >can't just go and write a session variable by onclicking it in >JavaScript. You need

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
Robert could u plz exactly tell me how i can work with GET and write my SESSION i tried your code abt session but i didn't get it right but for another ones i tried and it was right

Re: [PHP] problem in onclick

2011-05-20 Thread Adam Richardson
On Fri, May 20, 2011 at 2:46 PM, tedd wrote: > At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: > >> Hi Richard, Tedd, >> >> Hey guys, you did understand what I meant. I meant you >> can't just go and write a session variable by onclicking it in >> JavaScript. You need AJA

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
> And there are some hosting companies that offer servers that run JavaScript > server side like Jaxer That is not an endorsement of any kind. I have yet to > sign up for an account. I do know that the idea of running JavaScript server > side has been kicked around since I think 1996. I just took

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 02:51 PM, HallMarc Websites wrote: And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been kicked

RE: [PHP] problem in onclick

2011-05-20 Thread tedd
At 2:51 PM -0400 5/20/11, HallMarc Websites wrote: And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been ki

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 02:30 PM, Andre Polykanine wrote: Hi Richard, Tedd, Hey guys, you did understand what I meant. I meant you can't just go and write a session variable by onclicking it in JavaScript. You need AJAX for that, don't you? You need a trip to the server whether it

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
> At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: > >Hi Richard, Tedd, > > > >Hey guys, you did understand what I meant. I meant you > >can't just go and write a session variable by onclicking it in > >JavaScript. You need AJAX for that, don't you? > > AJAX = JavaScript.

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been kicked around since I think 1996. -- PHP General Ma

Re: [PHP] problem in onclick

2011-05-20 Thread tedd
At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: Hi Richard, Tedd, Hey guys, you did understand what I meant. I meant you can't just go and write a session variable by onclicking it in JavaScript. You need AJAX for that, don't you? AJAX = JavaScript. AJAX is simply Ja

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, May 20, 2011 2:10 PM To: php-general@lists.php.net Subject: Re: [PHP] problem in onclick At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: >that is completely wrong. You're mixing up two things: PHP is a >server-side l

RE: [PHP] problem in onclick

2011-05-20 Thread admin
ginal Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, May 20, 2011 2:10 PM To: php-general@lists.php.net Subject: Re: [PHP] problem in onclick At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: >that is completely wrong. You're mixing up two things: PHP is a

Re: [PHP] problem in onclick

2011-05-20 Thread tedd
At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: that is completely wrong. You're mixing up two things: PHP is a server-side language, JavaScript is a client-side language. While that is true, it doesn't mean that the two languages can't communicate. Here's an example: http://webbyted

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
Hello Negin, that is completely wrong. You're mixing up two things: PHP is a server-side language, JavaScript is a client-side language. onClickis client-side, so you can't say onClick="" because onclick is performed *after* the PHP script something();"?>is *completely* fo

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
I tried,You solved my problem tanx very much Rob

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
It is completely wrong... JavaScript is client side technology (your browser), PHP is server side technology (your web server). To do what you want, you SHOULD just wrap the image in a link: If you MUST use JavaScript, then you can use onclick() to redirect: onclick="document.location( 'wher

Re: [PHP] Problem with PHP 5.3.3 under Debian/Squeeze

2011-03-20 Thread Stuart Dallas
On Sunday, 20 March 2011 at 18:38, Michelle Konzack wrote: Hello *, > > since I have re-installed with Debian/Squeeze on > a new machine, my /srv/log/apache/error.log ist arround 450 times bigger > then the access.log du to following (and similar) entries > > [ '/srv/log/apache/error.log' ]-

Re: [PHP] problem with if and exact match

2011-03-15 Thread Shawn McKenzie
On 03/15/2011 07:30 AM, Steve Staples wrote: > > Wouldn't this be better to use, as it is meant to search for the string > inside the string? (use use regex) > > if(stristr($name, 'Jackson')) > { > echo "String is in String"; > } > else > { > echo "Failed"; > } > > http://ca.php.net

RE: [PHP] problem with if and exact match

2011-03-15 Thread Steve Staples
0 AM > > To: Jack > > Subject: Re: [PHP] problem with if and exact match > > > > http://php.net/manual/en/function.preg-match.php > > > > On 14/03/11 23:02, Jack wrote: > > > I want to be able to match if a string is contained within the string > &g

Re: [PHP] problem with if and exact match

2011-03-15 Thread FeIn
gt; Sent: Tuesday, March 15, 2011 1:10 AM > > To: Jack > > Subject: Re: [PHP] problem with if and exact match > > > > http://php.net/manual/en/function.preg-match.php > > > > On 14/03/11 23:02, Jack wrote: > > > I want to be able to match if a string i

RE: [PHP] problem with if and exact match

2011-03-14 Thread Jack
Thanks everyone... great examples...works ( both methods ) Thanks! Jack > -Original Message- > From: Alexis Antonakis [mailto:ad...@antonakis.co.uk] > Sent: Tuesday, March 15, 2011 1:10 AM > To: Jack > Subject: Re: [PHP] problem with if and exact match > > htt

Re: [PHP] problem with if and exact match

2011-03-14 Thread Simon J Welsh
On 15/03/2011, at 6:02 PM, Jack wrote: > I want to be able to match if a string is contained within the string I am > evaluating. > > > > I know that if ( $name == "xxjacksonxx"); based on the below would be true. > > But I want to be able to say if "jackson" is contained within $name that >

Re: [PHP] problem with if and exact match

2011-03-14 Thread Admin
Try If(preg_match("/Jackson/i", $name)) {echo 'match'; }else{ echo 'fail'; } Richard Buskirk Sent from my iPhone On Mar 15, 2011, at 1:02 AM, "Jack" wrote: > I want to be able to match if a string is contained within the string I am > evaluating. > > > > I know that if ( $name == "xxjackson

Re: [PHP] Problem with Include

2010-12-21 Thread Bastien Koert
On Tue, Dec 21, 2010 at 1:28 PM, a...@ashleysheridan.co.uk wrote: > (Apologies for top posting; on my mobile just now.) > > Not true. Refactoring code is one of the main tasks of a developer. None of > us produce perfect code, and some code is less perfect than other code. It's > instinct to wan

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
Hello, Good points. If you are getting paid to do that then fine. There is a difference between enhancing code and wasting time. I do my best to come up with the best I can. I always take notes to perform better in upcoming projects. It is imperative to make good use of time. Unless it is a securi

Re: [PHP] Problem with Include

2010-12-21 Thread a...@ashleysheridan.co.uk
(Apologies for top posting; on my mobile just now.) Not true. Refactoring code is one of the main tasks of a developer. None of us produce perfect code, and some code is less perfect than other code. It's instinct to want to fix bad code when we're maintaining it or having to add new features t

Re: [PHP] Problem with Include

2010-12-21 Thread Ravi Gehlot
If something is working and you don't know exactly whats under the hood then you are wasting your time in trying to re-invent your own wheel and waste your time and resources to modify something that isn't needed to be touched. Good programmers make good use of their time as well. We need to keep i

Re: [PHP] Problem with Include

2010-12-21 Thread Paul M Foster
On Tue, Dec 21, 2010 at 02:35:33AM -0500, David Hutto wrote: > On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot wrote: > > Why mess with something that is already working? If you are trying to make > > it pretty then you are not solving a problem. You are creating one. > > > Define working. I've ha

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
On Tue, Dec 21, 2010 at 9:54 AM, David Hutto wrote: > On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown > wrote: >> On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote: >>> My point is that you tried to take code from one page and put it all >>> "organized" in another page and the include that page

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
On Tue, Dec 21, 2010 at 9:50 AM, Daniel P. Brown wrote: > On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote: >> My point is that you tried to take code from one page and put it all >> "organized" in another page and the include that page of includes back into >> the pages that you want it to feed

Re: [PHP] Problem with Include

2010-12-21 Thread Daniel P. Brown
On Tue, Dec 21, 2010 at 02:48, Ravi Gehlot wrote: > My point is that you tried to take code from one page and put it all > "organized" in another page and the include that page of includes back into > the pages that you want it to feed off from. If stuff works the way that it > does then there a r

Re: [PHP] Problem with Include

2010-12-21 Thread David Hutto
On Tue, Dec 21, 2010 at 2:48 AM, Ravi Gehlot wrote: > My point is that you tried to Not me personally. take code from one page and put it all > "organized" in another page and the include that page of includes back into > the pages that you want it to feed off from. If stuff works the way that

Re: [PHP] Problem with Include

2010-12-20 Thread Ravi Gehlot
My point is that you tried to take code from one page and put it all "organized" in another page and the include that page of includes back into the pages that you want it to feed off from. If stuff works the way that it does then there a reason for it to have been done that way. That's why documen

Re: [PHP] Problem with Include

2010-12-20 Thread David Hutto
On Tue, Dec 21, 2010 at 2:29 AM, Ravi Gehlot wrote: > Why mess with something that is already working? If you are trying to make > it pretty then you are not solving a problem. You are creating one. Define working. I've had programs 'work', but more experienced would say it's flawed in some resp

  1   2   3   4   5   6   7   8   9   10   >