http://www.coachholidays.co.uk/ramlm/hfoqauyyvomdvio.kaxkucbebccxpzq
@Al,
> have you looked at the Pear html_QuickForm2 set?
Actually nope, whats it about? just did a google search and found it on the php
site but no example code around so dont really have a clue.
@Ash,
Pastebin! Of course, why didnt i think of that... will do!
Actually, just did so that i wou
Hey Ash,Bastien!
Rather than a regex, you're probably better off using something like
DomDocument, where you can iterate over all of the input elements in the
document, and check the attributes of each one to check if they match your
criteria.
@Ash, You're kinda reading my mind... i did do t
Hey guys,
As many of you might know, i totally suck at regex..so would really appreciate
some help here.
Basically i have a html page with a lot of textboxes,radios,checkboxes etc
i need your help in the form of a regex so that when i give it the name and
value it gives me the entire code of t
Hey guys,
As many of you might know, i totally suck at regex..so would really appreciate
some help here.
Basically i have a html page with a lot of textboxes,radios,checkboxes etc
i need your help in the form of a regex so that when i give it the name and
value it gives me the entire code of t
Thanks for the links and advise guys!
Of all I found this most interesting as it would run native:
>check out http://www.php-compiler.net/doku.php
unfortunately I think this project is dead or at best stagnant because the
server is slower than a 99 year old on weed and forums link dead. Docume
Thanks for the reply Michael, Robert and Jochem,
makes sense, a native windows app is going to look more in place than any of
the demos and graphics i have seen of GTK.
Was also looking at GTK-Builder, unfortunately you really have to hunt for each
scrap of new info - which is why I'm guessing
Hey Guys,
Coming from a C and Java background I just loved PHP and have been programming
with it for years thanks in a large part to the kind people on this list...
present and past (Immediately the name John Holmes comes to mind.. i hope the
dude is well)
but now I have have to leave PHP or sp
> I think what you are looking for is $input2->textContent in PHP.
Hey Andrew (and everyone else was was kind enough to write back) !
Found the solution, this is what i am using (and it works!), and i hope it
helps anyone else who finds themselves in the spot i found myself
$inputs2 = $dom->
>// I have even tried this instead of the above:
>
>foreach ($inputs2 as $input2) {
>if(!$input2->getAttribute("defaultValue")=="") {
>$input2->setAttribute("defaultValue","it works!");
>}
>}
>
>but no joy.
>
>I'm betting its pretty simple but i dont have a "DOM c
Hey!
i'm just starting with PHP's DOM-XML and need a little help please.
Basically, first i am trying to see if a input like a textbox has a 'VALUE='
associated with it, if yes, i leave it be, if no, i add a default value.
This *is working* as can be seen by the attached code below.
But a bit
@Bastien, Stuart:
Thanks for your input guys, was very useful and appreciate it.
cheers!
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
etween the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
- Original Message
From: Nitsan Bin-Nun
To: Ryan S
Cc: php php
Sent: Monday, January 26, 2009 6:39:19 PM
Subject: Re: [PHP] Kinda 0.T... php site and maintenance
Hey,
Got a question for you guys who make a lot of personal sites.
I got a US client who wants me to make a personal site, 4-7 "sections" (eg:
about me, photos, whats new etc)
and have to put a yearly maintenance $$ amount...
I thought i'll make most of the stuff using php rather than plain htm
> Any advise is also most welcome.
'Advise' is a verb.
'Advice' is a noun.
No charge.
LOL! Thanks!
Got caught by the grammar and typo police but no ticket!
Must be my lucky day!
Cheers!
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Hello everyone,
Recently I worked on a rather decent sized project and it just went live
yesterday.
We cannot really afford a security specialist so would appreciate it if you
could hit our site with whatever you want to (just dont take us offline with
something like a DDOS please) and tell us
Thanks for all your input guys!
> Scunthorpe
LOL!
Never heard of the place but ...f**k i think i am a geek for finding it funny!
Reminds me of quite few people tho...
Cheers!
R
2008/10/26 Colin Guthrie <[EMAIL PROTECTED]>:
> Ashley Sheridan wrote:
>>
>> What you really need to watch out for is
Hey!
I'm just trying to replace some of the more bad words with their slightly
censored counterparts like so
$bad_words = array(/*Well you know the words so am not going to write them
here*/);
$bad_words_replacements = array("f*ck", "f*cking");
$comment = str_replace("$bad_words",$bad_words_repl
Are you sure LIKE isn't working? I would think LIKE "a%" would work. For
0-9, I would think you can use <= 9 or you can use BETWEEN 0 and 9.
Silly me, the reason it was not working was I am so used to %something% and
used that instead of
something%
Anyway, it was a not a useless post for me
Hey all,
Was wondering how this is done, have a bunch of links like so:
0-9 : a : b : c -> till Z
these will be linked to the program (so far have done this) but when the user
clicks any of those links I want to query the DB for just the first alphabet
from the field "title", using LIKE is n
> Am hoping someone out there can recommend a better script or maybe share some
> of your own code?
>
> Any help would be appreciated.
Do it right... read up on MySQL's fulltext matching.
Cheers,
Rob.
Did some searching based on your tip, got what i was looking for, just didnt
know wher
Hey all,
I have two columns in my DB
title varchar(254)
and
jtext text
which I would like to search, as the user might enter two or more words I am
opting not to use LIKE %search_term% so started searching google, I came across
this very promising class:
http://code.activestate.com/recipes/12
Hey!
Been googleing for a way to convert video to flv just like youtube and came
accross the flv SDK kit, unfortunately it seems to only support C++, Delphi and
C#
Have any of you guys come accross a php script that does this? any links,
pointers and code would be appreciated.
TIA,
R
-
!
- Smile, everyone loves a moron. :-)
- Original Message
From: Maciek Sokolewicz <[EMAIL PROTECTED]>
To: Ryan S <[EMAIL PROTECTED]>
Cc: php php
Sent: Wednesday, October 15, 2008 12:25:29 PM
Subject: Re: Brain dead... write image to file
Ryan S wrote:
> Hey all,
>
Hey all,
am feeling a bit brain dead, pulled an all nighter and would appreciate some
help as have already wasted over 2hrs on this :(
just not thinking straight.
I got this script off the net, cant even remember where :( its basically to
resize an uploaded image (i have a script that does exact
Hey,
this the first time I am actually working with "tags" but it seems quite
popular and am adding it on a clients requests.
By tags I mean something like wordpress' implementation of it, for example when
an author writes an article on babies the tags might be
baby,babies, new borns, cribs, na
Thanks guys, I appreciate the help.
Cheers!
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey Todd, Eric,
Thanks for replying.
> I don't believe you need both the / and the # for delimiters in your
> RegEx. Try using just # (since / is actually going to be in the text
> you're searching for) like this:
>
> $data =
> file_get_contents("http://www.youtube.com/watch?v=oQ2dKXGAjNg";);
>
Hello!
Here's a regex that I got off the web that I am trying to modify for my needs,
I suck at regex so desperately need some help.
Basically, am trying to get a remote webpage and get the value between the
tags, note that it should get the values regardless if is upper
or lower case (case
I hate to admit to this, but some 15 years ago I was consulting for a
company doing oil exploration in Nigeria and I received a very
elaborate and believable Nigerian scam. It was complete with signed
and official documents from both the Nigerian Government and the Bank
of Nigeria.
I passed t
No apologies necessary, good luck!
Cheers!
R
- Original Message
From: Denis L. Menezes <[EMAIL PROTECTED]>
To: Ryan S <[EMAIL PROTECTED]>; Wolf <[EMAIL PROTECTED]>
Cc: PHP General
Sent: Monday, July 14, 2008 3:31:43 PM
Subject: Re: [PHP] Freelance PHP developm
> Dear friends.
>
> I am looking for freelance web developers in India.
>
> Can contact me?
>
Why just in India? There are a number of us available via the world.
Wolf
I'm guessing because he wants a REAL cheap solution...
what you (probably) charge for 5-7hrs work would probably be t
Thanks Brady, Wolf, Bernhard!
Will write back if i hit a wall but I think your explanations and links should
take me all the way.
Cheers!
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey!
Thanks for replying!
..
.
$perc50=(img50 int)/$total;
You can do it per day, per month, per year, per 28 days, per PMS cycle,
per anything you want provided you have the data to do it.
:) this is the part where i am a bit confused actually, can you give me one or
two examples and i'll
Hey!
The client has a set of 50 images that keep rotating everyday and when a user
clicks one of those images he is taken to that images site, in the background
(database) i maintain a counter _for the day_ and then display the top ten
images everyday in this format: 1-10
before the next days
Ryan,
That feed is indeed XML.
Ooookay! I think i see where my confusion was coming in opening the
"http://www.ballzbollywood.com/feed/"; in FF3 automatically parses it in a
way... as does it in IE7... but opera is giving me the "raw" feed and it makes
sense again.
(Am on win vista home
Okay, then get_file_contents(), parse between the tags that would
contain the stuff you want to monitor, hash, store that, and do what
I said.
So far yours has been the best solution Tedd, thanks!
Cheers!
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
If it's RSS, I think it's going to be XML regardless of the language
they're using to assemble it (Perl, PHP, ASP, etc.). I might be wrong,
but I thought that's part of what made it RSS.
I'm afraid to click on a site with the url "ballz.info" while I'm at
work. :D Any other WP feed examples?
LO
>Got an example? I've never seen a WP site with RSS feeds disabled.
Hey Stut,
Actually, dont have an example.. :o) but i have seen this question of how to
disable wordpress rss frequently come up on many forums ( a quick google
search with "wordpress disable rss" gives up quite a few result
> So, you want something to tell you if something new has been added to
> a remote site, right?
>
> There used to be free services that did that -- I used to monitor
> competitors's web sites using such service. But, I think they
> eventually stopped the free service. Here's one site that charge
Hey Eric, Stut,
>Maybe you should start by trying to utilize the RSS feed.
Went to that option at first too... but have a quick look around, there are
many sites that for some reason dont have this feature turned "on", and for
them... the only option i think is to "read" the page... unless I a
Hey,
Is there a way to check if a new post has been submitted on your favourite
wordpress site?
Heres what i am trying to do:
do a fopen http://ezee.se/articles-blog/ via CRON every x minutes
if a new post has been submitted, i mail someone...
but am not just looking to do this for this one sit
Sorry, had to ask :o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > P.S will be deleting the urls that you created, hope you dont mind, coz
> > just in case someone later keeps using the url you posted via the
> > archives...
>Hang on, I want to post it on Digg first
Hehe, no fear there... all my posts on dig never get me more than a few clicks
a
>Thats why I love this place... theres so many ways to skin a cat
Yeah, but the cat ain't going to like any of them. (Foxworthy)
Hehe good one!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
someone later keeps using the url you posted via the archives...
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
- Original Message
From: Daniel Brown <[EMAIL PROTECTED]>
To:
> I really dont see what anybody could gain by spamming this form but
> anyway it does check to make sure the person submits something that
> starts with "http" via strstr (after bringing it down to lowercase,
> thats why i didnt use stristr, and because it checks just "http",
> https too
> Thanks for replying m8, but if you check the rest of the thread you will see
> this has alraedy been solved and the result is
> http://ezee.se/ezeeurl.php?do=1
>
> Cheers!
> Ryan
How do you protect this thing from being spammed?
I do not know why somebody would spam it, but I have had all k
Thanks for replying m8, but if you check the rest of the thread you will see
this has alraedy been solved and the result is
http://ezee.se/ezeeurl.php?do=1
Cheers!
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey,
> I agree with Daniel. Your most likely solution is to use a Flash player
> (or similar implementation) and populate a portion of your page with the
> object via AJAX (which you are already apparently comfortable with).
Or make your own Flash player with Ming and PHP. Working on that mysel
om: Daniel Brown [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2008 4:13 PM
> To: Ryan S
> Cc: php php
> Subject: Re: [PHP] Kindla 0T, but here goes...
>
> On Fri, Jun 13, 2008 at 4:49 PM, Ryan S <[EMAIL PROTECTED]> wrote:
> >
> > when the user clicks on
Hey!
Heres what i have done so far:
I ask the user for his style of music by displaying for example 3 links in the
like rock, pop,sentimental
when the user clicks on any of those links i do a quick trip to the DB via ajax
and update the div with all the artists that his choice merits... same
Hey again,
First of all please note that i added a [0.T] (= off topic ) to the subject so
if you dont want to continue with something OT, now's the time...
Ok... for anyone thats curious as to why i wanted this.. just completed my
version of tinyURL... except, its even more tiny!! Have christe
As far as I remember, errordocument still send the code, in this case
404 to the client. In the case of IE, this will display IEs built-in
error doc if the server supplied one is < 512 Bytes. Maybe other
implications for spiders also. I might be wrong, but this is from some
old memory.
-S
great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
- Original Message
From: Bernhard Kohl <[EMAIL PROTECTED]>
To: Ryan S <[EMAIL PROTECTED]>
Sent: Thursday, June 5, 2008 9:25:46 PM
Subject: Re: [PHP] Search like php.net's URL thingy
you should familiar
Hey,
one of the things that make the php.net site so cool is how easy it is to find
info for a function or a list of topics.. eg:
http://php.net/arrays
http://php.net/count
I'm sure nearly all of you reading this have done it more times than you would
care to count, i'm trying to get something
Hey,
its easier to start with code and then explain:
$t_array[]='chr(rand(97,122))';
echo $t_array[0];
The above code outputs
chr(rand(97,122))
How can i execute that above code from the array instead of displaying it?
Thanks!
Ryan
--
- The faulty interface lies between the chair and
Hey all!
Disregard my last email as i solved it myself via eval()...
Cheers!
R
Hey,
its easier to start with code and then explain:
$t_array[]='chr(rand(97,122))';
echo $t_array[0];
The above code outputs
chr(rand(97,122))
How can i execute that above code from the array instead of dis
Hey!
Here would be my incarnation of this script
http://www.ezee.se/ The UK police are by far one of
the most open to being greedy and corrupted by their afore mentioned
greed, case and point: the hundreds of extra speed cameras that are put
in place with an idea of making more money rather th
coz i suck at OOP!
Hey!
Am trying to modify a wordpress plugin file,the name of the plugin is POST
TEASER and can be downloaded from here
http://wordpress.org/extend/plugins/post-teaser/, it works as advertised and
this is what it does:
I specify for
example 4 words before the page should be
Hey DB,
Thanks for replying, I did solve it though was running a lot of tests and
checking a lot of stuff with the fill before i finally added the database
stuff... but forgot to include() the connection file :)
Thanks for writing though!
Cheers!
R
--
PHP General Mailing List (ht
Hey,
This is my code:
==
$update_sql="update greetings_final set
heading='$heading',message='$message',signature='$signature',font_size='$font_size',font_color='$font_color',bg_color='$bg_color'
where temp_cno='".$thecno."' and rand
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
Thanks,
I did STW and find that link but am just a bit unsure if while WAMPSERVER2 I
should go in and do it like the above url suggests... was wondering if like
XAMPP there were specific instructions to follow.
Cheers!
R
Hello all!
Had some big problems with XAMPP crashing my windows (Vista) laptop 8 times out
or 10 (actual figures) as I started XAMPP so have shifted over to WAMPSERVER2
So far so good, no crash... but their website seems to be down and need one
small tidbit... if anyone of you are using WAMPSERVE
> $result = mysql_query($sql_1);
You're running the wrong query.
You're building a query in "$update_sql" but running something else.
DUH!!!
Thats what you get for being up all night i guess! Time to hit the sack...
pulled an all nighter and its 7:24am now
>Some of the comments here:
>http:
This is really weird... i have tried the same exact code in phpmyadmin and it
works like a charm, but when i run the script... no errors then i go to
phpmyadmin and nothing has changed :(
this is the code:
$how_many_to_
e
Cheers!
R
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
- Original Message
From: Daniel Brown <[EMAIL PROTECTED]>
To: Ryan S <[EMAIL PROTECTED]>
Cc: php php
Sent: Tu
Hey guys,
Just make a egreeting app and need people to just test the AJAXy upload that i
have on the form, if you have any problems please tell me.. if it goes smooth
please tell me... as usual, any comments and suggestions too would be
appreciated.
This is the form:
http://www.ezee.se/ezee
Hey,
Have just started screwing around with wordpress and I must say... it has a lot
of really really nice bits and pieces... two of my favourites are widgets and
plugins... not a hundred percent certain exactly what the diff is though! :)
Anyway, was thinking it would be a great way to program
> http://www.ezee.se/tests/para_regex2.php.txt
Yep, sorry... Just add the s
preg_match_all('|]*>(.*)|Uis', $myText, $myArray);
Swett! It works!
If you _do get time_, would love to know the actual meaning of
|]*>(.*)|Uis
because although I do appreciate the help and the code, am learni
preg_match_all('|]*>(.*)|Ui', $myText, $myArray);
Hey!
Thanks for replying.
Your preg_match_all works like a charm, but for some reason catches only 8 out
of 9 paragraphs... its really weird. I have upped the test page to
http://www.ezee.se/tests/para_regex2.php.txt so you can have a look
Hey,
$tag_regex=array(
'/\(.*?)\<\/p\> /si' => "$1",
'/\<(\s*)(*.?)class\=(*.?)\>(.*?)\<\/(*.?)\>/si' => "$3"
);
$paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page);
I am not sure what tag is that you mean on , but in this
RE .. it should capture any tags (t
> To say I suck at regex is an understatement so really need any help I can
> get on this, I have a page of text with different html tags in them, but each
> "block" of text has a or a < class="something"> tag... anybody have any
> regex that will catch each of these paragraphs and put then
Hey all!
To say I suck at regex is an understatement so really need any help I can get
on this, I have a page of text with different html tags in them, but each
"block" of text has a or a < class="something"> tag... anybody have any
regex that will catch each of these paragraphs and put then
Hey,
Am not really used to using the JOIN in SQL so am a bit confused as to what
kind of data I need to enter into this table:
image_category_mapping table:
- image_id
- category_id
for all of this to work... mind explaining a bit?
Thanks!
Ryan
_
Hey!
Thanks for replying guys!
> 1. Fully normalised, where you have three tables - one for your
> "articles", one for your categories and a link table.
This is the route that I would suggest, it's the most flexible and
fastest to query.
Anyone happen to have a little PHP code as an
>
>
> Cant afford a new comp or a new OS and as for your last statement:
> http://www.sophos.com.au/pressoffice/news/articles/2006/02/macosxleap.html
> _almost_ no virii for the Mac :)
/*
None that have effected my computers here at work, or at home. No anti-
virus, no firewall's ;)
Oh and I'll
>
> /*
> Top posting from my cell...
>
> 1. Format hard drive
> 2. Install redhat fc8 or Ubuntu 8.04
> 3. Load the new MySQL installation with your backup file
>
> If you really have to stay with windoze, remove and re-install
> apache. Look at the system log files as they SHOULD tell you wh
Hey!
Heres what i have to do, upload pics and each pic can be a part of x number of
categores
for example:
A picture of a rose can be for birthday, as well as anniversary, or miss you,
or love etc
exactly the same as how in wordpress an article can be in multiple categories
like tech, current
/*
Top posting from my cell...
1. Format hard drive
2. Install redhat fc8 or Ubuntu 8.04
3. Load the new MySQL installation with your backup file
If you really have to stay with windoze, remove and re-install apache. Look at
the system log files as they SHOULD tell you what was causing the cr
> After reading a bit I see that if I just copy the "data" directory in the
> mySql directory, I can restore it from there? any idea if I have that wrong?
Hmm I guess, but I'd take the safer road and open a console and run:
mysqldump.exe -u -p --all-databases --add-drop-database --opt
> mysq
> You could try their forums:
> http://www.apachefriends.org/f/?language=english
Thanks!
Just after I posted i started searching on google and found them, have joined
and posted... no reply as yet... just the waiting game now i guess.
Main prob is I cant even get phpmyadmin running to copy th
Hello!
I have been using XAMPP for quite some time now (thanks to the recommendations
from this list) without any real complaints...
and the only reason I am writing here is because i am sure a lot of you guys
run the same thing considering the amount of people who recommended it to me
when
Hey Bill,
Thanks for the tips, makes sense and will try to follow them.
Cheers!
R
*
Ryan,
Four observations:
1. Don't try to solve your problem by changing the DOCTYPE. Bad HTML is
bad HTML. Changing the DOCTYPE may reduce the severity of the problem,
but it won't solve it.
2. You
Hey Jim,
Yep, That was the problem fixed that and now everything works.
***
While we are on the topic of the ... tags, just a side note.
It
is invalid HTML syntax to have any tag between your
ok here
As a note: the only legal tag that I know of that can be placed in between the
above
Hey!
Thanks to you and everyone else who replied, I have fixed the problem by
remaking the tables...
> This is not really anything to do with PHP, of course... :)
:) True, in the end it was not. But in the beginning I couldnt figure out for
the love of god why my PHP script was not getting
Hey Pete,
**
First, you should reply to the list - that way more people could see the links
you posted and help out.
**
Oops, my mistake, I thought I did that. Will add a snip at the bottom of this
email.
**
It looks like there may be a problem with the form tags - when I look at this
code I
, Ryan S <[EMAIL PROTECTED]> wrote:
> Hey!
> Thanks Andrew, will look into those points that you sent me.
>
> First thing to change will be the DOCTYPE I think, as i didht type that but
> must have copied code into a pre-made page...
One thing I learned when screwing aro
, Ryan S <[EMAIL PROTECTED]> wrote:
> Hey!
> Thanks Andrew, will look into those points that you sent me.
>
> First thing to change will be the DOCTYPE I think, as i didht type that but
> must have copied code into a pre-made page...
One thing I learned when screwing aro
Sent: Tuesday, April 8, 2008 11:18:36 PM
Subject: Re: [PHP] dynamic boxes problem... JS and PHP
On Tue, Apr 8, 2008 at 3:51 PM, Ryan S <[EMAIL PROTECTED]> wrote:
> Hi Guys,
[snip]
> Andrew:
> Thanks for replying!
>
[snip]
> > Also, FWIW, I doubt it has anything t
Hi Guys,
Thanks for responding, will try to answer everyone in the same order.
Mark W:
Thanks for replying!
> Since I'm relatively new to PHP I could be off on this, but I'd say yes,
> $_REQUEST is wrong. I would think you'd want to use $_POST to receive
> the incoming values from a form.
$_
Hey everyone,
A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or
just me.
(My money is on the last one :p )
Here's what I am trying to do:
In a form I have a listbox with the values 1-5, and under the listbox i have a
with the id of "recips" (like so: ' +
'' +
Hey all,
Heres what i am trying to do:
When someone sends a message from my site, i take their ip address and make a
file with their ip address in a directory called "hash-directory", the file
looks like this: 169.34.534.243.txt
I want to make sure they cant send too many messages because of t
93 matches
Mail list logo