Jump to content

extrovertive

Members
  • Posts

    235
  • Joined

  • Last visited

    Never

Posts posted by extrovertive

  1. Not sure if this relates more to PHP or Javascript/jQuery, but is there a way to attach a file to an email client (i.e Outlook), when user click on a link/button?

     

    I have a link that generates a PDF and I want it so that, when someone click on a link, it will open up their email client with the PDF already attached, and subject already fill in.

     

    I know, you can use <a href="mailto:..."  but that only opens up the mail client. I also need to attach a file with a subject fill in.

     

    Is this doable with PHP or Javascript?

  2. Ok, I have two domains.

     

    Let's say I want http://XXX.domainA.com to go to http://domainB.com/title-goes-here

     

    How can I do that using mod_rewrite in the .htacess file for my domainA.com domain? Like, http://funny.domainA.com would then redirect to http://domainB.com/blog/the-title-of-something

     

    I know I can create a subdomain on domainA and have a 301 redirect to go to another URL.

     

    But I'm wondering if I can just use mod-rewrite for my domainA.com?

  3. Given a link/page, what's the best way to extract all the image urls of it? I know I can use $string = file_get_contents("http://www.domain.com"); and then  use regular expression to get all the link of the images.

     

    But what if some images are like http://www.domain.com/resources/data.php?=123 It would be quite a difficult challenge to find the ones without the typical .jpg, .gif, or .png extensions.

     

    Can anyone show me a simple script to do this?

  4. We have a new project for a web app that will display banners ads on websites (as a network) and our estimate is for it to handle 10 to 20 billion impressions a month (yes, billions not millions).

     

    Our current language is in ASP...but are moving to PHP. Does PHP 5 has its limit with scaling web application? Or, should I have our team invest in picking up JSP?

     

    Or, is the issue a matter of the app server and/or DB? We plan to use Oracle 10g as the database.

     

  5. This code

     

    $xml = new SimpleXMLElement('<root></root>');
    $temp = $xml->addChild('parent');
    $temp = $temp->addChild('test', 'cool');
    
    header('Content-type: text/xml');
    echo $xml->asXML();
    

     

    returns

    <root>
    <parent>
      <test>cool</test> 
      </parent>
    </root>
    

     

    But I want to insert some text "cool" inside the parent element like this

    <root>
    <parent> cool
      <test>cool</test> 
      </parent>
      </root>
    

     

    I know you can use PHP DOM (createTextNode) and append the text to the parent element, but is there a simplexml way of doing it?

  6. Asssumging the following output for date:

    Date: Wed, 24 Dec 2008 01:52:41 GMT

    $dateA = get_headers("http://www.yahoo.com");
    $date = $dateA[1];
    preg_match('/[^(date)]+/i', $date, $newdate);
    echo $newdate[0];
    

     

    Now, I just want a regex to remove "Date:" and just display

    Wed, 24 Dec 2008 01:52:41 GMT

     

    How come above is not working?

  7. I'm looking for a simple PHP/MySQL forum script that can be easily integrated with a list of my existing members (100K+), and that can be easily customize. I want to be able to integrate the forums on my site (I have the header and footer) and want to fit it within the content section my site. Can anyone list some sample forums and demos on a site?

     

    Also, there should be a feature for me to retrieve some forums feeds (i.e. latest forum discussion topics) which I can display on the front page of my site.

     

    Can anyone help?

  8.  

     

    Hello,

     

    I am an intermediate PHP 5 programmer and know basic User-interface/graphics design (able to create a basic CSS/XHTML from scratch).

     

    Well, I want to be able to create a custom user registration/login, personalization, profile management, groups, and group blog site mainly to share photos they took from their digital camera.

    - User can register on the site and have access to upload their photos (tagging it) and either share it in their group (private or public access).

    - Private or public access to their photo gallery -- is there a free mod for this for Drupal?

    - They can also download widgets (special members only). The widgets are already built, but only certain users can download it.

    - News article system for admin to post.

     

    Now, I have created the design (CSS, HTML, and images) and an idea on what functionalities I need. The problem? I just downloaded Drupal 6, started reading tutorials and some books, and was wondering how long would it take to built a custom web application like my requirements? At the same time, how long would it take to convert my custom web design to fit within the Drupal domain?

     

    I have a 3-6 weeks to complete this -- my goal:

     

    -- Read the book "Pro Drupal Development" - spent 3 weeks on it.

    -- Spend 1 week transforming my pre-built design to the Drupal template system

    -- Spend 2 weeks building the requirements in PHP (registration/login, personalization, profile customization, widgets sharing, blogs, forums, private/public image gallery). However, are there mods on how to do this easier and have it been custom built/design???

     

    Thus, 6 weeks total.

     

    I plan to work lots of hours, moonlight, and even weekends reading my Drupal book.

     

    To get an idea of the finished product, go to:

     

    http://www.fastcompany.com -- that's an idea of the features and design I want to built from scratch.

    http://www.pdnonline.com -- that's also exactly the look of my design and the features I want to built.

     

    Can this work out?

     

    Since the learning curve might be steep for Drupal, can it also be done faster using the ZendFramework?

  9. Both of which I have yet to learn -- but am considering studying intensely either one of them, for a web project I'm building.

     

    I am an intermediate PHP 5 programmer and know basic User-interface/graphics design (able to create a basic CSS/XHTML from scratch).

     

    Well, I want to be able to create a custom user registration/login, personalization, profile management, groups, and group blog site mainly to share photos they took from their digital camera.

    - User can register on the site and have access to upload their photos (tagging it) and either share it in their group (private or public access).

    - Private or public access to their photo gallery -- is there a free mod for this for Drupal?

    - They can also download widgets (special members only). The widgets are already built, but only certain users can download it.

    - News article system for admin to post.

     

    Now, I have created the design (CSS, HTML, and images) and an idea on what functionalities I need. The problem? I just downloaded Drupal 6, hoping to spent some time reading tutorials and books, and was wondering how long would it take to built a custom web application like my requirements?

     

    I know Drupal has a steep learning curve, but what about doing the same thing using the Zend Framework? Would it be much easier since the framework has not rigid structure? Or, would Drupal be easier since it's already a CMS and I just need to learn understand the modules and template system?

     

    To get an idea of the finished product, go to:

     

    http://www.fastcompany.com -- that's an idea of the features and design I want to built from scratch.

    http://www.pdnonline.com -- that's also exactly the look of my design and the features I want to built.

     

    Can this work out faster on Drupal or ZF?

  10. I want a regex such that it will not accept a number of special characters in front..and letters only in front..with numbers ok. Underscore is fine.

     

    Sort of like a username type of field.

     

    Anyone help?

  11. Ask on devshed.forums.com about partnership forms - what simple lead/partnership generation are out there for PHP? I'm thinking of building some web forms for potential business to fill out if they would like to partner for us. These are going to be big companies, so I like it to be professional. Is there a way for user to fill out a webform and have that info be sent in a PDF to an email? Or, is it better to write a simple mailing function (i.e. mail($subject, $message, etc)) script (the simplest way)?

  12. I have the code

     

    echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet");
    

     

     

    Yet, my output is:

    PHP packetPHP to WDDX packet example

     

     

    How come it's not in WDDX format? What do I have to do to enabled WDDX? I'm on a Windows machine using Apache.

×
×
  • 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.