Search found 75 matches
- Thu Dec 24, 2009 9:03 pm
- Forum: PHP - Code
- Topic: http://pear.php.net/package/HTTP_Webdav
- Replies: 1
- Views: 178
- Sun Dec 20, 2009 8:56 pm
- Forum: PHP - Code
- Topic: http://pear.php.net/package/HTTP_Webdav
- Replies: 1
- Views: 178
http://pear.php.net/package/HTTP_Webdav
I am pretty good at php though I don't know much about system or installation. I would like to make use of php webdav client functions to access remote file server. One way to do it is http://pear.php.net/package/HTTP_Webdav. Questions are: 1. How do I know PEAR is installed and activated on my wed ...
- Sun Dec 13, 2009 9:12 pm
- Forum: PHP - Code
- Topic: Some $ function
- Replies: 4
- Views: 140
Some $ function
I forgot where I've seen this piece of code. Something I am not aware of:
or something like that. So how does that work?
I've tried to look it up but not find any reference. Any hints would be appreciated.
Code: Select all
$foo = 100;
$bar = "something and '${foo}' more."; or something like that. So how does that work?
I've tried to look it up but not find any reference. Any hints would be appreciated.
- Tue Sep 08, 2009 10:37 am
- Forum: PHP - Code
- Topic: All defined constants
- Replies: 1
- Views: 64
All defined constants
Is there any easy way to echo (the name and value of ) all defined constants? Thanks.
- Fri Oct 03, 2008 3:22 pm
- Forum: PHP - Code
- Topic: Adhoc regex
- Replies: 0
- Views: 78
Adhoc regex
I've been trying to figured out a pattern to match this: - A non-space string that - starts with 'http' - ends with 'jpg' - and NOT contain 'mysite' I came up with something 'almost' like that, but could not figure out how to NOT the 'mysite' part. Any hint would be appreciated! $pattern = '/http[^\...
- Tue Aug 05, 2008 9:35 am
- Forum: Installation and Configuration
- Topic: Mapping yoursite.com to yourname.mysite.com
- Replies: 0
- Views: 614
Mapping yoursite.com to yourname.mysite.com
I have searched but don't know what I am looking for. :) My site is monpage.com. I would like to use tumblr as a blog service for my site. The URL would be monpage.tumblr.com. At tumblr, there offers a domain mapping service. So: Yesterday, I set up a http://blog.monpage.com to point to a newly setu...
- Sat Aug 02, 2008 10:06 pm
- Forum: PHP - Code
- Topic: Application logging
- Replies: 1
- Views: 100
Application logging
I would like to direct all application errors to a log file, /home/mysite.com/logs/myapp_log and prevent them display to the standard output (screen) so I do this: error_reporting(E_ALL | E_STRICT); ini_set("display_errors", "Off"); ini_set("log_errors", "On"...
- Fri Aug 01, 2008 7:59 am
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 637
Ways to read a file from an external host
Problem: to read a file http://somesite.com/example.txt I know a few ways to this but none would work for all circumstances. 1. $file = 'http://somesite.com/example.txt'; $source = file_get_contents($file); It won't work on those hosts that allow_url_fopen not turn 'On'. 2. $file = 'http://som...
- Thu Apr 10, 2008 8:44 am
- Forum: PHP - Code
- Topic: Draw a GD graph then store in a file
- Replies: 2
- Views: 440
- Wed Apr 09, 2008 4:41 pm
- Forum: PHP - Code
- Topic: Draw a GD graph then store in a file
- Replies: 2
- Views: 440
Draw a GD graph then store in a file
I could not find a tutorial anywhere that showing how to draw a graph by GD lib functions then write to a file. Any hints would be appreciated.
- Fri Apr 04, 2008 9:51 pm
- Forum: PHP - Code
- Topic: A dummy class
- Replies: 5
- Views: 141
Re: A dummy class
I understand now. Thanks! Thing is this article gave me misinformation: See how you can pass arguments right inside of your "new dummy3()" call? That's what's special about this. Though it might seem rather pointless, this is great to use for functions you use repetitively and want to make...
- Fri Apr 04, 2008 8:25 pm
- Forum: PHP - Code
- Topic: A dummy class
- Replies: 5
- Views: 141
Re: A dummy class
Thanks!
- Fri Apr 04, 2008 7:50 pm
- Forum: PHP - Code
- Topic: A dummy class
- Replies: 5
- Views: 141
A dummy class
What is wrong with this code? It does not output anything. Frustrated.
Code: Select all
<?php
class dummy {
function dummy($one, $two) {
$val = $one + $two;
return $val;
}
}
$i = 1;
$j = 2;
$x = new dummy($i, $j);
echo 'x = ' .$x;
?>- Sat Nov 24, 2007 10:37 am
- Forum: Regex
- Topic: A difficult preg_replace
- Replies: 3
- Views: 1110
A difficult preg_replace
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] $daily_st...
- Sat Oct 27, 2007 8:58 pm
- Forum: Coding Critique
- Topic: shell scripting
- Replies: 4
- Views: 3315