Jump to content

ayoksus

Members
  • Posts

    42
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ayoksus's Achievements

Member

Member (2/5)

0

Reputation

  1. 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.
  2. 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
  3. 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
  4. Sorry, I don't get your question. I mean XML, like this
  5. Maybe you can check with strpos strpos($comment, "http://") Or using captcha
  6. 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.
  7. 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
  8. ayoksus

    Missing Site

    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.
  9. Yea that could another problem. But I'm still stuck with counting from word 2003 file.
  10. 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
  11. 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?
  12. Hi. I've solved it by using base64 encode. Thanks
  13. 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.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.