
ayoksus
Members-
Posts
42 -
Joined
-
Last visited
Profile Information
-
Gender
Not Telling
ayoksus's Achievements

Member (2/5)
0
Reputation
-
Hi, The email from the server is on a blacklist. They blame me because I send emails trough my php script. So now I wonder, how can I send email through web form without being blocked? Please, any advice would be appreciated. Thanks.
-
I have some questions about match phrase (more than 1 word) with phrase. I have some items with keywords which I need to match. Case 1: the keyword is "lady's-shoes" and I need to get items with keywords "lady's-shoes lady's-shoe woman's-shoe" but not to match "lady's-jeans lady's-pants". Case 2: the keyword is "long dress green" and I need to get items with keywords "long dress" and "long dress green" and "long dress green for woman" but not "green shoe " nor "long dress red" Which one do I need to use, LIKE or MATCH AGAINST? Do I need '%%' for the LIKE? Case 3: case 1 without dash (-). Is it better to find if I use dash between words? Thank's. Rgds, ayok
-
Hi there, I am busy to create an e-commerce site where I need to import products from product feeds (in XML/CSV). I import the data to mysql and display those on my website. However, I am stuck where I need to match their categories with my site's categories. For example, I have category laptops which is under computer, but the data has no category laptops, instead they put most laptops under category notebooks. Or sometimes the feeds give you a laptop bags under category laptop. How could I possibly grab the right products under categories in the productfeed and put those into the right categories in my site? What could be the best logic to accomplish this? I have tried making keywords, however, I can't get it really neat. Could someone give me an advice here? Thank you
-
Oh I see. Thanks.
- 4 replies
-
- htmlentities
- illegal chars
-
(and 1 more)
Tagged with:
-
Sorry, I don't get your question. I mean XML, like this
- 4 replies
-
- htmlentities
- illegal chars
-
(and 1 more)
Tagged with:
-
Maybe you can check with strpos strpos($comment, "http://") Or using captcha
-
simplexml is easy for you
-
I take the article from RSS feeds, and I am not able to remove this character. I have tried this iconv( "UTF-8", "ISO-8859-1//IGNORE", $string ), however, I still get Jakarta�s instead of Jakarta�s in http://www.indonesiaah.com/articles/destinations/3/jakarta%C3%A2%EF%BF%BD%EF%BF%BDs-neo-gothic-catholic-cathedral-.htm. Does anyone have the solution for this problem? Thank you.
- 4 replies
-
- htmlentities
- illegal chars
-
(and 1 more)
Tagged with:
-
Hi, I got a web development project to build a tour operator/travel agent site. It's too much works if I do from the scratch. So now I'm looking for a travel agent php script. However, it's hard to decide which script I will choose. Is there anyone who has experience on building a travel agent site? Could someone give me recommendation for a good php script? Thank you
-
- php
- tour agent
-
(and 1 more)
Tagged with:
-
I have a question about a missing site. I'm not a linux expert, I'm just trying to help the hosting which has lost my site by accident. Here is the story. I have a website and a webshop. The website has a domainname, but the webshop (because of some problems) had no domainname. So to open the webshop I need to type the IP address then the folder where my webshop was. They used Plesk as the server panel, and my webshop was in their share server, where they put all the test site before they put it online. I didn't mind cos the link was for me is not so important, there is a button from my website for the visitor to visit my webshop. Because of migration and some upgrade, they delete the test server where my webshop was through Plesk panel. Now I lost my webshop. My question is, is it possible to find my missing site back? Or at least the database where all the product was. I think the data's is still somewhere in the server.. or I should just forget about that? Any help whould be appriciated. Thank you.
-
Yea that could another problem. But I'm still stuck with counting from word 2003 file.
-
Hi, I'm about to make a translator site where people can order a translator to translate their documents. From the site people are able to upload their file then it would be connected to a translator/member of the site. The problem is how I make an application that count the price from the document. The most common way to rate the translation price is per word. So I need to know how many words in the document that a customer's uploaded. I thought there must be possible to count words from text file such as a word document. However, I couldn't find any way to get exact amount of a ms word 2003 document (.doc). I've found a way to count .docx, but not .doc. And there will be more files such as PDF, or rtf. I've seen another method which only count the file size, but I don't think it would give the same result for different document format. Or it is? The simple way I could think is to ask the visitors to copy/paste their text on a textarea, but I don't think this is the best way. Would someone gives me an advice how can I solve this? Thanks, ayok
-
Hi, I'm trying to create a news page base on this xml from other site. <?xml version="1.0" encoding="UTF-8"?> <viewentries toplevelentries="0"> <viewentry position="1" unid="D31B1450A5704018C1257ACF00424EB8" noteid="62BE" siblings="0" date="2012-12-09"> <entrydata columnnumber="0" name="Date"> <text>2012-12-09</text> </entrydata> <entrydata columnnumber="1" name="header"> <text>Title 1</text> </entrydata> <entrydata columnnumber="2" name="intro"> <text>This is the intro tekst 1</text> </entrydata> <entrydata columnnumber="3" name="content"> <text>The content of the newsfeed is here. This is the first content.</text> </entrydata> <entrydata columnnumber="4" name="imagetag"> <text>http://www.feedsite.com/767D50B7A55028E7C1257AC2007C5A5F/$file/200401660-001.jpg</text> </entrydata> </viewentry> <viewentry position="2" unid="C90F4979710F1F88C1257ACE005EDC4A" noteid="62BA" siblings="0" date="2012-12-08"> <entrydata columnnumber="0" name="Date"> <text>2012-12-08</text> </entrydata> <entrydata columnnumber="1" name="header"> <text>Title 2</text> </entrydata> <entrydata columnnumber="2" name="intro"> <text>This is the intro tekst 2</text> </entrydata> <entrydata columnnumber="3" name="content"> <text>The content of the newsfeed is here. This is the second content.</text> </entrydata> <entrydata columnnumber="4" name="imagetag"> <text>http://www.feedsite.com/9FB08DD8D84A6ABDC1257ACA003A49E2/$file/iPad.jpg</text> </entrydata> </viewentry> </viewentries> I use DOMDocument to retrieve the data's from this XML. First I display the titles, when it's clicked it displays the chosen news. However, I don't know the most effective way so that I don't need to do to many foreach loops which slows the pages. <?php $objDOM2 = new DOMDocument(); $objDOM2->load("https://www.feedsite.com/news?openagent&cnt=10&tkl=1"); $viewentry = $objDOM2->getElementsByTagName("viewentry"); $i = 0; foreach( $viewentry as $value ){ $unid = $viewentry->item($i)->getAttribute("unid"); $date = $value->getElementsByTagName("entrydata"); $date = trim($date->item(0)->nodeValue); $title = $value->getElementsByTagName("entrydata"); $title = trim($title->item(1)->nodeValue); $head = $value->getElementsByTagName("entrydata"); $head = trim($kopje->item(2)->nodeValue); $text = $value->getElementsByTagName("entrydata"); $text = nl2br(trim($text->item(3)->nodeValue)); $img = $value->getElementsByTagName("entrydata"); $img = trim($img->item(4)->nodeValue); if($_GET['id'] === $unid){ ?> <div class="popup"> <h2><?php echo $title ?></h2> <?php if($img != 'http://www.fiscanet.nl'){ echo "<img src='".$img."' class='newsImg' />"; } echo "<div class='intro'><strong>".$date; echo "</strong> - ".$head."</div>"; echo "<div class='content'>".$text."</div>"; break; ?> </div> <?php } $i++; } ?> So I made a loop for each items and match those the $_GET['id'] with the unique id ($unid) to display the chosen news item. However, the page is become so slow to be opened, because of the loops. Especially when there are a lot of news items. And if I make an "other news" list, then it become even slower. I need a faster query for this case. Is there any other way to make it faster?
-
Hi, Now I'm having problem with html email where sentences are broken in the middle and make a new line.It would be new problem for a normal word, but it is a problem if it's happened with image src. The image is not displayed and if I take a look in the source codes the link is broken like: src="http://www. imageslink.com/image.jpg" . And it's not happened to all images in the email Does anyone knows what happens? I've tried to do str_replace in the output, but it doesn't work.