---- Output ----
Connection ID returned by ftp_connect [line 2151]: Resource id #29
Login result returned by ftp_login [line 2156]: 1
Switching on ftp passive mode...
Checking if it is possible to open file: "............" for writing ... Success!
File: ............" handler: Resource id #30
Remote file size: 566.0 KB
PHP Warning: ftp_fget(): php_connect_nonb() failed: Connection timed out (110) in ...... on line 2205
---- Output end ----
Then I tried to connect this FTP using shell:
---- Output ----
$ ftp xx.x.xxx.xx
Connected to xx.x.xxx.xx.
220 FTP server Ceske WWW.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (xx.x.xxx.xx:xxxxxx): name
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd Estonia
250 Directory successfully changed.
ftp> pwd
257 "/Estonia"
ftp> get
(remote-file) estonia.xml
(local-file) estonia_downloaded.xml
local: estonia_downloaded.xml remote: estonia.xml
227 Entering Passive Mode (81,0,233,91,65,138)
ftp: connect: Connection timed out
---- Output end ----
Why could that happen? Any ideas? Something is wrong with FTP or what... Thanx
I’m thinking about putting together a Wiki for some stuff I am doing. Does anyone have any packages that they like and would recommend? Things I would like:
1) PHP (V5 would be a good thing) 2) Data stored in MySQL 3) User names to edit as an option. 4) New/changed Pages RSS feed. 5) Under active development 6) There is no #6 7) Page versioning. 8) Good support for inserting code of various forms (PHP, javascript, xml etc) in pages.
Hi, I'm having problems deploying a very simple servlet on Tomcat 5.5. When I direct my browser to the expected URL, Tomcat just spits back a blank "Directory Listing for /" page, and I'm not seeing anything helpful in the logs.
I'm wondering if the problem is that I have not included any .html files in my webapp ... but I don't understand why I would need to, or what I would have to put in it.
Compiles fine. Servlet Code: public class HelloWorldExample extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println(""); out.println("See my first demo work!"); out.println(""); out.println(""); } }
I'm having a few problems getting Mambo working on FreeBSD 5.3
Whenever I try to log in to the administrators account, with a valid username\password, you get presented with the same screen with the username\password boxes still filled in. /var/log/messages states "Feb 23 17:42:42 linux kernel: pid 15803 (httpd), uid 1006: exited on signal 11"
Nothing is written to the Apache access or error logs
If I try to log in with an invalid combo, a JavaScript popup tells me I got either the username or password wrong. So, the authentication is sort-of happening
The only useful thread I've found on the Mambo forums was this one. Which states "To all who have this issue, it is a problem with duplicate extension entries in your php.ini"
All I have in my php.ini that contains references to extension are:
I really don't know much about setting PHP up. Does anyone have any pointers?
I seem to remember having this problem in the past with Gallery, and the issue was resolved by installing php4-extensions
Here's the version of all PHP stuff I have installed:
# portversion -v | grep php
mod_php4-4.3.10_2,1 = up-to-date with port
php4-bz2-4.3.10_2 = up-to-date with port
php4-ctype-4.3.10_2 = up-to-date with port
php4-extensions-1.0 = up-to-date with port
php4-gd-4.3.10_2 = up-to-date with port
php4-mysql-4.3.10_2 = up-to-date with port
php4-openssl-4.3.10_2 = up-to-date with port
php4-overload-4.3.10_2 = up-to-date with port
php4-pcre-4.3.10_2 = up-to-date with port
php4-posix-4.3.10_2 = up-to-date with port
php4-session-4.3.10_2 = up-to-date with port
php4-snmp-4.3.10_2 = up-to-date with port
php4-tokenizer-4.3.10_2 = up-to-date with port
php4-xml-4.3.10_2 = up-to-date with port
php4-zlib-4.3.10_2 = up-to-date with port
phpMyAdmin-2.6.1 = up-to-date with port
Any pointers would be most appreciated!
Update: Sorted. It seems that I did have 2 entries for session.so. One was in /usr/local/etc/php.ini and the other was in /usr/local/etc/php/extension.ini
I commented one out, and it started working
Leaving this entry in-tact, just in case anyone else has the same problem
Can anyone recommend a good script they know of that is used to get XML into MySQL, via PHP? I'm creating my own but would like to see some examples if you know of any, thanks!
Ok, this is my first experience with xml documents really. I am calling a function that returns a string, which is my xml document. All I want to do is display the info in a datagrid. What is the best way to get this file into a dataset?
Do any of you bright minds know WHY some programmers decide to use Decimal Unicode notation (e.g., Firefox), whereas others decide to use Hex Unicode notation (e.g. the Gnome/libxml2/xmllint folks)?
My wish is that:
1.) They had all gotten together and decided on just one, 2.) They had all chosen Hex, padded on the left with zeroes so that all characters are represented by a full four digits (e.g.  rather than  for Â), the latter of which is NOT conformant to the Unicode specification, which requires four to six digits, not bloody darn one, two or three).
I know they are functionally equivalent, and I know it's a simple mathematical calculation to go from one to the other, and that Perl and PHP both probably have built-in functions that I could use to convert from one to the other, but GRRRR. I long for consistency, and god forbid, standards-compliance.
Also, why if Firefox smart enough to take UTF-8 input in an HTML form and convert it automatically to Decimal Unicode (which mySQL 4.0 can actually understand), but Safari is not smart enough (and of course, neither is I.E., duh).
--
Don't get me wrong, I don't hate Safari. Safari is FAR better than Firefox at rendering certain difficult Unicode glyphs, like Devanagari (Sanskrit) that has internal HTML markup inside conjunct consonants (Opera 6.03 comes close on this). However, when it comes to Hebrew, Greek, and Romanian (the others I've had to deal with recently), Firefox is just hands-down better.
Maybe it's just a stupid question, but a friend told me the Firefox won't support XML and AsXP (whatever that is) he needs for Online-Games like Horizons and World of Warcraft. Therefore he prefers IE 6.1.
Well, I suppose that the Firefox does support XML. But what is AsXP?
This is awesome! Do any of you know about/understand the new XML datatype in SQL Server? I'm at VSLIVE! in San Francisco at a session and I'm super excited about it. I didn't understand it before but this presenter is great and I now understand it. I'm going to post more once I have time but yeah..anyone else excited about this?
Hello, everyone. I have a question regarding SOAP serialization. As far as I know, SOAP specification allows arbitrary XML constructs to be appear in the body of SOAP message in a way similar to this:
My program manages RDF/OWL (RDF and OWL are subsets of XML with defined schema) descriptions. It parses RDF/OWL files, creates some objects, transmits them using SOAP, and then creates RDF/OWL files again from the objects recieved on the endpoint, so newly created files could be used by any application that conforms RDF/OWL specification.
The problem is that I want to define custom SOAP serialization using SoapFormatter. I need to set up serialization in a way it allows me to create arbitrary XML in messages. Working with basic attributes controlling SOAP serialization didn't help at all -- SoapFormatter ignores them.
Using XmlSerializer is not the right way, I think. Moreover, creating complex SOAP messages with collections could be nontrivial task (we have to manage all the 'refs' in SOAP message and so on), so it won't help.
So I need ANY advice on how to create arbitrary XML elements in SOAP messages. Thanks in advance.
Does anybody know of a good, simple XML library? I'm looking for something that can parse an XML tree and return some kind of data structure that reflects the contents.
Such functionality may be built-in, but I can't find it if so. Any help would be appreciated :)
Update: I need to do it at runtime, as the tree I'm parsing is the return value from a network operation :/ It also needs to run under Mono, so anything that uses (for instance) XPath is out.
Hello! I had release my Nex Web Browser version A1 at http://nex.sourceforge.net/ . Now I preparing the A2 version for releasing, and this will be very interest to read your opinions about this program, its Internal Protocol (NIP, provides LDP - Local Dynamic Page) technology, XML configuration format, LanguageSet implementation, sidebar, etc..
Ive been grinding my teeth on this one for the past hour. Even taking cuts from MS code and others i get the same results.
using System;
namespace TocGen { /// /// Summary description for Stringys. /// public class Stringys { public enum OOOXMLType { content, meta, settings, styles, }
#region Helpers /// /// Writes a FULL attribute to a tag on an XML Text Writer /// /// Supplied Writer /// Attribute Prefix /// Attribute Name /// Attribute Namespace /// Attribute Value public static void WriteFullAttribute(System.Xml.XmlTextWriter oXw, string pre, string n, string ns, string val) {
oXw.WriteStartAttribute(pre,n,ns); if (val!=null) oXw.WriteString(val); oXw.WriteEndAttribute(); } #endregion
I allways receive the following error: An unhandled exception of type 'System.ArgumentException' occurred in system.xml.dll Additional information: An undefined prefix is in use.'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'TocGen': Loaded 'C:\Documents and Settings\Glenn\My Documents\Visual Studio Projects\WhelenOOO\TocGen\bin\Debug\TocGen.exe', Symbols loaded. 'TocGen.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded. 'TocGen.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded. 'TocGen.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded. 'TocGen.exe': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded. An unhandled exception of type 'System.ArgumentException' occurred in system.xml.dll
Additional information: An undefined prefix is in use.
Any idea at all why? Ive searched MSDN and several other sites... No dice. Any help would be appreciated.
Dan Farber: Startup Brixlogic claims that its software overcomes much of the complexity and unreliability in developing Web services derived from custom or industry standard XML schemas.
i finally installed php5 as a cgi on my server because the server company has not upgraded to php5 yet. PHP5 runs only in 1 specific directory.(.htaccess file) Php appears to work fine as php5 but now i can't get it to read the mysql db.
the mysql library is compiled and i don't get an error when the connection string is called. the results from the query just doesn't appear. I'm definite it's not the php code because I haven't altered the code.
Anyone have any idea as to why? -Thank you all in advance!
here is the php code: maybe something changed w/ php5? $sql="SELECT categoryid, category FROM t_category ORDER BY category ASC"; $result=$this->f_selectquery($sql); foreach ($result as $key => $value) { echo " \n"; }
here is the configure command. './configure' '--prefix=/home/acctname/php' '--enable-force-cgi-redirect' '--with-xml' '--with-libxml-dir=/home/acctname/php/lib' '--enable-soap' '--with-xsl=/home/acctname/php/lib' '--with-mysql=/home/acctname/php/lib' '--with-curl=/home/acctname/php/lib' '--with-mhash-dir=/home/acctname/php/lib' '--with-mcrypt-dir=/home/acctname/php/lib' '--with-zlib-dir=/home/acctname/php/lib' '--with-jpeg-dir=/usr/' '--with-png-dir=/usr/' '--with-gd' '--enable-gd-native-ttf' '--enable-ftp' '--enable-sockets' '--enable-wddx' '--with-iconv' '--enable-soap'
here are the mysql properties under php MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 4.1.8 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/run/mysqld/mysqld.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib -lmysqlclient
Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off
I'm trying to use the DOM functions to play with some XML, but it seems as though my server PHP version doesn't include them.
I do have access to the webhost manager type deal, but didn't see anything pertaining to PHP in it really. I've also looked through php.net, google, and the documentation, but saw nothing related to remote installation or additions. So either it's like I said, the server version being outdated, or I'm doing something else wrong.
Would I be able to configure the remote server to include new PHP functionality, or is there some other way I don't know of to use the functions?
Since Mozilla Suite is no longer being developed, and Firefox is where everything is going, I decided it was time for me to make the jump. In the process I picked up a number of extensions and thought I'd document them in one place. AniDisable - control animated gifs Checky - links to validation services for XHTML, XML, CSS, etc. ChromEdit - profile editor ColorZilla - allows you to pick up a color from any element in the browser Disable Targets For Downloads - prevents empty windows/tabs when you click a binary link EditCSS - make realtime tweaks to a pages CSS FoxyTunes - control your media player (iTunes, WinAmp, etc) from the browser chrome Html Validator (based on Tidy) - validate HTML right in the browser, locally I must not fear! - OK, so this just adds the line from Dune to the Tools menu. I like it. ;-) ieview - open the current page in ie, useful for development testing Image Zoom - pretty much what it sounds like JavaScript Debugger - what it says Linkification - makes plaintext URLs links Linky - adds options for handling links Longdesc - let's you view the longdesc attribute on images miniT (drag+indicator) - drag tabs to reorder Preferential - advanced preferences editor Tabbrowser Preferences - provides a UI for editing hidden tab preferences TinyUrl Creator - easily create a TinyURL from the current page User Agent Switcher - lets you mimic other user agents View Cookies - adds a tab to Page Info showing the cookies set by the page Web Developer - adds a toolbar with web development tools
Anyone want to suggest something I should check out that I missed?
I also find this most useful - there are UIs in Firefox that aren't accessible. The chrome is there from the Suite, but the 'simplified' UI of FF has removed the links to the sub-elements: http://kb.mozillazine.org/Dev_:_FireFox_Chrome_URLs
For example: chrome://pippki/content/pref-ssl.xul - which also brings you here: chrome://pippki/content/pref-ciphers.xul - I like to disable weak ciphers.
I have heard that Python is a great programming language which is so much superior to everything around etc.
The following code in python is touted as the world's smallest p2p client & server.
# tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html)
import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac # (C) 2004, E.W. Felten
ar,pw,res = (sys.argv,lambda u:hmac.new(sys.argv[1],u).hexdigest(),re.search)
pxy,xs = (xmlrpclib.ServerProxy,SimpleXMLRPCServer.SimpleXMLRPCServer)
def [...]
Ok so Im trying to use blogger.com as a means to provide my client with an easily updatable NEWS section that will auto-post to the website I am designing for him.
I read a little and found that I can link to this: http://vmnews.blogspot.com/atom.xml for use in my client's site. I would link that source into the news section or whatever,
As you can see the top link looks fine, and is formatted as I want it. The bottom link looks totally different, and I can't find out how to edit the looks of it. Also, linking the bottom link to my site displays that big ugly yellow box at the top of the news sections. This is really ugly, and unexceptable.
How do I do this? Im sure there are people out there that use blogger for these type of things.