User Profile

Collapse

Profile Sidebar

Collapse
xerc
xerc
Last Activity: Apr 16 '07, 09:09 PM
Joined: Mar 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xerc
    started a topic CURL FTP DOWNLOAD -- Weird..........
    in PHP

    CURL FTP DOWNLOAD -- Weird..........

    I am trying to create a generic function I can call to download all files from a single remote FTP directory -- using CURL. I want to multi-thread it, but need to get the single thread functionality working first before I tackle that. Anyway, in my function I can list all the files, but the function I have, no matter how I try, will only return one file -- the last file. My for() loop seems pretty straightforward , so not sure why only the last...
    See more | Go to post

  • xerc
    started a topic Running Multiple Version of PHP
    in PHP

    Running Multiple Version of PHP

    So.....I have some large (LARGE) legacy sites on a IIS 6 server using PHP 4.4.1. Should I update? Yes, but I don't have the time to go through everything right now to fix other people's sloppy scripting and other issues that would make PHP 5 a no go on the server. Nonetheless, I have some new stuff to create and install, and I'd like to take advantage of PHP 5 (specifically for curl_multi_exec ). Is it possible to have 2 versions of PHP installed,...
    See more | Go to post

  • xerc
    replied to Send SMS
    in PHP
    I forgot to add. While I reference GSM modems in option three, you could in fact use CDMA or other, but most software to interface with the modems only support GSM. I'm not an expert, but I've read that the AT command set for GSM is pretty standard, so a GSM modem is a GSM modem. The AT command set for CDMA, however, is not terribly standard, so it is difficult for software developers to account for all the AT differences between hardware and...
    See more | Go to post

    Leave a comment:


  • xerc
    replied to Send SMS
    in PHP
    Well, first you have to identify how you are going to send the SMS and from where. There are three basic options.

    1) Email-to-SMS. Most mobile providers allow you to send an e-mail to a phone number, which then forwards it as an SMS. So for instance 2230492098@wire lessprovider.co m. The problem with this method is that not all wireless providers allow this (particularly for prepay SIMs). Moreover, if you find most of your recipients...
    See more | Go to post

    Leave a comment:


  • Maybe I don't understand your need, but is all you want is a drop down menu dynamically created from a PHP query to a database? And then the user selection of the drop down menu carried to the next page?

    If so, you would do something like this. The value of pull down menu #1 on the first page might be referenced as 'select1a'. This gets passed in a URL post to the next page through the typical form submit. So something like "page2.php?$use rselection1=$se lect1a"...
    See more | Go to post

    Leave a comment:


  • xerc
    replied to Monitor Services on Windows 2003 with PHP
    in PHP
    So if I understand correctly, I'll need some .bat or other command in WMI/VBScript or other which can retrieve the status and write the output? I'm not particularly good with Windows scripting (not my servers so not my choice), so any guidance on the genre of commands I need to use? Thanks much in advance.
    See more | Go to post

    Leave a comment:


  • xerc
    started a topic Monitor Services on Windows 2003 with PHP
    in PHP

    Monitor Services on Windows 2003 with PHP

    So, this may not even be possible, but if so, I was hoping someone could point me in the right direction or give me the right terminology to use for searches of code example. Aside from monitoring ports with ping and what not, I'd like to be able to monitor specific installed services on a Windows 2003 machine. Is this possible with PHP? I'm not talking about FTP, IIS, or other Windows services, but rather custom and commercial installed software...
    See more | Go to post

  • xerc
    replied to upload problem
    in PHP
    I think we'd need to see more of the code to know for sure, but I suspect your problems are because:

    1) You do not have the proper root/working directory set. If you borrowed this script from somewhere else and/or put it on a different machine, then you will most likely have to check your upload and other paths are set correctly in the PHP.ini file.

    2) Ensure that the directories you are working with have proper write...
    See more | Go to post

    Leave a comment:


  • xerc
    replied to Page Refresh problem
    in PHP
    I'm not sure I get you correctly, but I use to have the same problem with some table output (from a PHP call to a MySQL database) not refreshing, despite the page autoloading every 5 minutes. I didn't exactly do a lot of research to figure out the problem, but assumed it was a problem with the local cache settings, as I could force the reload by doing 'shift-Refresh', but a simple refresh/reload would not update the page -- it just recalled the...
    See more | Go to post

    Leave a comment:


  • xerc
    replied to FTP- Check valid upload
    in PHP
    So would it be fair to say that it is connecting some times, but other times the connection is just bad -- meaning my code is okay but the connection sucks? If this is the case, would a timer then be good way to proceed do you think? Meaning it tries to connect, if ftp_connect() is false, then it waits say 15-30secs and tries again. Maybe trying a maximum of 3 times. I'm just asking if this is reasonable in case there is a better way. I like...
    See more | Go to post

    Leave a comment:


  • xerc
    replied to FTP- Check valid upload
    in PHP
    I should add one more thing. I've noticed this does not produce an error, except when left to run as command line. Some setting I might have in the .ini file for how variables are treated differently?
    See more | Go to post

    Leave a comment:


  • xerc
    replied to FTP- Check valid upload
    in PHP
    Okay, so turned on the PHP log, and here is error I'm getting:

    "PHP Warning: ftp_pasv() expects parameter 1 to be resource, boolean given in"

    I've checked that both the sending and receiving servers don't have anything screwy with firewalls or limit on FTP connections. Similarly, the PHP timeout is set crazy high, so that's not the issue. What's weird is that this script use to work just fine a month ago....
    See more | Go to post

    Leave a comment:


  • xerc
    replied to FTP- Check valid upload
    in PHP
    Nope. Different files. Now, files do repeat, so yes, some files do lock up repeatedly, but it doesn't appear to be specific to certain files -- no pattern. Some of the files that lock up will go without a problem for weeks....
    See more | Go to post

    Leave a comment:


  • xerc
    started a topic FTP- Check valid upload
    in PHP

    FTP- Check valid upload

    Hey all,

    So I have a script that runs pretty much every 5 minutes or so to look for updated files locally on a server. New files (ranging in size from 1KB - 2MB) are then FTP'd to another server. Without going into detail, one server is a content server, the other is a 'broadcast' server. Anywho, the problem seems to be with the FTP part. I'd say about 20 percent of the time, regardless of file size, something hangs up, such that...
    See more | Go to post
No activity results to display
Show More
Working...