I want to launch a small online shop.
I've heard of several open source ecommerce solutions out there. Is there a website, page, or something that could help me choose the right one?
I've heard of osCommerce, magento, joomla+ecommerce ...
I'm looking for a free solution, preferably in PHP so I can tweak it if needed.
Thanks!
I'm trying to convert a simple url (below) in to a blog-style url, but not quite sure how to do it, all of my other rules are working fine, but I can't seem to figure this one out.
URL I want to convert: http://www.website.com/myblog.php?id=1&title=My+blog+title
URL I want it to create: http://www.website.com/1/my-blog-title
What should the rule be?
Any assistance appreciated :)
So here is my problem. I want to redirect name.domain.com/trips/1 to domain.com?username=name&trip=1 using modrewrite. Is this possible? I have the dns set up correctly however - I am unsure about the htaccess file. Can I link all this information to one PHP or do I need to create a directory for every user?
Thanks for your help.
Hi all,
I got a problem when I tried to find some characters with following code:
preg_match_all('/[\w\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A]/',$str,$match); //line 5
print_r($match);
And I got error as below:
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: PCRE does not support \L, \l, \N, \U, or \u at offset 4 in E:\mycake\app\webroot\re.php on line 5
I'm not so familiar with reg expression and have no idea about this error.How can I fix this?Thanks.
I am a PHP web programmer who is trying to learn C#.
I would like to know why C# requires me to specify the data type when creating a variable.
Class classInstance = new Class();
Why do we need to know the data type before a class instance?
i can't upload large files, but i've set
php.ini
max_execution_time = 3600
max_input_time = 600
memory_limit = 100M
post_max_size = 100M
file_uploads = On
upload_max_filesize = 100M
it returns a 500 error - [an error occurred while processing this directive]
could you say why?
thanks
iam having an array of items like
[item1,itmem2,item3];
i have to insert these items at a particular userId:
final results look like this
UserId ItemId
2 || item1
2 || item2
2 || item3
currently iam looping through the array in php code and inserting each item one by one eg
foreach($items as $item)
{
insert into items (UserId,ItemId) value (2,$item);
}
is it possible i can insert all entries in single query.
Hello,
what is PHP's safest encrypt/decrypt method, in use with MySQL - to store let's say passwords?
Of course, not for portal purposes.
I want to do little password (domain/mysql/ftp...) storage for whole team online, but I don't want really to endanger our clients' bussinesses. Hash can't be used for obvious reasons (Doesn't really make sense to run rainbow tables every time :D).
Any idea?
I want to run a php script on my site from a newly created subdirectory.
However I am finding that my existing wordpress blog (running from doc root) is intercepting my url to the script in subdir and giving me a 404.
How can I get wordpress to ignore the subdirectory?
i have a renamed js file which i have to call in each of my php page. Now i want to replace that old name with the new one using shell.
what iam using is this :-
sed -i ’s/old/new/g’ *
but this is giving the following error :-
sed: -e expression #1, char 1: unknown command:
now how can i do this replacement??
I'm working on an open source script. I would like to provide a feature to extend the script by use of plugins/modules.
I need some recommendations on open source cms/scripts to study code from, to gather the best practices on making script extendable by plugins. I've used WordPress in the past, and was planning to implement a similar system, but I'm looking to dive into alternatives, which might be better.
Language preferred is PHP 5
How would I do to check if a email actially exists?
Cant understand how sites do to send mails with a unique link that the users clicks to validate that he is the owner of email =/
Make a 2 new columns called activationkey and activated and store some random string, send an email with the activationkey, and update the users activated =1 that match that activation link
register.php?a=activate&key=9cdfb439c7876e703e307864c9167a15
Any better ideas?
I'm trying to create a CSS/HTML based graph using this tutorial here.
However instead of putting the data directly into the html code I'm importing it from a CSV file using PHP with the following code.
<?PHP
/* Open CSV file */
$handle = fopen("defects.csv", "r");
$c = 0;
/* gets data from csv file */
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
/* stores dates as variable $date */
$date[$c] = $data[0];
$c++;
/* inserts defect data into html code */
echo "<dd class=\"p" . $data[2] . "\"><span><b>" . $data[2] . "</b></span></dd>";
echo "<dd class=\"sub p" . $data[3] . "\" ><span><b>" . $data[3] . "</b></span></dd>";
}
echo "</dl>";
echo "<ul class=\"xAxis\">";
/* X AXIS */
/* inserts date data into html code for x axis */
for ($d=0; $d < $c; $d++) {
echo "<li>" . $date[$d] . "</li>";
}
?>
The values are being placed correctly on the chart, but the bars aren't appearing. The CSS code I have for the bars is:
/* default column styling */
dl#csschart span{
height:50%;
background:url(../images/barx.png) repeat-y;
}
dl#csschart .sub{
margin-left:-33px;
}
dl#csschart .sub span{
background:url(../images/subBarx.png) repeat-y;
}
Just in case it helps, I've print screened how the graph should look. You can see it at: http://allured.info/graph/failgraph.png
how to add a div between headerarea and content area of a thesis theme. what is the code i need to be write in custom_functions.php file for these attempt...or which page i need to edit for that ....anybody please give an asnwer to me..
Hello
Please suggest me a good open source web crawler written in C++,JAVA or PHP.
i just need to crawl/index some specific websites for specific contents(images,text,videos).
i know that their are already a lot of question & answers about this topic on this website
but i am a little confused after reading all of them.
So i am sorry if i am repeating the same question again.
-Thanks in advance
I need to itereate a loop to every time find the string appearing after a particular string say "if(OLD.", then which PHP function will be helpfull for me?
Hi,
I have an SQL table like this : sales(product,timestamp)
I want to display a chart using Open Flash Chart but i don't know how to get the total sales per hour within the last 12 hours. ( the timestamp column is the sale date )
By example i will end up with an array like this : array(12,5,8,6,10,35,7,23,4,5,2,16) every number is the total sales in each hour.
Note: i want to use php or only mysql for this.
Thanks
Hi,
This is odd, but for some reason the $_SERVER["SCRIPT_URI"] will not return the domain name when I am in child/sub-pages but will only work on the main page. Not sure if its due to the script (WordPress) or host, but please can you suggest any reliable solution to retrieve the domain name with PHP?
I am very thankful in advance,
Regards
Hello,
I'm basically looking to simply print out each of the allowed values in a CCK field..
i know the allowed values are stored inside a text field within the table: 'content_node_field'.
the values are then stored within 'global_settings'
I'm looking to somehow print out each individual allowed value using a PHP loop.
however with all values being stored within one text field.. im finding it hard to print out each value individually.
When i am using mysql_real_escape_string on my unescaped strings the data in the database is storing with the backslashes which should not happen.
I have magic_quotes_gpc OFF not sure why this is happening. Any idea ?
Is there any setting in the mysql database which needs to be modified.
I am not using addslashes any where in the code. PHP language.
Please help.
I want to use asymmetric encryption of headers in RESTful requests to verify the identity of the system sending the request: i e System A encrypts it's name, timestamp, and the service name using it's public key in a request to System B. System B then uses the public key of System A to decrypt, proving the authenticity of the request.
1) Does php-mcrypt support this?
2) Has anyone benchmarked this type of operation?
I have banners advertising with number of views, like CPM system.
And for example :
i have 3 banner:
banner1 with 20.000 nr of views
banner2 with 10.000 nr of views
banner3 with 5.000 nr of views
and on my website the banner must to appear in this position (when the page is reloaded) :
banner1 banner2 banner1 banner2 banner3
if the number of views is higher then the probability of apparition is higher
how can i do this in php?
Thanks a lot for helping :)
Are there any good free text editors i can use directly on the server if i give it my ftp details?
failing that one with a good save-to-ftp shortcut (ie ctrl-shift-s)
I work with mainly php and jquery, my primary editor is aptana?
Hi all,
I'm new to php and I need to authenticate to a SSO server.
The SSO server is a .Net one, using a SSL certificate.
When I go back from the SSO server, the response is encoded.
I have the key of the certificate of course, but how could I decrypt the response ?
This is very vague for me, don't hesitate to detail your answer :)
Many thanks in advance for your help,
best regards