On Mar 22, 2006, at 4:33 AM, chris smith wrote:
Sorry for the confusion :)
Not at all. :)
I am stoked to be finally learning about OOP/classes/objects in PHP...
the tutes you sent are very helpful.
Many thanks for you help, I really appreciate it. ;)
Nice site btw, great info, cool desig
Hi Chris! Thanks for all the great answers, I really appreciate all of
your help. I am browsing the link you gave me now.
I only have one question:
On Mar 22, 2006, at 4:09 AM, chris smith wrote:
You're calling a method (which is a function inside a class). You
can't call a regular function wi
Hi,
I am just learning about classes.
My server is running PHP 4.3.11
Example code:
class testing {
var $what;
}
$linkGenClass = new testing();
$linkGenClass->what = 'hi';
echo $linkGenClass->what;
Why does the constructor require the "()"?
I have seen many examples via google that
On Mar 21, 2006, at 3:48 PM, Michael Hulse wrote:
... any good links for learning more about classes?
This seems like a good tutorial to start with:
<http://www.phpfreaks.com/tutorials/48/0.php>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
On Mar 21, 2006, at 2:35 PM, Michael Hulse wrote:
Any suggestions? I am a self-taught php dude, so please don't laugh if
this is a silly question.
You know, the more I think about, the more I think I need to learn
about PHP classes... Seems like I would just be able to define the
array
Hi,
I just wanted to know if it is wrong, or non-standard, for me to set-up
functions that just return an array... example:
function vert_links_array():
function vert_links_array() {
return array(
'1' =>
array(S_MANCOM,'start.php?page=products&
sub=mancom',S_MANCOM_TI,'m
To be more specific:
Based on error message you posted:
#Start from server root:
include($_SERVER['DOCUMENT_ROOT'].'/inc/siteconfig.php');
Hth,
gl, M
On Feb 25, 2006, at 7:31 PM, Michael Hulse wrote:
Try changing all includes that look like this:
include('/folder
On Feb 25, 2006, at 2:22 PM, Schalk wrote:
*Warning*: main(): open_basedir restriction in effect.
File(../inc/siteconfig.php) is not within the allowed path(s):
(/home/httpd/vhosts/sealbeachprofessionals.com/httpdocs:/tmp) in
/home/httpd/vhosts/sealbeachprofessionals.com/httpdocs/home.php on
li
On Feb 20, 2006, at 2:21 PM, Benjamin Adams wrote:
I want to parse this so I can only call frank or freds data and move
id, section, years, etc to varaibles.
Can someone give me some help
Here is a function I wrote, I bet it will help you (sorry, not the most
readable because I pulled from bi
This did the trick:
On Feb 20, 2006, at 12:37 PM, John Nichel wrote:
The server you're running the script on may have session.auto_start
enabled
Ah, got it. :)
Thanks all!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Feb 20, 2006, at 12:11 PM, David Dorward wrote:
http://www.w3.org/QA/2005/04/php-session details how to fix the problem
(without breaking the session tracking for users without cookies
supported
and enabled).
Ah, great link. Thanks! :)
I don't know why sessions are being stored in the
On Feb 20, 2006, at 12:10 PM, John Nichel wrote:
It's all in the manual
Hi, thanks for pointing that out. I guess I should have RTFM first,
then ask q's second... noob mistake, wont happen again. :D
I guess I just do not understand why a session is even being created, I
never started one.
Hi,
I just finished a website for client - I just uploaded the site to
their server space - when I went to go validate my pages using the W3C
XHTML validator I get several errors due to an un-encoded ampersand in
the link URL... For some reason, a session ID is getting added to the
end of all
Well, this is Javascript, but interesting:
http://www.albionresearch.com/misc/obfuscator.php
Link description:
"Sadly there are a number of 'spambots' which roam the web 'harvesting'
email addresses to send spam to. Often you have no choice but to
include an email address in a web page. Fortu
I have used output buffering[1] in the past to do what you are
describing.
# HTML to be written:
ob_start(); // Begin output buffering:
require($_SERVER['DOCUMENT_ROOT'].$path.'/
'.$name_of_template.$name_of_template_ext);
$message = ob_get_contents(); // Put contents of the above require
On Jan 22, 2006, at 7:04 PM, Nirmalya Lahiri wrote:
Can any one tell me, what is the use of ampersand '&' in php?
This might help:
http://us2.php.net/manual/en/language.references.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
On Jan 20, 2006, at 2:24 AM, Murray @ PlanetThoughtful wrote:
Can anyone help me figure out how to accommodate for this?
Not sure if this will help, but:
# Set time zone:
putenv('TZ=US/Pacific'); // I am on west-coast, my servers are on east,
if not for this code the timestamp used in my
On Jan 17, 2006, at 7:09 AM, tedd wrote:
Worked great for me -- no problems whatsoever!
Sweet, thanks for checking... glad someone got it working. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wow, thanks for all the great advice everyone! Very good info... all of
your suggestions have been very helpful. I appreciate it.
• I would have never thought to just require() the page... good idea.
:)
• Still checking out server options... waiting for info from client on
that tip.
• Mod rew
On Jan 16, 2006, at 6:10 PM, Nicholas Couloute wrote:
I tried the script but it keeps saying it is not an array!
Hmm, I just set-it-up on my server:
http://www.ambiguism.com/php/readDirSort.php
Seems to work for me. Code:
$file_path = $_SERVER['DOCUMENT_ROOT'].'/php/test/';
$the_dir = opendi
On Jan 16, 2006, at 5:21 PM, Nicholas Couloute wrote:
I need to know how to arrange files alphabetically in my directory
when I display it on the browser! I have it display the filename
foreach that exist is there a way to arrange by alphabet?
I would read the contents of the directory into an
On Jan 16, 2006, at 3:27 PM, M. Sokolewicz wrote:
I'm confused...
why does everyone use a refresh??? According to me, that's not what a
refresh is supposed to be used for (!). Why don't use a
header('Location: http://www.domain.com/start.php?page=home'); for it?
It's more in-line with RFC's
G
On Jan 16, 2006, at 2:24 PM, Ezra Nugroho wrote:
You probably want to check mod_rewrite.
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Ah, looks useful! Thanks for link, reading about it now. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
On Jan 16, 2006, at 2:14 PM, <[EMAIL PROTECTED]> wrote:]
I think that'll do it for ya. If you're going through an ISP, they
still may have a way that you can set your defaults, possibly through
.htaccess or some other Apache type prefs setting mechanism.
Good luck!
Great! Thanks for the q
Hello,
What would be the best way to get a page variable like this:
www.domain.com?page=home
to show up when a user types in:
www.domain.com
My current fix is to have this:
header("Refresh: 0; URL=http://www.domain.com/start.php?page=home";);
... on a index.php page on the root.
Is there a
On Jan 5, 2006, at 3:49 AM, Jochem Maas wrote:
good a place as any:
http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=143
Hi! Thanks for link, visiting now. :)
I might suggest that you first google for 'how to write a search
engine'; then do a lot of reading;
Have done... a
Hello,
Just curious if anyone could give me some google
keywords/links/suggestions/tips/comments/feedback on a good place to
start for writing a search engine script.
I think I might have a good idea for a specific type of search engine.
Basically it would crawl web and index links to a spec
On Jan 4, 2006, at 4:56 PM, zedleon wrote:
I just corrected the code...I had it correct but posted it in
correctly.
$fp = fopen("home/path/temp" "w+");
puts($fp, $msg);
fclose($fp);
Still getting the same warning...
I think you forgot a comma this time...
$fp = fopen("home/path/temp", "w
On Jan 4, 2006, at 4:28 PM, zedleon wrote:
$fp = fopen("home/path/temp "w+");
You only got 3 quotes in the above code...
try this:
$fp = fopen("home/path/temp", "w+");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jan 2, 2006, at 1:30 PM, Martin Zvarík wrote:
is it possible to upload a file and see the process of uploading
(before the file is uploaded, there is something showing from 0% to
100%) using PHP and Javascript ?
My main dig with using PHP[0] is that (AFAIK) there is no good way to
give the
On Jan 2, 2006, at 12:32 AM, Michael Hulse wrote:
You could also use cURL:
From the cURL manual (in a terminal window type "man curl", without the
quotes):
...
...
-o/--output
Write output to instead of stdout. If you are
u
Hello,
On Jan 2, 2006, at 12:27 AM, suma parakala wrote:
Hi
Can anyone tell me how can we copy one file from one server to another
server using PHP
Thanks
Suma
I use this function to grab mp3's from one server and place them on
another (transfers 10mb files rather nicely):
function grab_m
On Dec 19, 2005, at 12:10 PM, ganu wrote:
... any idea how to do? I am not getting any idea/starting how to do
it ...
Use Flash 8.
It will convert to .FLV format. Easy as cake.
Choose to make the file external. Then you can use Progressive
download/play.
With Flash 8 it is really easy to c
On Dec 18, 2005, at 6:19 PM, Curt Zirzow wrote:
On Mon, Dec 19, 2005 at 02:58:00AM +0100, Vikram Kumar wrote:
We are looking for PHP programmers from hyderabd.
You can stop sending these messages to the list.
I am with Curt on this one. I get enough spam as it is already.
WhTF is Hyderabd an
On Dec 15, 2005, at 10:15 PM, Michael Hulse wrote:
On Dec 15, 2005, at 10:09 PM, Michael Hulse wrote:
So, if you buy the gallery script, which I did (I think I spent like
20$), the "Powered by Company Name" disappears.
I forgot to add:
When you buy the script, the company will
On Dec 16, 2005, at 12:05 PM, Michael Hulse wrote:
http://us2.php.net/reserved.variables
Check this post in the comment section of above url:
Zoic
20-Sep-2005 11:39
"I just wrote up this function to secure forms on my site so that you
can't submit a form from anywhere but your sit
On Dec 16, 2005, at 11:50 AM, Shaun wrote:
I have a script on my site for processing values sent from a contact
form
and emailing them to the webmaster. The script has been abused by
spammers
and my hosting company has recommended that I change the script to only
accept information posted from
On Dec 15, 2005, at 10:09 PM, Michael Hulse wrote:
So, if you buy the gallery script, which I did (I think I spent like
20$), the "Powered by Company Name" disappears.
I forgot to add:
When you buy the script, the company will send you a new replacement
config.dat file that
Hey all,
A couple years ago, before I could write my own PHP, I used a
semi-commercial gallery script... Long story short, this gallery script
used a config.dat file with these contents:
11001100
01101100
0100
10001100
1100
...
... (Picture 1,667 lines of this)
...
11101100
0100
On Dec 14, 2005, at 9:31 AM, <[EMAIL PROTECTED]> wrote:
I'm lazy so I don't tend to pre-define variable types although I
should probably get into the practice when there's a security need to
do so.
So what was the original question again? hah
Hehehe, looks like you answered it. :D
Thanks
Thanks Curt and Robert! You guys really helped clear things up for me.
You guys rock!
I really appreciate all of your help. :)
Cheers,
Micky
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry if this question sounds noobish:
$foo = array(); // Declare first, good practice.
$foo = array('one', 'two', 'three');
Using above as example, is it good to always declare the array first?
I usually/always declare my arrays first, but sometimes I get a bit
confused... for example:
func
On Dec 12, 2005, at 9:26 PM, [EMAIL PROTECTED] wrote:
The only problem I see with this is now you are asking php to issue a
count on the $_REQUEST array, this could take some time depending on
your
form size.
Ah, very good point... did not think of that. :)
--
PHP General Mailing List (http
On Dec 12, 2005, at 8:21 PM, Ray wrote:
Hello,
Thanks Matt, I appreciate your help. your solution is a lot easier
than mine.
It's also nice to understand what was happening. I was introduced to
PHP
after that type of globals were considered 'evil' so I hadn't seen code
written that way.
Ray
--
For those interested, here is the answer...
Text pasted into a textarea [e.g., from Word] can have characters not
defined in IE's textarea ISO-8859-1 charset.
Appearently, IE6 has a bug such that it does not send the POST value
for the textarea name when some of these are present. [e.g., "…"
On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
Its been my experience that meta tags work better.
I guess what you are saying is that this:
content="0;url=https://www.theNewUrl/forward.html";>
Is better than this:
header("Refresh: 0; URL=https://www.theNewUrl/forward.html";);
--
PHP Gene
On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
I have found that using the header function doesn't actually redirect
the
page, it pulls the content into the page that the function is called
from
(which works good for somethings, but can get confusing with post
variables
and such). Its been m
On Dec 9, 2005, at 11:07 PM, matt VanDeWalle wrote:
I am wanting to forward a user on a signup or similar page (based on a
few of their answers) and so far i have it split into basically a
two-step process where i have on the first part, an option list with 4
choices, they hit continue or some
On Dec 9, 2005, at 8:30 PM, Johny John wrote:
Hi,
How to pass an array (from php ) to java script and display
it
using javascript?...
Jasus.
Well,
FWIK, Here is how you pass a variable:
document.write(picUrl);
So, if y
On Dec 9, 2005, at 1:45 PM, Danny wrote:
Simply Fantastic!. Thanks a lot!
Sure thing, I am glad that I was able to help/give you some ideas. :)
So for me the best solution I think, would be to read the MySQL Table,
and produce the XML with a given template from a PHP Script. I will
use Sche
On Dec 9, 2005, at 3:45 AM, Danny wrote:
How to proceed
I recently set-up my first Podcast... Every week I have a script that
grabs three MP3 files from a remote server and puts them on my own
server... Then I have another script that generates the Podcast XML.
I am using CRON jobs to
On Dec 8, 2005, at 2:46 PM, Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING
parameters. Is there a convienient global array for these? If not,
what is the definitive method for accessing them?
Not sure if this script will help, but you can point you
On Dec 6, 2005, at 9:25 AM, Mark Steudel wrote:
I primarily code in Dreamweaver 8. Two of my favorite features that
were
added from MX are as follows:
1. Code folding, basically you can collapse blocks of code. If you
have to
work with other peoples code, matching braces and code folding is an
On Dec 6, 2005, at 6:39 PM, Chris Shiflett wrote:
Adam Trachtenberg's Upgrading to PHP 5 (O'Reilly) is a good book. It
covers all of the new features in PHP 5 (so it's not just OOP, sorry),
but the chapter on objects is excellent.
Hi Chris, thanks for the quick response. :) That book sounds g
On Dec 6, 2005, at 6:38 PM, Curt Zirzow wrote:
On Tue, Dec 06, 2005 at 06:36:33PM +0100, M. Sokolewicz wrote:
Jason Petersen wrote:
On 12/6/05, Jeff McKeon <[EMAIL PROTECTED]> wrote:
Hey all,
Forever now I've been using Frontpage for all my web work including
php.
I'm sure there's better s
Hello,
I want to learn about classes and objects in PHP.
(IMHO) I would say that my understanding of functions is very good.
Any books that you could suggest that specifically address just
classes/objects?
How-a-bout sites/links/tutorials on the web?
I am hoping that by learning how to use
Hi Comex, thanks for the quick response, I really appreciate it. :)
On Dec 3, 2005, at 3:29 PM, comex wrote:
empty is a language construct, not a function, so that is not
necessary. You can just do !empty(...).
Oh, do you mean that I should do this instead:
if((isset($_REQUEST['sub'])) &&
Hello,
This is my first time posting to the list... I hope this question is
not too silly, I am definitely not a guru at PHP.
Anyway, in one of my latest projects, I find myself using this bit of
code quite a bit:
if((isset($_REQUEST['sub'])) && (!empty($_REQUEST['sub']))) {
... cod
58 matches
Mail list logo