[symfony-users] Re: eAccelerator settings

2009-09-24 Thread Sumedh

No one? :(

On Sep 23, 4:07 pm, Sumedh  wrote:
> Hi All,
>
> I configured eAccecerator successfully on an ubuntu server...
>
> Now I wanted to know a little bit more about how to tweak default
> settings -
>
> http://www.eaccelerator.net/wiki/Settings
>
> I didn't find much around on web...can someone put some light?
>
> Following settings look interesting to me -
>
> eaccelerator.shm_size
> eaccelerator.shm_max
> eaccelerator.shm_ttl
> eaccelerator.shm_prune_period
>
> How much memory should I allocate to it?
>
> I have a single server with 2 GB RAM and it runs symfony on apache and
> mysql.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] eAccelerator settings

2009-09-23 Thread Sumedh

Hi All,

I configured eAccecerator successfully on an ubuntu server...

Now I wanted to know a little bit more about how to tweak default
settings -

http://www.eaccelerator.net/wiki/Settings

I didn't find much around on web...can someone put some light?

Following settings look interesting to me -

eaccelerator.shm_size
eaccelerator.shm_max
eaccelerator.shm_ttl
eaccelerator.shm_prune_period

How much memory should I allocate to it?

I have a single server with 2 GB RAM and it runs symfony on apache and
mysql.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Problem with new lines in text emails

2009-08-13 Thread Sumedh

Hi Friends,

We send text emails using symfony 1.0...

A peculiar problem is with newlines...sometimes, even if a line is
written on a new line in the editor (Eclipse), it is not taken as new
line in Outlook...and the line just continues in the same line...

When I make it 2 new lines in the template, it promptly gets converted
to 2 new lines in Outlook... :)

Also, this problem is not with all the lines in the email...it happens
only sometimes...

Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem in downloading a file via an action...

2009-08-13 Thread Sumedh

The problem was solved when I used an ordinary form instead of AJAX
one.

On Aug 11, 4:04 pm, juzek  wrote:
> //content-disposition, attachement// sets only filename under which
> the file will be saved from the browser.
> it doesn't send the file to the browser , in  fact.
>
> Try using
>
> $this->renderText('sample text from the file')
>
> after setting the headers.
>
> that text will be send as a file to the browser.
>
> Sumedh napisał(a):
>
> > One more thing to add...
>
> > We are trying this through an AJAX action...
>
> > could that be a problem?
>
> > On Aug 10, 4:13 pm, Sumedh  wrote:
> > > Hi Friends,
>
> > > We are trying to download a file in Symfony 1.0 action...
>
> > > But it just returns the content as text in the HTTP response and the
> > > file-save dialog of the browser doesn't appear at all... :(
>
> > > Here is the snippet from action. It tries to send a couple of words as
> > > a PDF file -
>
> > > $filename="ravi.pdf";
>
> > > $this->getResponse()->setHttpHeader('Pragma', 'public');
>
> > > $this->getResponse()->setHttpHeader("Content-Description","File
> > > Transfer");
>
> > > $this->getResponse()->setContentType('application/pdf',TRUE);
>
> > > $this->getResponse()->setHttpHeader('content-transfer-encoding',
> > > 'binary', TRUE);
>
> > > $this->getResponse()->setHttpHeader("Content-Disposition","attachment;
> > > filename=\"".$filename."\"", TRUE);
>
> > > $this->getResponse()->sendHttpHeaders();
>
> > > $this->getResponse()->setContent("sample content");
>
> > > return sfView::NONE;
>
> > > What's the issue with the code?
>
> > > Thanks a lot for reading... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem in downloading a file via an action...

2009-08-10 Thread Sumedh

One more thing to add...

We are trying this through an AJAX action...

could that be a problem?

On Aug 10, 4:13 pm, Sumedh  wrote:
> Hi Friends,
>
> We are trying to download a file in Symfony 1.0 action...
>
> But it just returns the content as text in the HTTP response and the
> file-save dialog of the browser doesn't appear at all... :(
>
> Here is the snippet from action. It tries to send a couple of words as
> a PDF file -
>
> $filename="ravi.pdf";
>
> $this->getResponse()->setHttpHeader('Pragma', 'public');
>
> $this->getResponse()->setHttpHeader("Content-Description","File
> Transfer");
>
> $this->getResponse()->setContentType('application/pdf',TRUE);
>
> $this->getResponse()->setHttpHeader('content-transfer-encoding',
> 'binary', TRUE);
>
> $this->getResponse()->setHttpHeader("Content-Disposition","attachment;
> filename=\"".$filename."\"", TRUE);
>
> $this->getResponse()->sendHttpHeaders();
>
> $this->getResponse()->setContent("sample content");
>
> return sfView::NONE;
>
> What's the issue with the code?
>
> Thanks a lot for reading... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Problem in downloading a file via an action...

2009-08-10 Thread Sumedh

Hi Friends,

We are trying to download a file in Symfony 1.0 action...

But it just returns the content as text in the HTTP response and the
file-save dialog of the browser doesn't appear at all... :(

Here is the snippet from action. It tries to send a couple of words as
a PDF file -

$filename="ravi.pdf";

$this->getResponse()->setHttpHeader('Pragma', 'public');

$this->getResponse()->setHttpHeader("Content-Description","File
Transfer");

$this->getResponse()->setContentType('application/pdf',TRUE);

$this->getResponse()->setHttpHeader('content-transfer-encoding',
'binary', TRUE);

$this->getResponse()->setHttpHeader("Content-Disposition","attachment;
filename=\"".$filename."\"", TRUE);

$this->getResponse()->sendHttpHeaders();

$this->getResponse()->setContent("sample content");

return sfView::NONE;


What's the issue with the code?

Thanks a lot for reading... :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Passing request attribute to another partial

2009-07-14 Thread Sumedh

Hi Friends,

I am using Symfony 1.0

I am setting a request attribute in one partial that is included in
the layout.php. I am trying to access this request attribute in
another partial that is part of content.

The partial which sets the value is included above the one that is
trying to read it.

But the value is not available when it is read...

What might  be a possible reason?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Securing symfony backend

2009-07-01 Thread Sumedh

Hi Friends,

I am using symfony 1.0. I want to put symfony backend on live server
to edit some tables. I want to secure access to it by more means than
the current simple password protection.

I want to secure it by IP access ('Allow' directive of apache) and
digest authentication.

So, I created a backend/ folder in web/ and moved the backend.php
front controller there. Then I created an .htaccess as follows and
made necessary changes in httpd.conf -

AuthType Digest
AuthName "backend"
AuthDigestDomain /backend/
AuthDigestProvider file
AuthUserFile 
Require valid-user

Order allow,deny
Allow from 

Now, this is all working fine when I access the backend as
http://example.com/backend/backend.php/listing/list for the basic PHP
files.
But the images and CSS files aren't getting loaded as they are looked
up in the backend/ subfolder, when they are actually present in web/
folder itself.

i.e. http://stage.zamanzar.com/backend/sf/sf_admin/css/main.css is
looked up instead it should look for 
http://stage.zamanzar.com/sf/sf_admin/css/main.css

How do I make this change?

Thanks in advance... :)

BTW, I voted for symfony in the sourceforge contest...Cheers!!! :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: tinyMCE not working

2009-04-22 Thread Sumedh

The files are in web/js only...

I am using symfony in "frozen" state, so /usr/share directory doesn't
come into picture, right?

On Apr 21, 7:48 pm, Eno  wrote:
> On Tue, 21 Apr 2009, Alexandru-Emil Lupu wrote:
> > on linux OS, you have to check permissions of sf directory in
> > /usr/share/php/data/
>
> Or copy those files into web/js.
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] tinyMCE not working

2009-04-21 Thread Sumedh

Hi Friends,

I am using Symfony 1.0...just tried to create a simple rich text
textarea using tinyMCE as given in

http://www.symfony-project.org/book/1_0/10-Forms#Rich%20Text%20Editing

But it's not working...

I downloaded tinyMCE v 3.2.2.3 and create a textarea with rich=true
option...

But I get JS error "e is undefined" and "tinyMCE is not defined"...

I can see the tinyMCE JS file included correctly in the source, and I
can get that file to browser if I paste the src url from the page
source (src="/js/tiny_mce/tiny_mce.js")...

Is this an issue with version?

Which version do you guys use? I'll try to download that version and
try again...

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Symfony Batch script + Emails + Request Parameters...

2009-03-26 Thread Sumedh

Hi Friends,

I am using Symfony 1.0. This is a problem discussed in other places on
the forum but I didn't get a concrete answer...

I am sending emails via a batch script.

I need to send parameters to the email module via request params or
attributes...

It sends the data but gives warnings like -

PHP Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/
request/sfWebRequest.class.php on line 384
Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/request/
sfWebRequest.class.php on line 384
PHP Notice: Undefined index: SERVER_PORT in /usr/share/php/symfony/
request/sfWebRequest.class.php on line 406

And so on...

This happens because there is no http request for CLI...

So, how can I overcome this problem? How do I define another
environment like 'batch' and still use sfRequest class for sending and
receiving parameters?

I can of course put everything in DB and then fetch it back in the
mail module...but that's convoluted...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Buffer sizes for a typical Symfony Linux server

2009-03-19 Thread Sumedh

No one... :(

sob sob... :)

Sumedh wrote:
> Hi All,
>
> We are upgrading our server and feeding him with more memory...(4GB)
>
> What config changes should typically be done to accommodate extra
> memory?
>
> What are recommended values for these?
>
> What values do you use for these settings?
>
> Here are some of the items I found -
>
> 1. Apache maximum processes count (prefork mpm) - How about 80?
>
> 2. PHP memory limit. 32M? 64M?
>
> 3. Mysql buffers. Do you use separate key caches for different tables?
> Here is what I came up with -
>
> key_buffer_size = 256M
> sort_buffer = 2M
> read_rnd_buffer_size = 2M
> read_buffer_size = 2M
> tmp_table_size = 64M
> max_heap_table_size = 64M
> thread_cache_size = 16
> query_cache_size = 200M
>
> Anything to add/modify?
>
> A big problem I think here is MySQL 5.0 requires restart for any
> change in the config. This has been improved in 5.1, right?
>
> Anything else pertaining to RAM usage that I can improve?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Buffer sizes for a typical Symfony Linux server

2009-03-10 Thread Sumedh

Hi All,

We are upgrading our server and feeding him with more memory...(4GB)

What config changes should typically be done to accommodate extra
memory?

What are recommended values for these?

What values do you use for these settings?

Here are some of the items I found -

1. Apache maximum processes count (prefork mpm) - How about 80?

2. PHP memory limit. 32M? 64M?

3. Mysql buffers. Do you use separate key caches for different tables?
Here is what I came up with -

key_buffer_size = 256M
sort_buffer = 2M
read_rnd_buffer_size = 2M
read_buffer_size = 2M
tmp_table_size = 64M
max_heap_table_size = 64M
thread_cache_size = 16
query_cache_size = 200M

Anything to add/modify?

A big problem I think here is MySQL 5.0 requires restart for any
change in the config. This has been improved in 5.1, right?

Anything else pertaining to RAM usage that I can improve?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony Production Performance improvements

2009-03-09 Thread Sumedh

My 2 cents...slow query log in mysql should help a lot...

Please let us know your insights at the end of your exercise... :)

On Mar 9, 3:41 pm, Gareth McCumskey  wrote:
> I just tried using Propel 1.3 on our application and while I would love to
> continue using it (as it seemed to produce a little more efficieny) we can't
> use it for now because the servers that the app will run on are Centos 4
> with PHP 5.1.x as its maximum version for now. The sysadmins here say that
> to force an upgrade to 5.2.x would be a hard task as to retain RedHat
> support it means they would need to upgrade to Centos 5.
>
> I am currently looking at the chapter about Optimising symfony and the
> function cache seems to be something we cna consider doing in a lot of our
> model calls from the action to help speed things up, especially for model
> methods that access historical data (i.e. stuff dated in the past that
> obviously wont change on subsequent calls) but these are relatively large
> coding changes which we will probably only do during our beta development
> phase.
>
> I am still looking through more advise recieved from this post and I have to
> thank everyone for their input. I honestly didn't expect this response and
> it has been fantastic and very helpful.
>
> On Mon, Mar 9, 2009 at 12:49 AM, Crafty_Shadow  wrote:
>
> > Symfony 1.1 came by default with Propel 1.2
> > You can try upgrading to 1.3 (it isn't really a trivial task, but it
> > shouldn't be a big problem)
> > There is thorough explanation on the symfony site how to do it:
> >http://www.symfony-project.org/cookbook/1_1/en/propel_13
> > It should fare a measurable increase in performance. Also, a site that
> > makes good use of cache should have caching for absolutely everything
> > not session-dependent. I find it hard to imagine a php app, no matter
> > how fast, that would run faster than symfony's cached output.
>
> > Alvaro:
> > Is your plugin based on Propel 1.3?
> > If you believe you have made significant improvements to Propel, why
> > not suggest them for version 2.0, which is still under heavy
> > development?
>
> > On Mar 8, 4:33 pm, alvaro  wrote:
> > > At the company I developed a symfony plugin to optimize the Propel
> > > queries and also the Propel hydrate method, improving even 5 times
> > > query speed and also memory usage.
>
> > > The plugins supports joins and thanks to PHP features the plugin
> > > returns Propel objects populated with custom AS columns.
>
> > > We are thinking on release it on the following weeks so stay tuned :)
>
> > > Regards,
>
> > > Alvaro
>
> > > On Mar 8, 2009, at 10:20 PM, Gareth McCumskey wrote:
>
> > > > We have put numerous caching techniques into effect, from Cache-
> > > > Expires headers to compression of static files like js and html
> > > > files. Currently we use symfony 1.1 and Propel as the ORM. We have
> > > > identified the bottleneck generally as being the application
> > > > processing after the db queries have run to extract the data.
>
> > > > The entire point of my question was to get some info on general tips
> > > > and tricks we can try out to see if anything helps or if perhaps we
> > > > have missed any obvious issues that may actually be the cause of the
> > > > slow performance we are getting. As it is I have gotten quite a few
> > > > and look forward to getting into the office tomorrow to try them
> > > > out. Anymore is greatly appreciated.
>
> > > > Of course I am looking through the code to see if there is anyway we
> > > > can streamline it on that end, but every little bit helps.
>
> > > > Gareth
>
> > > > On Sun, Mar 8, 2009 at 12:27 PM, Crafty_Shadow 
> > > > wrote:
>
> > > > Gareth, you didn't mention what version of symfony you were using,
> > > > also what ORM (if any).
> > > > The best course of optimization will depend on those. Also, as already
> > > > mentioned, caching is your best friend.
>
> > > > On Mar 8, 9:43 am, Gareth McCumskey  wrote:
> > > > > Well, consider a single database table that looks something like
> > > > this:
>
> > > > > From_address
> > > > > to_address (possibly multiple addresses comma-seperated)
> > > > > headers
> > > > > spam_report
> > > > > subject
>
> > > > > And we would have millions of those records in the database.
> > > > Repeated
> > > > > entries, especially on to_address, means the data is hugely
> > > > redundant. By
> > > > > normalising we are turning a text search across millions of
> > > > records with
> > > > > redundant repeated data into a text search over a unique list,
> > > > then an
> > > > > integer search over primary key (which of course is indexed).
>
> > > > > On Sun, Mar 8, 2009 at 9:37 AM, Lawrence Krubner
> > > > wrote:
>
> > > > > > On Mar 8, 3:26 am, Gareth McCumskey  wrote:
> > > > > > > We had a speed increase because we had a lot of text searches
> > > > in the old
> > > > > > > system, all going through text fields where the same values
> > > > were repeated
> > > > > > > over and over. Its therefor

[symfony-users] sfFunctionCache causing Segmentation fault?

2009-03-03 Thread Sumedh

Hi Friends,

I am executing this simple code -

$city=$this->getRequestParameter('city');

$function_cache_dir = sfConfig::get('sf_cache_dir').'/function';

$fc = new sfFunctionCache($function_cache_dir);

// set life time for city cache is define in app.yml file
$fc->setLifeTime(sfConfig::get
('app_zamanzarsettings_function_time_out'));

//get areaslist for a city from valuation table
$area = $fc->call('ValuationPeer::getAllAreas',$city);

return $this->renderText($area);

But this code is causing segmentation fault -
   child pid 12229 exit signal Segmentation fault (11)

The code works fine in my DEV environment. Probably related to some
difference in PHP version.

sfFunctionCache is working fine for similar code in other places...

Anyone has any idea?

Thanks... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Overriding javascript_include_tag

2009-03-03 Thread Sumedh

Okk...

What about 1.0? :|

On Mar 3, 1:25 pm, naholyr  wrote:
> I'm not sure you can override core-helpers.
>
> I worked (for Symfony 1.2) on a way to write helpers as classes and
> not as functions, allowing inheritance, and a way to "overclass"
> helpers (basically, it says "when you want to load 'asset', please
> load 'azzet' instead". This overclassing feature could be a solution
> for you, if you use 1.1 or 1.2, it's a basic override of
> sfApplicationConfiguration::loadHelpers() :
>
> Something like the code below (just a draft, don't copy-paste without
> checking), says to the helpers loader to load "myAssetHelper" instead
> of "assetHelper" :
>
> class myAppConfiguration extends sfApplicationHelper
> {
>
>   public function loadHelpers($helpers)
>   {
>     foreach ($helpers as &$helper) {
>       if ($helper == 'asset') {
>         $helper = 'myAsset';
>       }
>     }
>
>     parent::loadHelpers($helpers);
>   }
>
> }
>
> On 3 mar, 08:34, Sumedh  wrote:
>
> > Hi All,
>
> > I want to override javascript_include_tag() from assethelper for
> > versioning static files as given in this thread -
>
> > groups.google.com/group/symfony-users/browse_thread/thread/
> > a7a7334235a55e74/6296231624a8d1df
>
> > But, when I copy assethelper class in my own lib, and change code for
> > one function, it still doesn't get called (even after symfony cc)...
>
> > what might be the problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Overriding javascript_include_tag

2009-03-02 Thread Sumedh

Hi All,

I want to override javascript_include_tag() from assethelper for
versioning static files as given in this thread -

groups.google.com/group/symfony-users/browse_thread/thread/
a7a7334235a55e74/6296231624a8d1df

But, when I copy assethelper class in my own lib, and change code for
one function, it still doesn't get called (even after symfony cc)...

what might be the problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Disable JS events until page fully loads

2009-02-27 Thread Sumedh

Hi Friends,

I've put all my JS includes at the bottom of pages...that improves
visible performance of the page...

But if user clicks somewhere on the page before it fully loads, it
fires JS errors as the JS file is not found yet...

How can I fix this generically?

I want to disable all JS events like onclicks and onmouseovers until
page is loaded...i will enable them in window.onload()...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfFunctionCache examples

2009-02-27 Thread Sumedh

Hi Friends,

I wanted to use sfFunctionCache for the stuff where I can't use
symfony action cache...

I refered to the following -

http://www.symfony-project.org/book/1_0/18-Performance

http://www.symfony-project.org/api/1_0/sfFunctionCache

Are there some other references that are more elaborate and show
examples about -

1. Lifetime - invalidation options

2. Read/Write locks and their implications

I also sometimes get an error that says -

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to
allocate 146399232 bytes) in /usr/share/php/symfony/cache/
sfFunctionCache.class.php on line 60

Any idea why that might be happening? How can I fix it? :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Need help with Apache Rewrite rule...

2009-02-19 Thread Sumedh

Got it working...

Some foolish mistake from my side... :|

On Feb 20, 10:39 am, Sumedh  wrote:
> Actually I tried with and without [L] ...it doesn't work either way...
>
> On Feb 19, 5:53 pm, noel guilbert  wrote:
>
> > Hello,
>
> > I think you missed the "[L]" flag at the end of your rule:
>
> >  RewriteRule ^(scripts|css|images)/(.+)\.(.+)\.(js|css|jpg|gif|png)$ [L]
>
> > On Thu, Feb 19, 2009 at 1:47 PM, Sumedh  wrote:
>
> > > Hi Friends,
>
> > > I am trying to implement versioning to my resource files as give here
> > > -
> > >http://particletree.com/notebook/automatically-version-your-css-and-j...
>
> > > So, I am generating css and js file references as abcd..js
> > > and want to rewrite them to abcd.js via .htaccess...
>
> > > I added the rule he has given as -
>
> > > 
> > >  RewriteEngine On
>
> > >  # uncomment the following line, if you are having trouble
> > >  # getting no_script_name to work
> > >  #RewriteBase /
>
> > >  ### THIS IS WHAT I HAVE ADDED
> > >  RewriteRule ^(scripts|css|images)/(.+)\.(.+)\.(js|css|jpg|gif|png)$
> > > $1/$2.$4
>
> > >  # we skip all files with .something
> > >  RewriteCond %{REQUEST_URI} \..+$
> > >  #condition that says - DONT SKIP A URL WITH . AND THEN / - THIS IS
> > > FOR AREAS WITH DOTS
> > >  RewriteCond %{REQUEST_URI} !\..*/.*$
> > >  RewriteCond %{REQUEST_URI} !\.html$
> > >  RewriteRule .* - [L]
>
> > >  # we check if the .html version is here (caching)
> > >  RewriteRule ^$ index.html [QSA]
> > >  RewriteRule ^([^.]+)$ $1.html [QSA]
> > >  RewriteCond %{REQUEST_FILENAME} !-f
>
> > >  # no, so we redirect to our front web controller
> > >  RewriteRule ^(.*)$ frontend_dev.php [QSA,L]
> > > 
>
> > > but this doesn't seem to be working...
>
> > > Can someone please help me?
>
> > > Where can I find a simple to understand reference to apache rewrite
> > > rules? Apache documentation is too hard to understand...and has no
> > > examples...
>
> > --
> > Noël 
> > GUILBERThttp://www.noelguilbert.com/http://www.sensiolabs.comhttp://www.symfo...
> > Sensio Labs
> > Tél: +33 1 40 99 80 80
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Prepopulating the symfony cache

2009-02-19 Thread Sumedh

Related to this post -
http://groups.google.com/group/symfony-users/browse_thread/thread/613f10f98ac2ddbd/

But not getting responses there... ;)

Basically I want to crawl and prepopulate the symfonyt cache...for
that I want to crawl only the pages that are not yet cached...

I tried cachemanager->has() method, but it's not working...any
suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Need help with Apache Rewrite rule...

2009-02-19 Thread Sumedh

Actually I tried with and without [L] ...it doesn't work either way...

On Feb 19, 5:53 pm, noel guilbert  wrote:
> Hello,
>
> I think you missed the "[L]" flag at the end of your rule:
>
>  RewriteRule ^(scripts|css|images)/(.+)\.(.+)\.(js|css|jpg|gif|png)$ [L]
>
>
>
> On Thu, Feb 19, 2009 at 1:47 PM, Sumedh  wrote:
>
> > Hi Friends,
>
> > I am trying to implement versioning to my resource files as give here
> > -
> >http://particletree.com/notebook/automatically-version-your-css-and-j...
>
> > So, I am generating css and js file references as abcd..js
> > and want to rewrite them to abcd.js via .htaccess...
>
> > I added the rule he has given as -
>
> > 
> >  RewriteEngine On
>
> >  # uncomment the following line, if you are having trouble
> >  # getting no_script_name to work
> >  #RewriteBase /
>
> >  ### THIS IS WHAT I HAVE ADDED
> >  RewriteRule ^(scripts|css|images)/(.+)\.(.+)\.(js|css|jpg|gif|png)$
> > $1/$2.$4
>
> >  # we skip all files with .something
> >  RewriteCond %{REQUEST_URI} \..+$
> >  #condition that says - DONT SKIP A URL WITH . AND THEN / - THIS IS
> > FOR AREAS WITH DOTS
> >  RewriteCond %{REQUEST_URI} !\..*/.*$
> >  RewriteCond %{REQUEST_URI} !\.html$
> >  RewriteRule .* - [L]
>
> >  # we check if the .html version is here (caching)
> >  RewriteRule ^$ index.html [QSA]
> >  RewriteRule ^([^.]+)$ $1.html [QSA]
> >  RewriteCond %{REQUEST_FILENAME} !-f
>
> >  # no, so we redirect to our front web controller
> >  RewriteRule ^(.*)$ frontend_dev.php [QSA,L]
> > 
>
> > but this doesn't seem to be working...
>
> > Can someone please help me?
>
> > Where can I find a simple to understand reference to apache rewrite
> > rules? Apache documentation is too hard to understand...and has no
> > examples...
>
> --
> Noël 
> GUILBERThttp://www.noelguilbert.com/http://www.sensiolabs.comhttp://www.symfony-project.com
> Sensio Labs
> Tél: +33 1 40 99 80 80
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Need help with Apache Rewrite rule...

2009-02-19 Thread Sumedh

Hi Friends,

I am trying to implement versioning to my resource files as give here
-
http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/

So, I am generating css and js file references as abcd..js
and want to rewrite them to abcd.js via .htaccess...

I added the rule he has given as -


  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  #RewriteBase /

  ### THIS IS WHAT I HAVE ADDED
  RewriteRule ^(scripts|css|images)/(.+)\.(.+)\.(js|css|jpg|gif|png)$
$1/$2.$4

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  #condition that says - DONT SKIP A URL WITH . AND THEN / - THIS IS
FOR AREAS WITH DOTS
  RewriteCond %{REQUEST_URI} !\..*/.*$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ frontend_dev.php [QSA,L]


but this doesn't seem to be working...

Can someone please help me?

Where can I find a simple to understand reference to apache rewrite
rules? Apache documentation is too hard to understand...and has no
examples...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Using CacheManager->has() in batch script...

2009-02-19 Thread Sumedh

Yeah, here it is -
http://www.symfony-project.org/book/1_0/18-Performance#chapter_18_sub_generating_cached_pages

But, I would still need to use this cache manager object to get me the
list of pages that are not yet cached... :(

I want to crawl like 300,000 pages...some of which will get
invalidated...I don't
want to crawl everything unnecessarily... :|

On Feb 19, 3:54 pm, alvaro  wrote:
> Maybe you can use the sfBrowser for your batch script, I think there  
> is an example on the symfony book, in the chapter regarding performance.
>
> Cheers,
>
> Alvaro
>
> On Feb 19, 2009, at 3:39 PM, Sumedh wrote:
>
>
>
> > No one? :|
>
> > On Feb 18, 11:30 am, Sumedh  wrote:
> >> Anyone?
>
> >> Does anyone here use this practice of warming up cache by crawling  
> >> the
> >> pages after a build?
>
> >> On Feb 17, 2:21 pm, Sumedh  wrote:
>
> >>> Hi Friends,
>
> >>> I am using Symfony 1.0.
>
> >>> I am trying to write a batch script that tries to populate the  
> >>> symfony
> >>> cache by crawling (wget in spider mode) some pages of the site.
>
> >>> Now, I want to crawl only the pages that are not in cache, for  
> >>> better
> >>> efficiency.
>
> >>> So, I want to use $cacheManager->has($internalUri) condition...
>
> >>> But, this condition always returns false, even if action for the
> >>> passed internalUri is cached.
>
> >>> When I echoed the url_for($internalUri) in the batch script, I got  
> >>> the
> >>> URL correctly, apart from base of the URL. It returns something like
> >>> http://.php/. Is this
> >>> the problem because of which cache manager can't find the passed
> >>> internalUri in cache?
>
> >>> This particular internalUri works fine for internal links within the
> >>> site...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Using CacheManager->has() in batch script...

2009-02-18 Thread Sumedh

No one? :|

On Feb 18, 11:30 am, Sumedh  wrote:
> Anyone?
>
> Does anyone here use this practice of warming up cache by crawling the
> pages after a build?
>
> On Feb 17, 2:21 pm, Sumedh  wrote:
>
> > Hi Friends,
>
> > I am using Symfony 1.0.
>
> > I am trying to write a batch script that tries to populate the symfony
> > cache by crawling (wget in spider mode) some pages of the site.
>
> > Now, I want to crawl only the pages that are not in cache, for better
> > efficiency.
>
> > So, I want to use $cacheManager->has($internalUri) condition...
>
> > But, this condition always returns false, even if action for the
> > passed internalUri is cached.
>
> > When I echoed the url_for($internalUri) in the batch script, I got the
> > URL correctly, apart from base of the URL. It returns something like
> > http://.php/. Is this
> > the problem because of which cache manager can't find the passed
> > internalUri in cache?
>
> > This particular internalUri works fine for internal links within the
> > site...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] resource files versioning

2009-02-18 Thread Sumedh

This is related to this thread -

http://groups.google.com/group/symfony-users/browse_thread/thread/a7a7334235a55e74

But it's closed I guess...can't reply to it...

I tried copying AssetHelper file to my own lib/ folder and wrote
javascript_include_tag() function in it...but my code still picks up
the symfony file and not my file...

What might be the issue?

Thanks in advance...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Using CacheManager->has() in batch script...

2009-02-17 Thread Sumedh

Anyone?

Does anyone here use this practice of warming up cache by crawling the
pages after a build?

On Feb 17, 2:21 pm, Sumedh  wrote:
> Hi Friends,
>
> I am using Symfony 1.0.
>
> I am trying to write a batch script that tries to populate the symfony
> cache by crawling (wget in spider mode) some pages of the site.
>
> Now, I want to crawl only the pages that are not in cache, for better
> efficiency.
>
> So, I want to use $cacheManager->has($internalUri) condition...
>
> But, this condition always returns false, even if action for the
> passed internalUri is cached.
>
> When I echoed the url_for($internalUri) in the batch script, I got the
> URL correctly, apart from base of the URL. It returns something like
> http://.php/. Is this
> the problem because of which cache manager can't find the passed
> internalUri in cache?
>
> This particular internalUri works fine for internal links within the
> site...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem with prototype include

2009-02-17 Thread Sumedh

The view.yml file has following line -


  javascripts:[]


but no specific mention of the prototype JS...

The template doesn't have anything special...i used an AJAX call in
it, and it spit out the error about that function not being present...

On Feb 12, 5:09 pm, Martino Piccinato  wrote:
> can we see the template page?
> have you checked you view.yml file to see if prototype is loaded from there?
>
> On Thu, Feb 12, 2009 at 12:49 PM, Sumedh  wrote:
>
> > Hi Friends,
>
> > I just created a new module and a new template page in it.
>
> > I am facing a problem that prototype JS is not getting included in the
> > page. It works fine for other pages on the site so far.
>
> > What might be the cause? :|
>
> > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Using CacheManager->has() in batch script...

2009-02-17 Thread Sumedh

Hi Friends,

I am using Symfony 1.0.

I am trying to write a batch script that tries to populate the symfony
cache by crawling (wget in spider mode) some pages of the site.

Now, I want to crawl only the pages that are not in cache, for better
efficiency.

So, I want to use $cacheManager->has($internalUri) condition...

But, this condition always returns false, even if action for the
passed internalUri is cached.

When I echoed the url_for($internalUri) in the batch script, I got the
URL correctly, apart from base of the URL. It returns something like
http://.php/. Is this
the problem because of which cache manager can't find the passed
internalUri in cache?

This particular internalUri works fine for internal links within the
site...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Problem with prototype include

2009-02-12 Thread Sumedh

Hi Friends,

I just created a new module and a new template page in it.

I am facing a problem that prototype JS is not getting included in the
page. It works fine for other pages on the site so far.

What might be the cause? :|

Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Body onload after posting a form

2009-02-10 Thread Sumedh

Nope...it's in the template file...it's getting rendered fine when the
page is loaded first...

after form submit, if there is an error, the body tag doesnt have any
onload... :(

I am using only one layout file...

On Feb 10, 4:15 pm, Bernhard Schussek  wrote:
> Hi,
>
> On Tue, Feb 10, 2009 at 11:51 AM, Sumedh  wrote:
> > But can't we make symfony generate the same Body tag it generated on
> > the original page? :(
>
> Well, one thing that we don't know is where your body tag is defined.
> Is it defined in your layout.php file? Are you using different layouts
> for the different templates?
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Reducing Apache memory consumption...

2009-02-10 Thread Sumedh

Hi Friends,

I am using apache 2.2 in prefork MPM...

I wanted to reduce the memory footprint of a single httpd process so
that more processes can get accommodated in given memory...

So, I've removed unnecessary LoadModule statements from httpd.conf...

But that doesn't seem to lower the memory footprint...

It still shows around 13-14 mb in top output in RES column...

Could someone put some light?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Body onload after posting a form

2009-02-10 Thread Sumedh

But can't we make symfony generate the same Body tag it generated on
the original page? :(

On Feb 10, 2:05 pm, Lupu Alexandru-Emil  wrote:
> you might wanna try "document.onDomReady"
>
> On Tue, Feb 10, 2009 at 8:16 AM, Sumedh  wrote:
>
> > No...we aren't using anything like jQuery...
>
> > It's a simple html body tag defined in the template...
>
> > After the error is handled, the template gets re-executed...but the
> > body tag is rendered without the onload attribute it had before form
> > submit... :(
>
> > I didn't find this behavior in the documentation... :|
>
> > On Feb 10, 12:22 am, Bernhard Schussek  wrote:
> > > Do you use any kind of Javascript framework? If yes, those mostly
> > > provide handlers for the document load event (f.i.
> > > $(document).ready(function() {...})) in jQuery. This way, you can
> > > decouple the onload handler from the body tag and just need to link
> > > the Javascript file where the handler definition resides.
>
> > > I hope this helps.
>
> > > Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Body onload after posting a form

2009-02-09 Thread Sumedh

No...we aren't using anything like jQuery...

It's a simple html body tag defined in the template...

After the error is handled, the template gets re-executed...but the
body tag is rendered without the onload attribute it had before form
submit... :(

I didn't find this behavior in the documentation... :|

On Feb 10, 12:22 am, Bernhard Schussek  wrote:
> Do you use any kind of Javascript framework? If yes, those mostly
> provide handlers for the document load event (f.i.
> $(document).ready(function() {...})) in jQuery. This way, you can
> decouple the onload handler from the body tag and just need to link
> the Javascript file where the handler definition resides.
>
> I hope this helps.
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Prototype + Ajax browser cache

2009-02-09 Thread Sumedh

Anyone please? :)

On Feb 6, 3:35 pm, Sumedh  wrote:
> Hi All,
>
> I remember a few years ago, when we wrote ajax functions ourselves
> rather than using some library like Prototype, we had to append a
> random number at the end to prevent browser caching...
>
> Is this still necessary for Ajax GET calls from prototype?
>
> I saw some posts about this 
> -http://arsenalist.com/2007/05/02/ajax-prototype-scriptaculous-caching...
>
> But strangely, I am not facing this issue...
>
> I mean, I am having a problem where sometimes the Ajax GET request
> isn't reaching the server, but it doesn't seem to be a caching issue,
> as sometimes even the first such request in that session doesn't reach
> server... :(  ...not being able to find a pattern of exactly which
> kind of requests are failing... :(
>
> Are there any know gotchas i should be looking for? :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Body onload after posting a form

2009-02-09 Thread Sumedh

Hi Friends,

Is there some rule for generating onload or other events in the body
tag after a form is submitted?

I am having a case where there is no onload() call in the body tag of
the page, when there is a validation error in the form, after
submitting the form.

Thanks,
Sumedh


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Lighttpd at the front or back?

2009-02-09 Thread Sumedh

Well, we thought of caching as many pages as we can...so I was
wondering if Squid was a good long term solution for configuring a
caching frontend that caches content based on some rules and offers
options for invalidating the cache easily...

On Feb 6, 8:29 pm, Pablo Godel  wrote:
> can you explain why you are thinking on using squid ? why another
> process in the chain ? Unless you have a specific need to use a proxy,
> there is no point on using one.
>
> Pablo
>
> On Fri, Feb 6, 2009 at 5:42 AM, Sumedh  wrote:
>
> > Does anyone use Varnish or Squid here? What are the pros and cons of
> > these systems against a lightweight server like Lighty or Nginx as a
> > front reverse proxy...?
>
> > On Feb 6, 7:08 am, Eno  wrote:
> >> On Thu, 5 Feb 2009, Tsyrulnik V. wrote:
> >> > Use lighttpd to handle all request, not only static, it works great.
> >> > If needed, i can write small tutorial how to run symfony on lighttpd + 
> >> > apc.
>
> >> Actually, its pretty straight-forward to run PHP with Lighty, the only
> >> work needed for symfony is to rewrite the htaccess file for Lighty.
>
> >> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Lighttpd at the front or back?

2009-02-06 Thread Sumedh

Does anyone use Varnish or Squid here? What are the pros and cons of
these systems against a lightweight server like Lighty or Nginx as a
front reverse proxy...?

On Feb 6, 7:08 am, Eno  wrote:
> On Thu, 5 Feb 2009, Tsyrulnik V. wrote:
> > Use lighttpd to handle all request, not only static, it works great.
> > If needed, i can write small tutorial how to run symfony on lighttpd + apc.
>
> Actually, its pretty straight-forward to run PHP with Lighty, the only
> work needed for symfony is to rewrite the htaccess file for Lighty.
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Prototype + Ajax browser cache

2009-02-06 Thread Sumedh

Hi All,

I remember a few years ago, when we wrote ajax functions ourselves
rather than using some library like Prototype, we had to append a
random number at the end to prevent browser caching...

Is this still necessary for Ajax GET calls from prototype?

I saw some posts about this -
http://arsenalist.com/2007/05/02/ajax-prototype-scriptaculous-caching-ie-internet-explorer/

But strangely, I am not facing this issue...

I mean, I am having a problem where sometimes the Ajax GET request
isn't reaching the server, but it doesn't seem to be a caching issue,
as sometimes even the first such request in that session doesn't reach
server... :(  ...not being able to find a pattern of exactly which
kind of requests are failing... :(

Are there any know gotchas i should be looking for? :|
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing, Scalability & Clustering...

2009-02-04 Thread Sumedh

Could someone put some light on my other thread about Lighttpd...? :|

http://groups.google.com/group/symfony-users/browse_thread/thread/0284488693368896



On Feb 4, 2:58 pm, Lee Bolding  wrote:
> It was a special offer during December - they doubled the RAM for  
> free, for as long as you have the server.
>
> It meant that I had to migrate from some of my old Core Duo machines  
> to newer Xeons, with twice us much RAM - but I ended up with much  
> better spec'd machines for $20/month less.
>
> On 4 Feb 2009, at 05:21, Sumedh wrote:
>
>
>
> > Thanks Pablo...will look out for your mail on the group...
>
> > @Lee...that sounds like a great deal... :) ...was it a special offer
> > or just negotiation? :)
>
> > On Feb 2, 10:03 pm, Pablo Godel  wrote:
> >> On Mon, Feb 2, 2009 at 1:36 AM, Sumedh   
> >> wrote:
>
> >>> I saw some offerings about this on ThePlanet.com...anyone used them?
> >>> (shared layer 4 load balancer and so on)
>
> >> We just purchased the service a month ago. I have not been able to  
> >> try
> >> it out, will let you know when I do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Lighttpd at the front or back?

2009-02-04 Thread Sumedh

People have recommended using Lighttpd for serving images and other
static content...

http://www.linux.com/feature/51673

I am using Apache 2.2 with Prefork MPM as I had no idea about Worker
MPM when we started... :(

So it's hogging up a lot of memory even for 30-40 active
users...killing the server's performance...

I was wondering rather than using Lighty at the back with Apache's
proxy module passing relevant content to it, won't it be better to use
Lighty at the front which passes dynamic requests to Apache? Can I do
that?

What about Squid?

If I am using only one machine, is it worth it to use Squid?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing, Scalability & Clustering...

2009-02-03 Thread Sumedh

Thanks Pablo...will look out for your mail on the group...

@Lee...that sounds like a great deal... :) ...was it a special offer
or just negotiation? :)

On Feb 2, 10:03 pm, Pablo Godel  wrote:
> On Mon, Feb 2, 2009 at 1:36 AM, Sumedh  wrote:
>
> > I saw some offerings about this on ThePlanet.com...anyone used them?
> > (shared layer 4 load balancer and so on)
>
> We just purchased the service a month ago. I have not been able to try
> it out, will let you know when I do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Apache Vs. Lighttpd

2009-02-03 Thread Sumedh

Hi Friends,

We recently ran into a problem where a lot of Apache processes were
hogging up memory...

We haven't tuned Apache, and are using it almost as it is...what are
typical performance tunings I should do on Apache?

I saw this thread -
http://groups.google.com/group/symfony-users/browse_thread/thread/d2fa4a88a9b352f1/8bcb82307c82b0a1?lnk=gst&q=lighttpd#8bcb82307c82b0a1

and this post -
http://www.markround.com/archives/30-LigHTTPd-and-Apache-Symfony-benchmarks.html

And see conflicting opinions... :)

In particular,

1. How safe it is to use Worker MPM as against Prefork with PHP? How
much benefit that'll give on a Linux box? What care would I need to
take in the code?

2. Using only Lighthttpd vs. using it only for resource files...any
opinions?

3. How can I reduce the number of Apache processes that seem to take
16mb of memory each? Will reducing Keep Alive timeout help?

4. What kind of apache settings one should have for a typical symfony
site running on a box with 1 GB memory? If each apache process takes
about 16mbs, server will run out of gas with only a few concurrent
users...like 30? :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing, Scalability & Clustering...

2009-02-01 Thread Sumedh

I saw some offerings about this on ThePlanet.com...anyone used them?
(shared layer 4 load balancer and so on)



AFAIK goDaddy doesn't offer ready to use clustering, right?

I don't think we need mission critical high availability...scaling for
traffic is the main purpose...

On Feb 1, 9:45 am, Eno  wrote:
> On Sat, 31 Jan 2009, Jacob Coby wrote:
> > Yes, neat.  And totally worthless on a Linux server.  Linux already
> > uses excess ram to cache commonly accessed files.  You're just taking
> > ram away from processes that could actually use it.  A good portion of
> > it will be kept empty since you have to allocate more space than you
> > actually use.  I imagine the same applies to *BSD and probably Windows
> > as well.
>
> > Ramdisks were a great idea around MS DOS 5 when you wanted to get rid
> > of diskette seek times.  They're worthless now.  Use a php opcode
> > cache instead.  You'll get a 1x better ROI on that 64mb than
> > adding a ramdisk.
>
> Nowhere did I mention that a ramdisk is the only solution you might
> consider. Absolutely you should look at opcode caching and things like
> memcache.
>
> BUT, I would like to point out that the cache folder gets very deep, every
> file access results in a disk operation, every directory leading to a
> cached file results in a stat() system call to check permission bits and
> ownership. Frankly, your network connections are a bigger bottleneck.
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Enable browser caching - code refactoring

2009-01-31 Thread Sumedh

Hi All,

Need your help...

Our site currently doesn't use browser caching...now I want to enable
it...

To make sure browsers get updated copy, I'll need to add version
number at the end of resource files...that gets updated when a file
gets updated...

But the existing code references all images directly... :(

/images/abc.gif and so on...

I can refactor JS and CSS file references relatively easily...but
refactoring references to all image files will be a little
cumbersome... :|

Are there any shortcuts so that I wouldn't need to do it? I couldnt
think of any...

Simplest shortcut will be of course to cache the content only for a
few hours...and not many days...so that problem is not huge when files
get updated...and get some benefit at least for a given browser
session...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing, Scalability & Clustering...

2009-01-31 Thread Sumedh

Very good discussion... :)

Idea of creating a Ramdisk and putting cache folder on that is
neat... :)

Can someone point me to a resource that tells me typically what is the
amount of traffic when one needs to think of clustering very
seriously...

And which are good hosting providers offering load balancing etc?

On Jan 28, 6:12 am, Pablo Godel  wrote:
> I was not using symfont at the site. I was trying to cache queries
> results and rendered templates.
>
> Pablo
>
> On Tue, Jan 27, 2009 at 7:46 PM, Lee Bolding  wrote:
>
> > Memcache can cache anything - be that a DB query, an object, etc...
>
> >http://code.google.com/p/memcached/wiki/FAQ#Cache_things_other_than_S...
> > !
>
> > On 28 Jan 2009, at 00:34, Eno wrote:
>
> >> On Tue, 27 Jan 2009, Pablo Godel wrote:
>
> >>> I rememeber trying this and I did not see a noticeable improvement, I
> >>> am not sure if I did something wrong. Instead, we used memcached and
> >>> we did see a big difference.
>
> >> memcached caches your database queries, but maybe your actions were
> >> not
> >> fully cached? On a site with a lot of pages you will have a huge
> >> cache (in
> >> our case, a couple Gb of files!).
>
> >> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing, Scalability & Clustering...

2009-01-27 Thread Sumedh

Good points... :)

Yeah, I feel we are still some distance away from needing a
cluster...but we thought it's better to prepare in advance...

Session and Files will be a key headache...

On Jan 27, 4:07 pm, Lee Bolding  wrote:
> On 27 Jan 2009, at 05:44, Sumedh wrote:
>
> > I know there is a lot of variety in terms of amount of reads vs.
> > writes, complexity of processing (CPU required), security, speed
> > requirements, session requirements etc, etc. But still, if there are
> > some ad hoc basic conditions, which tell you when you need to start
> > thinking about clustering your servers or database, it'll be useful...
>
> When you get consistent complaints from your users that the service is  
> too slow ;)
>
> It's important that you understand HOW and WHY your application is  
> slow though - just arbitrarily adding an extra webserver won't help  
> you if it is your database that is the bottleneck.
>
> Also, clustering isn't always the answer - sometimes you can get away  
> with moving all of your static assets to Akamai or S3 (or even  
> creating a load of DNS aliases to fool users browsers into downloading  
> more static assets in parallel), or using Memcache to relieve some of  
> the strain on your DB (assuming you've already done as much as you can  
> to optimise your table structure, indexes, queries etc). There are a  
> bunch of tricks, but as I already said - you need to understand where  
> the bottleneck is first, otherwise you'll be wasting time and money  
> fixing a problem that doesn't exist.
>
> Once you get into database replication, sharding etc... that becomes a  
> whole heap of pain which is an entire subject in itself.
>
> The VERY FIRST thing I'd do - before launching ANY live application -  
> is to move the Symfony rewrite rules from .htaccess into my  
> httpd.conf  - sitting in a .htaccess file they need to get read from  
> disk every time a page is requested, which is a massive performance  
> hit. Load it once, at server start up, and it's never touched again  
> until the server is restarted.
>
> > Does symfony have something for out of the box clustering?
>
> Symfony supports DB sessions - obviously once you have more than one  
> server involved, chances are that a visitor is not always going to hit  
> the same server for a series of requests, so file based sessions are  
> no use.
>
> I always use DB sessions, regardless of how many (or few) servers I  
> think I'll eventually deploy to - it saves a headache in the long run.
>
> There are some other plugins in the plugin repository which may help -  
> I haven't yet seen one that allows you to specify a list of DNS  
> aliases for static resources, and randomly distribute these on the  
> page via the link_to helper... maybe I'll do that plugin next time I  
> have a need for that functionality :)
>
> > any good resource I can go through?
>
> Cal Henderson's (Flickr) book - Building Scalable Websites.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Load balancing, Scalability & Clustering...

2009-01-26 Thread Sumedh

Hi Friends,

Are there any standardized benchmarks about when does one web app need
clustering?

I know there is a lot of variety in terms of amount of reads vs.
writes, complexity of processing (CPU required), security, speed
requirements, session requirements etc, etc. But still, if there are
some ad hoc basic conditions, which tell you when you need to start
thinking about clustering your servers or database, it'll be useful...

Which hosting services are great for clustering?

Does symfony have something for out of the box clustering?

any good resource I can go through?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Server not sending 304

2009-01-21 Thread Sumedh

Seems this is a bug in Apache -

https://issues.apache.org/bugzilla/show_bug.cgi?id=39727

Anyone else facing this issue?

On Jan 22, 11:21 am, Sumedh  wrote:
> I found something related -
>
> https://bugs.launchpad.net/launchpad/+bug/261619
>
> But i dunno why this isn't happening on staging when all the config is
> same... :|
>
> On Jan 22, 10:33 am, Sumedh  wrote:
>
> > Help...
>
> > SOS SOS...
>
> > :))
>
> > On Jan 20, 5:29 pm, Sumedh  wrote:
>
> > > Anyone? :|
>
> > > On Jan 16, 5:18 pm, Sumedh  wrote:
>
> > > > Hi Friends,
>
> > > > Need some help...
>
> > > > My live server is not sending 304 not modified response for cached js
> > > > & css files...I've the same build running fine in staging
> > > > environment...where it correctly sends 304...
>
> > > > ETags seem to be getting generated correctly...but still it returns
> > > > 200 response for subsequent requests...I didn't a lot of info about
> > > > configuring ETags in apache 2.2...I believe they are handled by
> > > > default...
>
> > > > Could you please look at www dot zamanzar dot com and put some light?
>
> > > > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Server not sending 304

2009-01-21 Thread Sumedh

I found something related -

https://bugs.launchpad.net/launchpad/+bug/261619

But i dunno why this isn't happening on staging when all the config is
same... :|

On Jan 22, 10:33 am, Sumedh  wrote:
> Help...
>
> SOS SOS...
>
> :))
>
> On Jan 20, 5:29 pm, Sumedh  wrote:
>
> > Anyone? :|
>
> > On Jan 16, 5:18 pm, Sumedh  wrote:
>
> > > Hi Friends,
>
> > > Need some help...
>
> > > My live server is not sending 304 not modified response for cached js
> > > & css files...I've the same build running fine in staging
> > > environment...where it correctly sends 304...
>
> > > ETags seem to be getting generated correctly...but still it returns
> > > 200 response for subsequent requests...I didn't a lot of info about
> > > configuring ETags in apache 2.2...I believe they are handled by
> > > default...
>
> > > Could you please look at www dot zamanzar dot com and put some light?
>
> > > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Server not sending 304

2009-01-21 Thread Sumedh

Help...

SOS SOS...

:))

On Jan 20, 5:29 pm, Sumedh  wrote:
> Anyone? :|
>
> On Jan 16, 5:18 pm, Sumedh  wrote:
>
> > Hi Friends,
>
> > Need some help...
>
> > My live server is not sending 304 not modified response for cached js
> > & css files...I've the same build running fine in staging
> > environment...where it correctly sends 304...
>
> > ETags seem to be getting generated correctly...but still it returns
> > 200 response for subsequent requests...I didn't a lot of info about
> > configuring ETags in apache 2.2...I believe they are handled by
> > default...
>
> > Could you please look at www dot zamanzar dot com and put some light?
>
> > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Server not sending 304

2009-01-20 Thread Sumedh

Anyone? :|

On Jan 16, 5:18 pm, Sumedh  wrote:
> Hi Friends,
>
> Need some help...
>
> My live server is not sending 304 not modified response for cached js
> & css files...I've the same build running fine in staging
> environment...where it correctly sends 304...
>
> ETags seem to be getting generated correctly...but still it returns
> 200 response for subsequent requests...I didn't a lot of info about
> configuring ETags in apache 2.2...I believe they are handled by
> default...
>
> Could you please look at www dot zamanzar dot com and put some light?
>
> Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Server not sending 304

2009-01-16 Thread Sumedh

Hi Friends,

Need some help...

My live server is not sending 304 not modified response for cached js
& css files...I've the same build running fine in staging
environment...where it correctly sends 304...

ETags seem to be getting generated correctly...but still it returns
200 response for subsequent requests...I didn't a lot of info about
configuring ETags in apache 2.2...I believe they are handled by
default...

Could you please look at www dot zamanzar dot com and put some light?

Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Refering to components in routing...

2009-01-08 Thread Sumedh

Hi Friends,

I am using Symfony 1.0...

I want to execute a component in an AJAX call...

How can I refer to it in the routing.yml? If I refer to it just like I
do other actions, the rule doesn't get executed...it returns a 404...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] A doubt in routing...

2009-01-07 Thread Sumedh

Hi Friends,

I am using Symfony 1.0...

I want to create one routing rule that allows me to handle following 3
types of URL's

www.example.com/Pune
www.example.com/Pune/
www.example.com/Pune.html

in exactly the same way...

I tried /Pune* but doesn't work...

How can I use regular expression pattern to create a single rule
rather than creating 3 similar rules?

Thanks in advance...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] URGENT...PLEASE HELP... :(

2008-12-13 Thread Sumedh

My home page is currently down, because the layout.php is not getting
included at all...

http://www.zamanzar.com

I haven't changed any configuration...

Just uploaded a couple of more templates, JS and cleared the cache...

What might be the issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Logging in production

2008-12-13 Thread Sumedh

By the way,
Is there a way by which I can get more details in the log file, apart
from just the one word, sfException? :)

On Dec 13, 11:02 am, Sumedh  wrote:
> Thanks Alexander...I think it looks like a great solution...
>
> How much performance overheard it will be you think, for normal reqest-
> response flow when there is no exception...? On the whole, should we
> put something like this in production?
>
> On Dec 12, 4:15 pm, Alexander Deruwe 
> wrote:
>
> > On 12 Dec 2008, at 12:11, Bernhard Schussek wrote:
>
> > > On Fri, Dec 12, 2008 at 11:48 AM, Sumedh   
> > > wrote:
> > >> Looks like the plugin is available only for 1.1 ...whereas we are
> > >> using 1.0 ... :|
> > > The plugin has very little code and thus is easy to adapt/rewrite if
> > > you need to. I did when there was no Doctrine version available yet,
> > > and it took little time.
>
> > > You should really try it. It's not hard.
>
> > Alternatively you could use a filter:
>
> > class ExceptionReportFilter extends sfFilter
> > {
> >    public function execute($filterChain)
> >    {
> >      // Only send mail on first call
> >      if (!$this->isFirstCall())
> >      {
> >        $filterChain->execute();
>
> >        return;
> >      }
>
> >      // First call handling below
> >      try
> >      {
> >        $filterChain->execute();
> >      }
> >      catch (sfStopException $e)
> >      {
> >        throw $e;
> >      }
> >      catch (Exception $e)
> >      {
> >        if (SF_ENVIRONMENT == 'prod')
> >        {
> >          // Send mail or do whatever
> >        }
>
> >        // Finally, continue as normal
> >        throw $e;
> >      }
> >    }
>
> > }
>
> > And use the filter like this in filters.yml:
>
> > rendering: ~
> > web_debug: ~
> > security:  ~
>
> > # generally, you will want to insert your own filters here
> > exception_report:
> >    class: ExceptionReportFilter
> >    param:
> >      # you might pass from/to addresses etc as parameters
>
> > cache:     ~
> > common:    ~
> > flash:     ~
> > execution: ~
>
> > Alexander
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Logging in production

2008-12-12 Thread Sumedh

Thanks Alexander...I think it looks like a great solution...

How much performance overheard it will be you think, for normal reqest-
response flow when there is no exception...? On the whole, should we
put something like this in production?

On Dec 12, 4:15 pm, Alexander Deruwe 
wrote:
> On 12 Dec 2008, at 12:11, Bernhard Schussek wrote:
>
> > On Fri, Dec 12, 2008 at 11:48 AM, Sumedh   
> > wrote:
> >> Looks like the plugin is available only for 1.1 ...whereas we are
> >> using 1.0 ... :|
> > The plugin has very little code and thus is easy to adapt/rewrite if
> > you need to. I did when there was no Doctrine version available yet,
> > and it took little time.
>
> > You should really try it. It's not hard.
>
> Alternatively you could use a filter:
>
> class ExceptionReportFilter extends sfFilter
> {
>    public function execute($filterChain)
>    {
>      // Only send mail on first call
>      if (!$this->isFirstCall())
>      {
>        $filterChain->execute();
>
>        return;
>      }
>
>      // First call handling below
>      try
>      {
>        $filterChain->execute();
>      }
>      catch (sfStopException $e)
>      {
>        throw $e;
>      }
>      catch (Exception $e)
>      {
>        if (SF_ENVIRONMENT == 'prod')
>        {
>          // Send mail or do whatever
>        }
>
>        // Finally, continue as normal
>        throw $e;
>      }
>    }
>
> }
>
> And use the filter like this in filters.yml:
>
> rendering: ~
> web_debug: ~
> security:  ~
>
> # generally, you will want to insert your own filters here
> exception_report:
>    class: ExceptionReportFilter
>    param:
>      # you might pass from/to addresses etc as parameters
>
> cache:     ~
> common:    ~
> flash:     ~
> execution: ~
>
> Alexander
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-12 Thread Sumedh

Great...

It worked like a charm... :)

And no changes required to my action class...

On Dec 12, 3:40 pm, "Bernhard Schussek"  wrote:
> On Fri, Dec 12, 2008 at 11:26 AM, Sumedh  wrote:
> > If I create a separate routing rule for this, it again gets converted
> > to the same thing (request parameters) right?
>
> Yes, that is the very nature of the symfony routing.
>
> I recommend to read this chapter of the book to understand symfony's
> routing system 
> better:http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Logging in production

2008-12-12 Thread Sumedh

Thanks Bernhard...

Looks like the plugin is available only for 1.1 ...whereas we are
using 1.0 ... :|

On Dec 12, 2:17 pm, "Bernhard Schussek"  wrote:
> Hello,
>
> Maybe you should have a look for the sfErrorLoggerPlugin (or
> sfDoctrineErrorLoggerPlugin, if using Doctrine). This plugin logs all
> 404 and 500 errors into the database and offers a backend view for
> looking through the errors. It is very helpful to find out about
> recurring errors, linked pages that do not exist anymore etc.
>
> If the plugin doesn't collect enough data for you, you can well
> override the schema and collect some more. I personally am very fond
> of it.
>
> Bernhard
>
> On Fri, Dec 12, 2008 at 7:21 AM, Sumedh  wrote:
>
> > Hi Friends,
>
> > Need guidance about logging in production environment.
>
> > Symfony 1.0 log logs a word [sfException] whenever there is some wrong
> > query etc...the details can be seen on screen in DEV environment...
>
> > But how can I trace the root of the problem in production environment
> > (I'll just see 500 internal error message on screen)? If I enable
> > logs, I'll just see the word sfException in the log, and the Action
> > that created the problem, but not the actual culprit query...
>
> > How do you guys trace the problems that occur in production?
>
> > Can we write some simple piece of code that asynchronously mails
> > details of a problem occurred in production to a given mail id?
>
> > Thanks in advance...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-12 Thread Sumedh

Thanks Bernhard...

The script is very much part of my application... :)

If I create a separate routing rule for this, it again gets converted
to the same thing (request parameters) right?

On Dec 12, 2:43 pm, "Bernhard Schussek"  wrote:
> P.S.: One thing I forgot: You need to make a GET call with AJAX for
> this to work, of course.
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Logging in production

2008-12-11 Thread Sumedh

Hi Friends,

Need guidance about logging in production environment.

Symfony 1.0 log logs a word [sfException] whenever there is some wrong
query etc...the details can be seen on screen in DEV environment...

But how can I trace the root of the problem in production environment
(I'll just see 500 internal error message on screen)? If I enable
logs, I'll just see the word sfException in the log, and the Action
that created the problem, but not the actual culprit query...

How do you guys trace the problems that occur in production?

Can we write some simple piece of code that asynchronously mails
details of a problem occurred in production to a given mail id?

Thanks in advance...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-11 Thread Sumedh

Why is no one replying here? :) ...Is the question foolish? :|

On Dec 11, 11:16 am, Sumedh  wrote:
> Someone please put some light here... :)
>
> On Dec 10, 2:25 pm, Sumedh  wrote:
>
> > Ok...thanks Nickolas...
>
> > But does this work for actions? I basically don't want that action and
> > corresponding MySQL calls to get executed...templates would a
> > relatively lighter part...
>
> > The Symfony 1.0 documentation shows that if we send and argument to an
> > action, we can cache it...
> > likehttp://myapp.example.com/user/show/id/12(on-http://www.symfony-project.org/book/1_0/12-Caching)
>
> > So, how do I change the request parameter I am sending to an argument
> > to action? :|
>
> > On Dec 9, 8:48 pm, "Nickolas Daskalou"  wrote:
>
> > > By the way, you will need to have the cache enabled in your
> > > apps/appname/config/settings.yml file for the desired environment.
>
> > > 2008/12/10 Nickolas Daskalou 
>
> > > > I'm not sure if this is the case with sf 1.0, but in 1.1 and 1.2 you 
> > > > can do
> > > > something like the following in one of your templates:
>
> > > > 
> > > > // The $cache_key can be in any format you want really.
> > > > $cache_key = 'paramX='.$paramX.' :: paramY='.$paramY;
>
> > > > // How long to cache the data for, in seconds.
> > > > $cache_lifetime = 600; // 600 = 10 minutes
>
> > > > if (!cache($cache_key, $cache_lifetime))
> > > > {
> > > > ?>
>
> > > > 
> > > > Blah blah blah... blind mice and  > > > $paramY;
> > > > ?> glasses of milk.
> > > > 
>
> > > >  > > >   cache_save();
> > > > }
>
> > > > Does that help you?
>
> > > > 2008/12/10 Sumedh 
>
> > > >> Anyone here? :|
>
> > > >> On Dec 8, 5:04 pm, Sumedh  wrote:
> > > >> > Hi Friends,
>
> > > >> > I've an AJAX request like -
>
> > > >> >http://www.example.com/getData?paramX=100¶mY=200
>
> > > >> > This AJAX response is rendered in a DIV in browser...
>
> > > >> > I want to cache this action for given paramX and paramY...I want to
> > > >> > store HTML response for this URL and then send the same HTML in case
> > > >> > the same URL is received...
>
> > > >> > I am using Symfony 1.0 ...
>
> > > >> > The documentation warns that "Actions called with a POST method or
> > > >> > with GET parameters are not cached." but doesn't elaborate on that
> > > >> > warning... :(
>
> > > >> > How can I achieve this?
>
> > > >> > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-10 Thread Sumedh

Someone please put some light here... :)

On Dec 10, 2:25 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> Ok...thanks Nickolas...
>
> But does this work for actions? I basically don't want that action and
> corresponding MySQL calls to get executed...templates would a
> relatively lighter part...
>
> The Symfony 1.0 documentation shows that if we send and argument to an
> action, we can cache it...
> likehttp://myapp.example.com/user/show/id/12(on 
> -http://www.symfony-project.org/book/1_0/12-Caching)
>
> So, how do I change the request parameter I am sending to an argument
> to action? :|
>
> On Dec 9, 8:48 pm, "Nickolas Daskalou" <[EMAIL PROTECTED]> wrote:
>
> > By the way, you will need to have the cache enabled in your
> > apps/appname/config/settings.yml file for the desired environment.
>
> > 2008/12/10 Nickolas Daskalou <[EMAIL PROTECTED]>
>
> > > I'm not sure if this is the case with sf 1.0, but in 1.1 and 1.2 you can 
> > > do
> > > something like the following in one of your templates:
>
> > > 
> > > // The $cache_key can be in any format you want really.
> > > $cache_key = 'paramX='.$paramX.' :: paramY='.$paramY;
>
> > > // How long to cache the data for, in seconds.
> > > $cache_lifetime = 600; // 600 = 10 minutes
>
> > > if (!cache($cache_key, $cache_lifetime))
> > > {
> > > ?>
>
> > > 
> > > Blah blah blah... blind mice and  > > ?> glasses of milk.
> > > 
>
> > >  > >   cache_save();
> > > }
>
> > > Does that help you?
>
> > > 2008/12/10 Sumedh <[EMAIL PROTECTED]>
>
> > >> Anyone here? :|
>
> > >> On Dec 8, 5:04 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> > >> > Hi Friends,
>
> > >> > I've an AJAX request like -
>
> > >> >http://www.example.com/getData?paramX=100¶mY=200
>
> > >> > This AJAX response is rendered in a DIV in browser...
>
> > >> > I want to cache this action for given paramX and paramY...I want to
> > >> > store HTML response for this URL and then send the same HTML in case
> > >> > the same URL is received...
>
> > >> > I am using Symfony 1.0 ...
>
> > >> > The documentation warns that "Actions called with a POST method or
> > >> > with GET parameters are not cached." but doesn't elaborate on that
> > >> > warning... :(
>
> > >> > How can I achieve this?
>
> > >> > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-10 Thread Sumedh

Ok...thanks Nickolas...

But does this work for actions? I basically don't want that action and
corresponding MySQL calls to get executed...templates would a
relatively lighter part...

The Symfony 1.0 documentation shows that if we send and argument to an
action, we can cache it...
like http://myapp.example.com/user/show/id/12 (on -
http://www.symfony-project.org/book/1_0/12-Caching)

So, how do I change the request parameter I am sending to an argument
to action? :|


On Dec 9, 8:48 pm, "Nickolas Daskalou" <[EMAIL PROTECTED]> wrote:
> By the way, you will need to have the cache enabled in your
> apps/appname/config/settings.yml file for the desired environment.
>
> 2008/12/10 Nickolas Daskalou <[EMAIL PROTECTED]>
>
> > I'm not sure if this is the case with sf 1.0, but in 1.1 and 1.2 you can do
> > something like the following in one of your templates:
>
> > 
> > // The $cache_key can be in any format you want really.
> > $cache_key = 'paramX='.$paramX.' :: paramY='.$paramY;
>
> > // How long to cache the data for, in seconds.
> > $cache_lifetime = 600; // 600 = 10 minutes
>
> > if (!cache($cache_key, $cache_lifetime))
> > {
> > ?>
>
> > 
> > Blah blah blah... blind mice and  > ?> glasses of milk.
> > 
>
> >  >   cache_save();
> > }
>
> > Does that help you?
>
> > 2008/12/10 Sumedh <[EMAIL PROTECTED]>
>
> >> Anyone here? :|
>
> >> On Dec 8, 5:04 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> >> > Hi Friends,
>
> >> > I've an AJAX request like -
>
> >> >http://www.example.com/getData?paramX=100¶mY=200
>
> >> > This AJAX response is rendered in a DIV in browser...
>
> >> > I want to cache this action for given paramX and paramY...I want to
> >> > store HTML response for this URL and then send the same HTML in case
> >> > the same URL is received...
>
> >> > I am using Symfony 1.0 ...
>
> >> > The documentation warns that "Actions called with a POST method or
> >> > with GET parameters are not cached." but doesn't elaborate on that
> >> > warning... :(
>
> >> > How can I achieve this?
>
> >> > Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX call with request params to be cached...

2008-12-09 Thread Sumedh

Anyone here? :|

On Dec 8, 5:04 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> Hi Friends,
>
> I've an AJAX request like -
>
> http://www.example.com/getData?paramX=100¶mY=200
>
> This AJAX response is rendered in a DIV in browser...
>
> I want to cache this action for given paramX and paramY...I want to
> store HTML response for this URL and then send the same HTML in case
> the same URL is received...
>
> I am using Symfony 1.0 ...
>
> The documentation warns that "Actions called with a POST method or
> with GET parameters are not cached." but doesn't elaborate on that
> warning... :(
>
> How can I achieve this?
>
> Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] AJAX call with request params to be cached...

2008-12-08 Thread Sumedh

Hi Friends,

I've an AJAX request like -

http://www.example.com/getData?paramX=100¶mY=200

This AJAX response is rendered in a DIV in browser...

I want to cache this action for given paramX and paramY...I want to
store HTML response for this URL and then send the same HTML in case
the same URL is received...

I am using Symfony 1.0 ...

The documentation warns that "Actions called with a POST method or
with GET parameters are not cached." but doesn't elaborate on that
warning... :(

How can I achieve this?

Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sumedh

Okk...Great inputs friends... :)

I think writing this line should suffice for me (along with other 2
default ones) -

  RewriteCond %{REQUEST_URI} !\..*/.*$

What I want to write is "Dont skip the ones with a DOT and then some
content and then a slash and then some content"

So, basically I want the controller to handle "dotted URL's" ;) that
have a slash (/) after the dot somewhere...

On Dec 4, 3:15 pm, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 4, 2008 at 10:57 AM, Fabrice B <[EMAIL PROTECTED]> wrote:
> > The solution lies in customising your rewrite rules in you .htaccess
> > or lighttpd.conf to better reflect your own configuration. You may
> > need to plunge a little into regular expressions for that.
>
> I'm using this .htaccess and Apache 2.2 for symfonians.net and it
> works smoothly for urls with dots :http://pastie.org/330755
>
> ++
>
> --
> Nicolas 
> Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com
> Phone: +33 660 92 08 67
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: URL's with dots ('.')

2008-12-04 Thread Sumedh

Thanks Sid...

Now...I have a URL that is something like - 
http://www.example.com/string.with.dots/file.html

So, it doesn't contain something like '@' by which I can identify a
URL that is NOT to be skipped...

How do I handle this case? Ideally,

I would want the dots to be handled just like normal characters...what
if just remove the section from Symfony .htaccess that skips URL's
with dots, with exception to .HTML? Will it create a problem for other
kinda files? What's the problem if the request is handed over to
controller in all cases? May be this is a foolish question...but
honestly, it's not very clear to me...



On Dec 4, 11:16 am, "Sid Bachtiar" <[EMAIL PROTECTED]> wrote:
> The problem is with Symfony's .htaccess. Not in Symfony's controller
> nor in Symfony routing. Just in .htaccess.
>
> In a way this is a Symfony 'shortcoming'
>
> > If this problem can get solved by the apache rule, as you have said, I
> > won't need to do any special handling or encoding of the dots... :)
>
> You can't really encode the dots (I think), otherwise we won't have
> this problem.
>
>
>
> On Thu, Dec 4, 2008 at 6:56 PM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Thanks guys
>
> > So Sid, I was thinking this is a problem with symfony routing that it
> > doesn't handle dots...but the problem actually lies at Apache layer
> > where it doesn't pass along the parameters correctly to the routing
> > layer of symfony...right?
>
> > If I write rule for
> > URL -http://www.example.com/string.with.dots/file.html
> > Rule -
> > dotted_rule:
> >  url: /:param1/:fileName
>
> > Then value of param1 is not received correctly as "string.with.dots"
>
> > If this problem can get solved by the apache rule, as you have said, I
> > won't need to do any special handling or encoding of the dots... :)
>
> > Lee, the URL encoding functions don't handle the dot...I believe it's
> > primarily because the dot has an important place in URL...just that
> > it's not taken kindly if it's in between the URL instead of at the
> > end, (for defining a file extension)...
>
> > Gunnar, yeah, as you've said, changing routing structure is a costly
> > affair, especially when Google (and others) have indexed and
> > bookmarked your URL's...
>
> > On Dec 4, 2:06 am, "Gunnar Lium" <[EMAIL PROTECTED]> wrote:
> >> Although not always possible or desirable, you can also get around this
> >> problem by creating urls with ?. For example
> >> somedomain.com/profiles/[EMAIL PROTECTED]
> >> 2008/12/3 Sid Bachtiar <[EMAIL PROTECTED]>
>
> >> > Hi,
>
> >> > I've had problem with this too. I don't know any general solution to
> >> > this problem.
>
> >> > For my case, I needed the dot because I was passing email address in
> >> > the URL. So I solved it by adding one line (the line with @) in the
> >> > web/,htaccess
>
> >> >  # we skip all files with .something
> >> >  RewriteCond %{REQUEST_URI} \..+$
> >> >  RewriteCond %{REQUEST_URI} [EMAIL PROTECTED]
> >> >  RewriteCond %{REQUEST_URI} !\.html$
> >> >  RewriteRule .* - [L]
>
> >> > The one added line in the htaccess basically detect if the URL
> >> > contains @ character, if so it will be passed to the controller
> >> > instead of handled as a file like images, css, js, etc.
>
> >> > On Thu, Dec 4, 2008 at 12:25 AM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> >> > > Hi Friends,
>
> >> > > How is one supposed to handle a URL having a dot ('.')?
>
> >> > > For example,http://www.example.com/string.with.dots/file.html
>
> >> > > The urlencode() function from PHP doesn't handle dots...and the
> >> > > routing rules break for these kind of URL's...
>
> >> > > So, how should they be taken care of? Is there some standardized way
> >> > > that everyone uses?
>
> >> > > - Thanks in advance,
> >> > > Sumedh
>
> >> > --
> >> > Visit my website:http://onlinesid.com
>
> --
> Visit my website:http://onlinesid.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: URL's with dots ('.')

2008-12-03 Thread Sumedh

Thanks guys

So Sid, I was thinking this is a problem with symfony routing that it
doesn't handle dots...but the problem actually lies at Apache layer
where it doesn't pass along the parameters correctly to the routing
layer of symfony...right?

If I write rule for
URL - http://www.example.com/string.with.dots/file.html
Rule -
dotted_rule:
  url: /:param1/:fileName

Then value of param1 is not received correctly as "string.with.dots"

If this problem can get solved by the apache rule, as you have said, I
won't need to do any special handling or encoding of the dots... :)

Lee, the URL encoding functions don't handle the dot...I believe it's
primarily because the dot has an important place in URL...just that
it's not taken kindly if it's in between the URL instead of at the
end, (for defining a file extension)...

Gunnar, yeah, as you've said, changing routing structure is a costly
affair, especially when Google (and others) have indexed and
bookmarked your URL's...

On Dec 4, 2:06 am, "Gunnar Lium" <[EMAIL PROTECTED]> wrote:
> Although not always possible or desirable, you can also get around this
> problem by creating urls with ?. For example
> somedomain.com/profiles/[EMAIL PROTECTED]
> 2008/12/3 Sid Bachtiar <[EMAIL PROTECTED]>
>
>
>
> > Hi,
>
> > I've had problem with this too. I don't know any general solution to
> > this problem.
>
> > For my case, I needed the dot because I was passing email address in
> > the URL. So I solved it by adding one line (the line with @) in the
> > web/,htaccess
>
> >  # we skip all files with .something
> >  RewriteCond %{REQUEST_URI} \..+$
> >  RewriteCond %{REQUEST_URI} [EMAIL PROTECTED]
> >  RewriteCond %{REQUEST_URI} !\.html$
> >  RewriteRule .* - [L]
>
> > The one added line in the htaccess basically detect if the URL
> > contains @ character, if so it will be passed to the controller
> > instead of handled as a file like images, css, js, etc.
>
> > On Thu, Dec 4, 2008 at 12:25 AM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > > Hi Friends,
>
> > > How is one supposed to handle a URL having a dot ('.')?
>
> > > For example,http://www.example.com/string.with.dots/file.html
>
> > > The urlencode() function from PHP doesn't handle dots...and the
> > > routing rules break for these kind of URL's...
>
> > > So, how should they be taken care of? Is there some standardized way
> > > that everyone uses?
>
> > > - Thanks in advance,
> > > Sumedh
>
> > --
> > Visit my website:http://onlinesid.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Changed images/CSS/JS after a new build...

2008-12-03 Thread Sumedh

Cool... :)

On Dec 3, 1:45 am, Fabrice B <[EMAIL PROTECTED]> wrote:
> I myself used something very similar to what you see here
>
> >http://particletree.com/notebook/automatically-version-your-css-and-j...
>
> but overriding javascript_include_tag from the AssetHelper file,
> inspired by François Baligant (synalabs.com)
>
> function javascript_include_tag()
> {
>   // MODIF FABRICE
>   $version = (sfConfig::get('app_asset_version_js') ?
> '.v'.sfConfig::get('app_asset_version_js') : '');
>   $html = '';
>   foreach (func_get_args() as $source)
>   {
>     $source = javascript_path($source);
>     if (substr($source,-3,3)=='.js' && substr($source,0,3)=='/js')
>     {
>       $source  .= $version;
>     }
>     $html .= content_tag('script', '', array('type' => 'text/
> javascript', 'src' => $source))."\n";
>   }
>
>   return $html;
>
> }
>
> And the same for stylesheets_include_tag. To override the AssetHelper
> file, it is very easy, thanks to symfony :-) Just copy the AssetHelper
> file from the symfony/lib folder to your own lib folder. And change
> the new file. symfony cc will automatically make this second file
> priority and therefore you will have "overridden" the former
> functions.
>
> You still need
> 1. to configure the version of your files in the app.yml
> 2. configure your .htaccess or your lighttpd configuration to rewrite
> \.js(\.v.+) files into .js and the same for \.css(\.v.+)
>
> Fabrice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] URL's with dots ('.')

2008-12-03 Thread Sumedh

Hi Friends,

How is one supposed to handle a URL having a dot ('.')?

For example, http://www.example.com/string.with.dots/file.html

The urlencode() function from PHP doesn't handle dots...and the
routing rules break for these kind of URL's...

So, how should they be taken care of? Is there some standardized way
that everyone uses?

- Thanks in advance,
Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Changed images/CSS/JS after a new build...

2008-12-01 Thread Sumedh

Someone plz look here? :)

On Nov 29, 4:06 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> When one changes some code on live site...there might be some changes
> in files that get cached (like images and CSS and JS)...
>
> How can one make the browsers reload these new items after the build?
> Yes, cleaning browser cache would fetch a clean page, but for the
> users who have old copies in the cache, it might result in weird
> rendering of the page as some files are new and some are old...
>
> Do you face this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony 1.2 has been released

2008-11-30 Thread Sumedh

Congratulations :)

On Dec 1, 4:01 am, "Fabian Lange" <[EMAIL PROTECTED]>
wrote:
> Dear symfony community,
> I do not want you to miss our symfony 1.2 release.
> So head over to our blog and check my 
> posting:http://www.symfony-project.org/blog/2008/12/01/symfony-1-2-is-already...
>
> Read it, try the release and tell everybody that it is great, via Twitter,
> Blogs, Forums, Mailing Lists, SMS, or I heard some people actually meet in
> person, so better not miss that chance too!
>
> Enjoy!
> Fabian & the symfony team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Changed images/CSS/JS after a new build...

2008-11-29 Thread Sumedh

When one changes some code on live site...there might be some changes
in files that get cached (like images and CSS and JS)...

How can one make the browsers reload these new items after the build?
Yes, cleaning browser cache would fetch a clean page, but for the
users who have old copies in the cache, it might result in weird
rendering of the page as some files are new and some are old...

Do you face this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AJAX execution of a component

2008-11-27 Thread Sumedh

Was this thought foolish...no one replied? :|

On Nov 27, 2:13 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> Hi Friends...
>
> I am using Symfony 1.0...
>
> I have a requirement where I want to load some dynamic content on a
> tab switch via AJAX...
>
> For small content, we can directly send simple CSV or JSON...
>
> But here, I want to code that tab as a separate component
> ideally...and then send back the HTML result of that component...and
> set that content in the innerHTML of a DIV in the JS callback
> function...
>
> Is this the right approach?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] AJAX execution of a component

2008-11-27 Thread Sumedh

Hi Friends...

I am using Symfony 1.0...

I have a requirement where I want to load some dynamic content on a
tab switch via AJAX...

For small content, we can directly send simple CSV or JSON...

But here, I want to code that tab as a separate component
ideally...and then send back the HTML result of that component...and
set that content in the innerHTML of a DIV in the JS callback
function...

Is this the right approach?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Forward in filter renders layout twice

2008-11-24 Thread Sumedh

Thanks Thomas...it would be useful...

Is there some open source project for newsletters that sort of has an
admin panel for choosing recipient lists, selecting a template
etc...and may some in-place editing of HTML?

On Nov 25, 5:59 am, Eno <[EMAIL PROTECTED]> wrote:
> On Mon, 24 Nov 2008, andreas wrote:
> > Ok... didn't know google groups does this - I use a regular email client
> > so I didn't notice.
>
> Actually its not an anomaly of Google Groups, use threaded view in pine,
> Thunderbird or Evolution and you'll see the same thing...
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] HTML Newsletter

2008-11-24 Thread Sumedh

Hi Friends,

Thinking of an HTML newsletter...

Any plugins etc. available for it?

What are the restrictions on kind of HTML that one should and
shouldn't use in emails? I saw some documents, but they were pretty
old...Also there seemed a lot of disagreement on whether one should
use HTML or text mails...Does someone know a set of practical rules
that work on majority of the email clients...?

Thanks in advance :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Handling session timeout...

2008-11-21 Thread Sumedh

I want all the site to be accessible to everyone, so securing whole
action would not be an option i suppose...

But I have user registration feature...and I want to let the timed-out
user know that he has timed-out...

On Nov 21, 4:00 pm, Richtermeister <[EMAIL PROTECTED]> wrote:
> Hi Sumedh,
>
> when you make a module or an action secure, and it is being requested
> by somebody who is not authenticated, he/she will automatically be
> redirected to the login action as defined in settings.yml.
>
> Very easy.
>
> Have a great day,
> Daniel
>
> On Nov 17, 4:17 am, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Hi Friends...
>
> > How can I handle automated session timeout, so that the user is taken
> > to a login page, or shown a message like, "You have been logged out
> > because of timeout"...?
>
> > Is there some callback mechanism in Symfony 1.0 for this?
>
> > - Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Displaying range for a value in image...

2008-11-20 Thread Sumedh

Thanks guys... :)

On Nov 18, 7:58 pm, Richtermeister <[EMAIL PROTECTED]> wrote:
> Maybe this is more highlevel than GD..
>
> http://ezcomponents.org/docs/api/latest/introduction_Graph.html
>
> On Nov 18, 4:21 am, "Kiril Angov" <[EMAIL PROTECTED]> wrote:
>
> > The way I see it, iMagick has everything that GD has and more.
>
> > On Tue, Nov 18, 2008 at 8:35 AM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > > This looks like a very powerful image processing library...thanks :)
>
> > > But for simple line drawings etc, GD should be sufficient right?
>
> > > On Nov 17, 6:21 pm, "Kiril Angov" <[EMAIL PROTECTED]> wrote:
> > >> For example,http://pecl.php.net/package/imagick
>
> > >> On Mon, Nov 17, 2008 at 1:27 PM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > >> > Hi Friends...
>
> > >> > I want to do this feature where I want to display price range
> > >> > graphically...
>
> > >> > It needs to be a simple image like this...
>
> > >> > ^
> > >> > |    
> > >> > |
> > >> > |
> > >> > 
> > >> > upper limit
> > >> > |
> > >> > |                ***  Shaded Area ***
> > >> > |
> > >> > 
> > >> > lower limit
> > >> > |
> > >> > |
> > >> > |
> > >> > |
> > >> > |--
>
> > >> > What can be a good tool to render this image dynamically? I saw Google
> > >> > chart API, but that doesn't have something that looks like above...
>
> > >> > I preferably would want to render a simple JPEG instead of a flash
> > >> > file...so that it can be easily used in blogs etc...
>
> > >> > Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Displaying range for a value in image...

2008-11-17 Thread Sumedh

This looks like a very powerful image processing library...thanks :)

But for simple line drawings etc, GD should be sufficient right?

On Nov 17, 6:21 pm, "Kiril Angov" <[EMAIL PROTECTED]> wrote:
> For example,http://pecl.php.net/package/imagick
>
> On Mon, Nov 17, 2008 at 1:27 PM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Hi Friends...
>
> > I want to do this feature where I want to display price range
> > graphically...
>
> > It needs to be a simple image like this...
>
> > ^
> > |    
> > |
> > |
> > 
> > upper limit
> > |
> > |                ***  Shaded Area ***
> > |
> > 
> > lower limit
> > |
> > |
> > |
> > |
> > |--
>
> > What can be a good tool to render this image dynamically? I saw Google
> > chart API, but that doesn't have something that looks like above...
>
> > I preferably would want to render a simple JPEG instead of a flash
> > file...so that it can be easily used in blogs etc...
>
> > Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Handling session timeout...

2008-11-17 Thread Sumedh

Hi Friends...

How can I handle automated session timeout, so that the user is taken
to a login page, or shown a message like, "You have been logged out
because of timeout"...?

Is there some callback mechanism in Symfony 1.0 for this?

- Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Displaying range for a value in image...

2008-11-17 Thread Sumedh

Hi Friends...

I want to do this feature where I want to display price range
graphically...

It needs to be a simple image like this...


^
|
|
|

upper limit
|
|***  Shaded Area ***
|

lower limit
|
|
|
|
|--
>

What can be a good tool to render this image dynamically? I saw Google
chart API, but that doesn't have something that looks like above...

I preferably would want to render a simple JPEG instead of a flash
file...so that it can be easily used in blogs etc...

Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Out of memory error

2008-11-14 Thread Sumedh

Thanks James...

I am not using Propel...
You think I should even not use Creole? will this be resolved then?

On Nov 14, 11:22 am, James <[EMAIL PROTECTED]> wrote:
> Like I said, it's a php garbage collection problem, i was getting one  
> record at a time, and when I got up to 15,000 itterations it died out  
> of memory, and memory was set at 1GB.    If I remember there was a fix  
> submitted to the php dev group.  I thought I heard rumor the fix would  
> be released with 5.3, but then I heard it wasn't being released in  
> 5.3, so I have no idea what's going on, so I just don't do large  
> queries in Symfony with propel.
>
> James
>
> On Nov 14, 2008, at 12:37 AM, Sumedh wrote:
>
>
>
> > Thanks guys...
>
> > Actually, the queries that are getting fired are selecting only around
> > 500 rows at a time...not a lot you would agree...
>
> > and the loop runs for about 500 times...
>
> > I am unsetting the resultset and the array in every iteration...
>
> > but for every iteration of the loop the memory consumption goes on
> > increasing... :(
>
> > It works ok if I increase the memory limit from 24M to 48M as the loop
> > completes at about 34MB memory for current data set...
>
> > On Nov 14, 4:06 am, James <[EMAIL PROTECTED]> wrote:
> >> This is actually a problem with php object garbage collection (or  
> >> lack
> >> there of), and poor garbage collection in propel.  There is no way
> >> around it with propel.  I was trying it and we ended up writing a
> >> script out of plain plain php to get around it.  We had tried
> >> modifying our base propel object but that only got us so far.
>
> >> James
>
> >> On Nov 12, 2008, at 1:14 PM, Ant Cunningham wrote:
>
> >>> first thin i would try if you havent already is using doSelectRS,  
> >>> then
> >>> hydrating and destroying the objects one at a time as you use them
> >>> instead of hydrating them all with doSelect or what have you. If  
> >>> youve
> >>> already done this i dunno aside from maybe doing it with pdo/creole
> >>> only.
>
> >>> On Nov 12, 6:35 am, Sumedh <[EMAIL PROTECTED]> wrote:
> >>>> Hi Friends,
>
> >>>> I am getting a out of memory error in a batch script.
>
> >>>> 1. I am using Symfony 1.0 on PHP 5.1.2
>
> >>>> 2. I am fetching some data from table1, doing some calculations
> >>>> (average, standard deviation etc.) and storing it in table2.
>
> >>>> 3. There are no circular references as far as I can see.
>
> >>>> 4. I tried using unset() on all possible places for arrays and
> >>>> resultsets I am using, but the memory allocation goes on increasing
> >>>> monotonically.
>
> >>>> 5. My PHP memory setting is 24MB which should be enough, as the  
> >>>> data
> >>>> set is not very large. In one loop, I am handling only thousands of
> >>>> records, not hundreds of thousands.
>
> >>>> Does it have something to do with Propel? Can I call some method to
> >>>> release memory after every loop?
>
> >>>> -  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Select count(*) query giving problem

2008-11-14 Thread Sumedh

Shucks...

I had forgotten to put rs->next();

:)

Extremely sorry...

On Nov 14, 11:03 am, Sumedh <[EMAIL PROTECTED]> wrote:
> @Eno: I said I suppose because I wasn't sure how would I know if it's
> returning the number...if I run the query from the log on mysql prompt
> it runs fine...and there is nothing complex in the query...
> If I select some column instead of count and then use getRecordCount()
> everything works fine, it's just that it's not an efficient way...
> I also tried a simplified query (select count(id) from table1) but the
> result is same...
>
> @Alvaro: Yeah, I echoed getFetchMode() and it returns 1...so using
> name is fine...I also tried setting it to 2 and using column
> number...but same error...
>
> :'((
>
> Thanks for the help so far by the way...
>
> On Nov 14, 7:04 am, alvaro <[EMAIL PROTECTED]> wrote:
>
> > Don't know If it will help, but check the  $resultset->setFetchmode()  
> > method.
>
> >     /**
> >       * Index result set by field name.
> >       */
> >      const FETCHMODE_ASSOC = 1;
>
> >      /**
> >       * Index result set numerically.
> >       */
> >      const FETCHMODE_NUM = 2;
>
> > Use any of those constants according to what you need.
>
> > On Nov 13, 2008, at 11:57 PM, Eno wrote:
>
> > > On Nov 13, 6:16 am, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > >> The second argument should be either an array or an object in /usr/
> > >> share/php/symfony/vendor/creole/common/ResultSetCommon.php on line  
> > >> 385
>
> > >> Warning: array_key_exists(): The second argument should be either an
> > >> array or an object in /usr/share/php/symfony/vendor/creole/common/
> > >> ResultSetCommon.php on line 385
> > >> PHP Fatal error:  Uncaught exception 'SQLException' with message
> > >> 'Invalid resultset column: mycnt' in /usr/share/php/symfony/vendor/
> > >> creole/common/ResultSetCommon.php:385
> > >> Stack trace:
> > >> #0 /home/sumedh/workspace/zam_fe/batch/generate_sitemap_LDP.php(85):
> > >> ResultSetCommon->getInt('mycnt')
> > >> #1 {main}
> > >>   thrown in /usr/share/php/symfony/vendor/creole/common/
> > >> ResultSetCommon.php on line 385
>
> > >> Fatal error: Uncaught exception 'SQLException' with message 'Invalid
> > >> resultset column: mycnt' in /usr/share/php/symfony/vendor/creole/
> > >> common/ResultSetCommon.php:385
> > >> ---
>
> > > Which is this function:
>
> > > public function getInt($column)
> > >    {
> > >        $idx = (is_int($column) ? $column - 1 : $column);
> > >        if (!array_key_exists($idx, $this->fields)) { throw new
> > > SQLException("Invalid resultset column: " . $column); }
> > >        if ($this->fields[$idx] === null) { return null; }
> > >        return (int) $this->fields[$idx];
> > >    }
>
> > >> I saw in the logs that the query looks fine, and I suppose it is also
> > >> returning the count correctly...
>
> > > You just suppose? Or REALLY KNOW for sure?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Select count(*) query giving problem

2008-11-13 Thread Sumedh

@Eno: I said I suppose because I wasn't sure how would I know if it's
returning the number...if I run the query from the log on mysql prompt
it runs fine...and there is nothing complex in the query...
If I select some column instead of count and then use getRecordCount()
everything works fine, it's just that it's not an efficient way...
I also tried a simplified query (select count(id) from table1) but the
result is same...

@Alvaro: Yeah, I echoed getFetchMode() and it returns 1...so using
name is fine...I also tried setting it to 2 and using column
number...but same error...

:'((

Thanks for the help so far by the way...

On Nov 14, 7:04 am, alvaro <[EMAIL PROTECTED]> wrote:
> Don't know If it will help, but check the  $resultset->setFetchmode()  
> method.
>
>     /**
>       * Index result set by field name.
>       */
>      const FETCHMODE_ASSOC = 1;
>
>      /**
>       * Index result set numerically.
>       */
>      const FETCHMODE_NUM = 2;
>
> Use any of those constants according to what you need.
>
> On Nov 13, 2008, at 11:57 PM, Eno wrote:
>
>
>
> > On Nov 13, 6:16 am, Sumedh <[EMAIL PROTECTED]> wrote:
>
> >> The second argument should be either an array or an object in /usr/
> >> share/php/symfony/vendor/creole/common/ResultSetCommon.php on line  
> >> 385
>
> >> Warning: array_key_exists(): The second argument should be either an
> >> array or an object in /usr/share/php/symfony/vendor/creole/common/
> >> ResultSetCommon.php on line 385
> >> PHP Fatal error:  Uncaught exception 'SQLException' with message
> >> 'Invalid resultset column: mycnt' in /usr/share/php/symfony/vendor/
> >> creole/common/ResultSetCommon.php:385
> >> Stack trace:
> >> #0 /home/sumedh/workspace/zam_fe/batch/generate_sitemap_LDP.php(85):
> >> ResultSetCommon->getInt('mycnt')
> >> #1 {main}
> >>   thrown in /usr/share/php/symfony/vendor/creole/common/
> >> ResultSetCommon.php on line 385
>
> >> Fatal error: Uncaught exception 'SQLException' with message 'Invalid
> >> resultset column: mycnt' in /usr/share/php/symfony/vendor/creole/
> >> common/ResultSetCommon.php:385
> >> ---
>
> > Which is this function:
>
> > public function getInt($column)
> >    {
> >        $idx = (is_int($column) ? $column - 1 : $column);
> >        if (!array_key_exists($idx, $this->fields)) { throw new
> > SQLException("Invalid resultset column: " . $column); }
> >        if ($this->fields[$idx] === null) { return null; }
> >        return (int) $this->fields[$idx];
> >    }
>
> >> I saw in the logs that the query looks fine, and I suppose it is also
> >> returning the count correctly...
>
> > You just suppose? Or REALLY KNOW for sure?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Out of memory error

2008-11-13 Thread Sumedh

Thanks guys...

Actually, the queries that are getting fired are selecting only around
500 rows at a time...not a lot you would agree...

and the loop runs for about 500 times...

I am unsetting the resultset and the array in every iteration...

but for every iteration of the loop the memory consumption goes on
increasing... :(

It works ok if I increase the memory limit from 24M to 48M as the loop
completes at about 34MB memory for current data set...

On Nov 14, 4:06 am, James <[EMAIL PROTECTED]> wrote:
> This is actually a problem with php object garbage collection (or lack  
> there of), and poor garbage collection in propel.  There is no way  
> around it with propel.  I was trying it and we ended up writing a  
> script out of plain plain php to get around it.  We had tried  
> modifying our base propel object but that only got us so far.
>
> James
>
> On Nov 12, 2008, at 1:14 PM, Ant Cunningham wrote:
>
>
>
> > first thin i would try if you havent already is using doSelectRS, then
> > hydrating and destroying the objects one at a time as you use them
> > instead of hydrating them all with doSelect or what have you. If youve
> > already done this i dunno aside from maybe doing it with pdo/creole
> > only.
>
> > On Nov 12, 6:35 am, Sumedh <[EMAIL PROTECTED]> wrote:
> >> Hi Friends,
>
> >> I am getting a out of memory error in a batch script.
>
> >> 1. I am using Symfony 1.0 on PHP 5.1.2
>
> >> 2. I am fetching some data from table1, doing some calculations
> >> (average, standard deviation etc.) and storing it in table2.
>
> >> 3. There are no circular references as far as I can see.
>
> >> 4. I tried using unset() on all possible places for arrays and
> >> resultsets I am using, but the memory allocation goes on increasing
> >> monotonically.
>
> >> 5. My PHP memory setting is 24MB which should be enough, as the data
> >> set is not very large. In one loop, I am handling only thousands of
> >> records, not hundreds of thousands.
>
> >> Does it have something to do with Propel? Can I call some method to
> >> release memory after every loop?
>
> >> -  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Out of memory error

2008-11-13 Thread Sumedh

Yeah...sorry about the foolish question...

Actually, I am doing exactly that since beginning...I have used Creole
directly to fire queries and the used the resultset returned...I am
not hydrating using Propel at all...

:|


On Nov 13, 5:02 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> Thanks Sherif...
>
> Could you please point me to some reference about bypassing Propel and
> using Creole directly...?
>
> On Nov 13, 4:53 pm, small <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Sumedh,
> > I have recently been writing Symfony batch scripts (1.0) to export
> > large sets of data into Excel / CSV (over 200,000 rows). I hit the
> > same issue over and over again.
>
> > The only way I manage do solve this is by-pass propel in total. You
> > can still use Symfony with Cerole and bypass Propel - this is what I
> > did, so you still have a layer of db abstraction.
>
> > I used unset() quite a bit, that helped a little bit, but still had
> > issues. In your logs make sure you do some  number_format
> > (memory_get_usage()) to see if the unset is actually clearing
> > anything.
>
> > Hope this helps
>
> > Sherifhttp://symfonynerds.com
>
> > On Nov 12, 10:35 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > > Hi Friends,
>
> > > I am getting a out of memory error in a batch script.
>
> > > 1. I am using Symfony 1.0 on PHP 5.1.2
>
> > > 2. I am fetching some data from table1, doing some calculations
> > > (average, standard deviation etc.) and storing it in table2.
>
> > > 3. There are no circular references as far as I can see.
>
> > > 4. I tried using unset() on all possible places for arrays and
> > > resultsets I am using, but the memory allocation goes on increasing
> > > monotonically.
>
> > > 5. My PHP memory setting is 24MB which should be enough, as the data
> > > set is not very large. In one loop, I am handling only thousands of
> > > records, not hundreds of thousands.
>
> > > Does it have something to do with Propel? Can I call some method to
> > > release memory after every loop?
>
> > > -  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Out of memory error

2008-11-13 Thread Sumedh

Thanks Sherif...

Could you please point me to some reference about bypassing Propel and
using Creole directly...?

On Nov 13, 4:53 pm, small <[EMAIL PROTECTED]> wrote:
> Sumedh,
> I have recently been writing Symfony batch scripts (1.0) to export
> large sets of data into Excel / CSV (over 200,000 rows). I hit the
> same issue over and over again.
>
> The only way I manage do solve this is by-pass propel in total. You
> can still use Symfony with Cerole and bypass Propel - this is what I
> did, so you still have a layer of db abstraction.
>
> I used unset() quite a bit, that helped a little bit, but still had
> issues. In your logs make sure you do some  number_format
> (memory_get_usage()) to see if the unset is actually clearing
> anything.
>
> Hope this helps
>
> Sherifhttp://symfonynerds.com
>
> On Nov 12, 10:35 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Hi Friends,
>
> > I am getting a out of memory error in a batch script.
>
> > 1. I am using Symfony 1.0 on PHP 5.1.2
>
> > 2. I am fetching some data from table1, doing some calculations
> > (average, standard deviation etc.) and storing it in table2.
>
> > 3. There are no circular references as far as I can see.
>
> > 4. I tried using unset() on all possible places for arrays and
> > resultsets I am using, but the memory allocation goes on increasing
> > monotonically.
>
> > 5. My PHP memory setting is 24MB which should be enough, as the data
> > set is not very large. In one loop, I am handling only thousands of
> > records, not hundreds of thousands.
>
> > Does it have something to do with Propel? Can I call some method to
> > release memory after every loop?
>
> > -  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Select count(*) query giving problem

2008-11-13 Thread Sumedh

I have a batch script (Symfony 1.0)...

There is a simple select count(*) query in it...

When I try to fetch the value from resultset, it returns an error like
-

---
The second argument should be either an array or an object in /usr/
share/php/symfony/vendor/creole/common/ResultSetCommon.php on line 385

Warning: array_key_exists(): The second argument should be either an
array or an object in /usr/share/php/symfony/vendor/creole/common/
ResultSetCommon.php on line 385
PHP Fatal error:  Uncaught exception 'SQLException' with message
'Invalid resultset column: mycnt' in /usr/share/php/symfony/vendor/
creole/common/ResultSetCommon.php:385
Stack trace:
#0 /home/sumedh/workspace/zam_fe/batch/generate_sitemap_LDP.php(85):
ResultSetCommon->getInt('mycnt')
#1 {main}
  thrown in /usr/share/php/symfony/vendor/creole/common/
ResultSetCommon.php on line 385

Fatal error: Uncaught exception 'SQLException' with message 'Invalid
resultset column: mycnt' in /usr/share/php/symfony/vendor/creole/
common/ResultSetCommon.php:385
---

I saw in the logs that the query looks fine, and I suppose it is also
returning the count correctly...

Nov 13 16:47:58 symfony [info] {sfCreole} executeQuery(): [10756.31
ms] select count(id) as mycnt from listing where displaya
ble=1 and flagged_at is null and deleted_at is null and
property_category = 'R' and listing_type = 'S'

I tried to fetch mycnt as an Int and as a String...but still not
working...

Other queries are working fine in the same script...(they don't have
count function)

What might be the problem? Is this some Creole issue?

Thanks in advance... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Out of memory error

2008-11-13 Thread Sumedh

Actually, I am not taking readymade object from Propel...

I am simply taking result sets and iterating them to create my
objects...

On Nov 12, 11:14 pm, Ant Cunningham <[EMAIL PROTECTED]> wrote:
> first thin i would try if you havent already is using doSelectRS, then
> hydrating and destroying the objects one at a time as you use them
> instead of hydrating them all with doSelect or what have you. If youve
> already done this i dunno aside from maybe doing it with pdo/creole
> only.
>
> On Nov 12, 6:35 am, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Hi Friends,
>
> > I am getting a out of memory error in a batch script.
>
> > 1. I am using Symfony 1.0 on PHP 5.1.2
>
> > 2. I am fetching some data from table1, doing some calculations
> > (average, standard deviation etc.) and storing it in table2.
>
> > 3. There are no circular references as far as I can see.
>
> > 4. I tried using unset() on all possible places for arrays and
> > resultsets I am using, but the memory allocation goes on increasing
> > monotonically.
>
> > 5. My PHP memory setting is 24MB which should be enough, as the data
> > set is not very large. In one loop, I am handling only thousands of
> > records, not hundreds of thousands.
>
> > Does it have something to do with Propel? Can I call some method to
> > release memory after every loop?
>
> > -  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Out of memory error

2008-11-12 Thread Sumedh

Hi Friends,

I am getting a out of memory error in a batch script.

1. I am using Symfony 1.0 on PHP 5.1.2

2. I am fetching some data from table1, doing some calculations
(average, standard deviation etc.) and storing it in table2.

3. There are no circular references as far as I can see.

4. I tried using unset() on all possible places for arrays and
resultsets I am using, but the memory allocation goes on increasing
monotonically.

5. My PHP memory setting is 24MB which should be enough, as the data
set is not very large. In one loop, I am handling only thousands of
records, not hundreds of thousands.

Does it have something to do with Propel? Can I call some method to
release memory after every loop?

-  Sumedh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Currency conversion API

2008-10-20 Thread Sumedh

Hi friends,

Is there any free simple HTTP API to convert currencies into one
another...?

Surprisingly, I didn't find anything simple and free when I
searched...

There were some screen scraping hacks or some complicated paid SOAP
services...

I don't need a premium service...just something simple that gets
updated daily or even weekly...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: getUri() does not include port number? :(

2008-10-19 Thread Sumedh

Anyone? :)

On Oct 9, 1:21 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> No...we are directly connecting to a local server...no tunneling
> etc...
>
> We have configured a port for every developer in Apache...
>
> The getHost() returns the host with correct port...
>
> Also, thegetRelativeUrlRoot() method returns the correct path with
> correct port...
>
> What is the purpose ofgetRelativeUrlRoot() method? I didn't see much
> info in the code comments...
>
> On Sep 22, 3:22 pm, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote:
>
> > Can you please reply to our question ?
>
> > Are you behind a proxy or are your connections tunnelings through a
> > specific port ? like 4550 (public) to 80 (dev server )
>
> > Thomas
>
> > On Mon, Sep 22, 2008 at 12:01 PM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > > Can someone put some light plase? :)
>
> > > On Sep 20, 10:42 am, Sumedh <[EMAIL PROTECTED]> wrote:
> > >> Yeah, the SERVER_PORT in the debugging panel shows 80...  :(
>
> > >> And actually it is 8085, 8086 etc (one for every developer)...
>
> > >> May be it has to do with how we have configured Apache?
>
> > >> On Sep 19, 1:37 pm, cokker <[EMAIL PROTECTED]> wrote:
>
> > >> > Can you provide the data of the request? I mean HTTP_HOST, SERVER_PORT
> > >> > and so on?
>
> > >> > in sfWebRequest->getUriPrefix the port is removed if it is a standard
> > >> > port. Perhaps you should look at the file to find out what happens.
>
> > >> > greets
> > >> > Sven
>
> > >> > Sumedh schrieb:
>
> > >> > > Yeah, I had tried getUriPrefix()...
>
> > >> > >http://groups.google.com/group/symfony-users/browse_thread/thread/8a3...
>
> > >> > > But even that has the same problem...
>
> > >> > > On Sep 18, 6:55 pm, Bernhard Schussek <[EMAIL PROTECTED]> wrote:
> > >> > >> Did you try any of the other sfWebRequest::get... methods such as
> > >> > >> getHost()?
>
> > >> > >> Bernhard
>
> > >> > >> Am Donnerstag, den 18.09.2008, 01:13 -0700 schrieb Sumedh:
>
> > >> > >>> No idea? :|
> > >> > >>> On Sep 17, 2:01 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> > >> > >>>> In Symfony 1.0, request->getUri() is not returning port number to
> > >> > >>>> me...
> > >> > >>>> It is creating problem in DEV environment where we use several
> > >> > >>>> ports...
> > >> > >>>> Would not be a problem in live...but still...
> > >> > >>>> Is this a known bug?
>
> > --
> > Thomas Rabaix
> > Internet Consultant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: 404 and referer...

2008-10-14 Thread Sumedh

Hmmm...may be...

But we are just beginning...and we don't delete any pages...

But why wouldn't I get the referer value? :|

On Oct 13, 7:41 pm, "Steve Daniels" <[EMAIL PROTECTED]>
wrote:
> 2008/10/13 Sumedh <[EMAIL PROTECTED]>:
>
>
>
>
>
> > Hi Friends,
>
> > I want to send an email to web-admin of my site whenever there is 404
> > or 500 error...
>
> > I am being able to send the email successfully on 404...however, I
> > don't get valid referer value in the error action...what might be the
> > reason?
>
> > Secondly, I want a similar behavior for internal error (500)...how can
> > I configure an action for 500? I saw in the documentation about
> > error500.php page...but is there any way that the web-admin can know
> > of this error as well?
>
> > Thanks...
>
> Hi Sumedh,
>
> You might want to think this through a little. A website that has been
> on the net for any length of time will generate numerous benign 404's
> possibly so many that your inbox would be very quickly flooded. I'd
> settle for frequent monitoring of the sfErrorLogger plugin.
>
> Steve Daniels
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] 404 and referer...

2008-10-13 Thread Sumedh

Hi Friends,

I want to send an email to web-admin of my site whenever there is 404
or 500 error...

I am being able to send the email successfully on 404...however, I
don't get valid referer value in the error action...what might be the
reason?

Secondly, I want a similar behavior for internal error (500)...how can
I configure an action for 500? I saw in the documentation about
error500.php page...but is there any way that the web-admin can know
of this error as well?

Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Hosting images on a separate domain

2008-10-12 Thread Sumedh

I don't see sf_image_dir_name in constants.php???

I searched for it in the whole symfony code base but don't see any
reference to it...

On Oct 12, 2:55 pm, lionslair <[EMAIL PROTECTED]> wrote:
> You
>
> On Oct 11, 2:57 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks guys...
>
> > Lionslair, how do I override the sf_image_path?
>
> > On Oct 10, 2:16 pm, lionslair <[EMAIL PROTECTED]> wrote:
>
> > > Maybe just app the path in your app folder.  Or over-ride the
> > > sf_image_path
>
> > > On Oct 10, 1:24 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > > > Hi friends,
>
> > > > I have been using web/images folder so far for storing images...
>
> > > > But now I want to use a separate domain for images
> > > > (images.example.com)...I'll continue to host them on same sever, but
> > > > just configure the DNS for a separate images subdomain...
>
> > > > Is there a ready made way to do this in symfony? Is image_path()
> > > > helper useful in this case?
>
> I think if
>
> sf_image_dir_name
>
> and set it in the applications config/app.yml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Charting...

2008-10-10 Thread Sumedh

Hi friends,

Have any of you used a charting library in Symfony?

Which one is simple to use?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Hosting images on a separate domain

2008-10-10 Thread Sumedh

Thanks guys...

Lionslair, how do I override the sf_image_path?

On Oct 10, 2:16 pm, lionslair <[EMAIL PROTECTED]> wrote:
> Maybe just app the path in your app folder.  Or over-ride the
> sf_image_path
>
> On Oct 10, 1:24 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > Hi friends,
>
> > I have been using web/images folder so far for storing images...
>
> > But now I want to use a separate domain for images
> > (images.example.com)...I'll continue to host them on same sever, but
> > just configure the DNS for a separate images subdomain...
>
> > Is there a ready made way to do this in symfony? Is image_path()
> > helper useful in this case?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



  1   2   >