php-general Digest 29 Dec 2012 03:50:57 -0000 Issue 8079

Topics (messages 319962 through 319972):

how to build multilingual e-commerce website
        319962 by: Sachin Raut
        319969 by: Bastien
        319970 by: Matijn Woudt
        319972 by: tamouse mailing lists

FilesystemIterator issue with smb/cifs mounts
        319963 by: Kris Spencer
        319971 by: Kris Spencer

Rewrite Help
        319964 by: Floyd Resler
        319965 by: Marco Behnke
        319966 by: Floyd Resler
        319967 by: Marco Behnke
        319968 by: Floyd Resler

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Dear Friends,

I have to develop multilingual e-commerce (clothing) website. Could anyone
who has developed these kind of sites before guide me on how to start the
development or recommend any tutorial / book for developing these kind of
sites?

Would really appreciate any inut regarding this.

regards
Sachin Raut

--- End Message ---
--- Begin Message ---

Bastien Koert

On 2012-12-28, at 6:19 AM, Sachin Raut <imsachinr...@gmail.com> wrote:

> Dear Friends,
> 
> I have to develop multilingual e-commerce (clothing) website. Could anyone
> who has developed these kind of sites before guide me on how to start the
> development or recommend any tutorial / book for developing these kind of
> sites?
> 
> Would really appreciate any inut regarding this.
> 
> regards
> Sachin Raut

Start by looking at magento. It's a great ecom shop software 

--- End Message ---
--- Begin Message ---
Op 28 dec. 2012 12:20 schreef "Sachin Raut" <imsachinr...@gmail.com> het
volgende:
>
> Dear Friends,
>
> I have to develop multilingual e-commerce (clothing) website. Could anyone
> who has developed these kind of sites before guide me on how to start the
> development or recommend any tutorial / book for developing these kind of
> sites?
>
> Would really appreciate any inut regarding this.
>
> regards
> Sachin Raut

How about you just take an open source ecommerce o package, and
modify/extend that if you need more functions? I would not recommend
reinventing the wheel. Also I doubt there is a tutorial/book on this. As
always, source code is probably the best documentation you can get.

- Matijn

--- End Message ---
--- Begin Message ---
On Fri, Dec 28, 2012 at 5:19 AM, Sachin Raut <imsachinr...@gmail.com> wrote:
> Dear Friends,
>
> I have to develop multilingual e-commerce (clothing) website. Could anyone
> who has developed these kind of sites before guide me on how to start the
> development or recommend any tutorial / book for developing these kind of
> sites?
>
> Would really appreciate any inut regarding this.
>
> regards
> Sachin Raut


There's this at O'Reilly: "Building eCommerce Applications"
http://shop.oreilly.com/product/0636920023098.do

And this at Amazon: "Effortless E-Commerce with PHP and MySQL" by
Larry Ullman http://amzn.com/0321656229

Also, not really knowing how much you need to do yourself, you could
probably get a leg up using existing frameworks and such.

The multilingual aspects will certainly be tricky. Gettext is sort of
the standard for doing multilingual things, but in and of itself
doesn't really provide much help in understanding *how* to do
multilingual right, and can be problematic. Some frameworks do support
multilingual sites; I know drupal does, for example, and includes
quite a lot of other things that can help you build an e-commerce site
rather quickly, but drupal itself has a rather steep learning curve.

Passages of just plain text aren't that difficult; it's when you start
constructing displayed text dynamically that it will be trickier, for
certain.

Just thinking off the top of my head; you will likely need something
other than just gettext with it's separate language files for things
like product descriptions. I think it gets rather difficult, and
probably bad form, to have your separate strings in files in your code
base linked to data base entries; simpler just to store the various
multilingual data base bits in the data base itself. But you can see
how complex it gets.

At any rate, I hope you have a fair bit of experience in building
dynamic internet sites already, this is not going to be easy.

--- End Message ---
--- Begin Message ---
I am writing a simple file system iterator which seems to work fine on
local filesystems but methods such as FilesystemIterator::isDir and
isFile fail to properly evaluate if the directory are smb/cifs mounted.
 Does anyone know a workaround or alternative?

Thanks

--- End Message ---
--- Begin Message ---
On 12/28/2012 9:32 AM, Kris Spencer wrote:
> I am writing a simple file system iterator which seems to work fine on
> local filesystems but methods such as FilesystemIterator::isDir and
> isFile fail to properly evaluate if the directory are smb/cifs mounted.
>  Does anyone know a workaround or alternative?
>
> Thanks
Just an update to my own post since I did not get any response.  After
more digging, I found a solution and thought I should share it in case
anyone else has a similar issue.

The solution was to add the noserverino option to my mount command.  Now
FilesystemIterator::isDir, isFile (and probably other similar PHP
functions) correctly report the expected response.

example:
# mount -t smbfs "//192.168.1.2/my/folder" /mount -o noserverino,user=me

references:
original point to solution:
    http://web.archiveorange.com/archive/v/WEFLnZlDdIdO5Jl7wies
view comment 1 for detailed explanation of cause:
    https://bugzilla.samba.org/show_bug.cgi?id=7707

see also "not a php bug":
https://bugs.php.net/bug.php?id=51404
https://bugs.php.net/bug.php?id=51266

Hope this helps someone out there in the future.

Regards

Kris

--- End Message ---
--- Begin Message ---
I'm having a perplexing problem with a rewrite rule (it's off topic but it's 
Friday!).  My initial path is  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that works 
great.  However, in my script I want to change the zero in the path to a 1.  
This tells it to generate a spreadsheet.  When my new link is clicked on I wind 
up with  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.
  Each click just adds to the end of the URL instead of replacing it.  My 
.htaccess file looks like this:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [PT,L]

I'm guessing there's something wrong in it but I don't know what.  Any help 
would be appreciated.

Thanks!
Floyd



--- End Message ---
--- Begin Message ---
On 28.12.2012 16:30, Floyd Resler wrote:
I'm having a perplexing problem with a rewrite rule (it's off topic but it's 
Friday!).  My initial path is  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that works 
great.  However, in my script I want to change the zero in the path to a 1.  
This tells it to generate a spreadsheet.  When my new link is clicked on I wind 
up with  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.
  Each click just adds to the end of the URL instead of replacing it.  My 
.htaccess file looks like this:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
where is the rewrite rule from 0 to 1?
And can not see it here?

--- End Message ---
--- Begin Message ---
On Dec 28, 2012, at 11:09 AM, Marco Behnke <ma...@behnke.biz> wrote:

> On 28.12.2012 16:30, Floyd Resler wrote:
>> I'm having a perplexing problem with a rewrite rule (it's off topic but it's 
>> Friday!).  My initial path is  
>> piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that 
>> works great.  However, in my script I want to change the zero in the path to 
>> a 1.  This tells it to generate a spreadsheet.  When my new link is clicked 
>> on I wind up with  
>> piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.
>>   Each click just adds to the end of the URL instead of replacing it.  My 
>> .htaccess file looks like this:
>> RewriteEngine On
>> 
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> 
>> RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
> where is the rewrite rule from 0 to 1?
> And can not see it here?

That part isn't a rewrite rule.  Basically what I want to do is to load the 
same page with a different parameter.

Thanks!
Floyd


--- End Message ---
--- Begin Message ---
On 28.12.2012 17:13, Floyd Resler wrote:
On Dec 28, 2012, at 11:09 AM, Marco Behnke <ma...@behnke.biz> wrote:

On 28.12.2012 16:30, Floyd Resler wrote:
I'm having a perplexing problem with a rewrite rule (it's off topic but it's 
Friday!).  My initial path is  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that works 
great.  However, in my script I want to change the zero in the path to a 1.  
This tells it to generate a spreadsheet.  When my new link is clicked on I wind 
up with  
piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.
  Each click just adds to the end of the URL instead of replacing it.  My 
.htaccess file looks like this:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
where is the rewrite rule from 0 to 1?
And can not see it here?
Have you set a rewrite base? Do you use relative or absolute links on your page?

You know, with seeing all of the relevant code, nobody can point out the error
--- End Message ---
--- Begin Message ---

On Dec 28, 2012, at 11:26 AM, Marco Behnke <ma...@behnke.biz> wrote:

> On 28.12.2012 17:13, Floyd Resler wrote:
>> On Dec 28, 2012, at 11:09 AM, Marco Behnke <ma...@behnke.biz> wrote:
>> 
>>> On 28.12.2012 16:30, Floyd Resler wrote:
>>>> I'm having a perplexing problem with a rewrite rule (it's off topic but 
>>>> it's Friday!).  My initial path is  
>>>> piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that 
>>>> works great.  However, in my script I want to change the zero in the path 
>>>> to a 1.  This tells it to generate a spreadsheet.  When my new link is 
>>>> clicked on I wind up with  
>>>> piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.
>>>>   Each click just adds to the end of the URL instead of replacing it.  My 
>>>> .htaccess file looks like this:
>>>> RewriteEngine On
>>>> 
>>>> RewriteCond %{REQUEST_FILENAME} !-f
>>>> RewriteCond %{REQUEST_FILENAME} !-d
>>>> 
>>>> RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
>>> where is the rewrite rule from 0 to 1?
>>> And can not see it here?
> Have you set a rewrite base? Do you use relative or absolute links on your 
> page?
> 
> You know, with seeing all of the relevant code, nobody can point out the error
> 

I was using relative paths.  I changed it to absolute and it works fine now.  
Thanks for a nudge in the right direction!

Thanks!
Floyd


--- End Message ---

Reply via email to