Search found 206 matches

by YoussefSiblini
Sat Apr 20, 2013 3:16 pm
Forum: PHP - Code
Topic: Rewrite url
Replies: 5
Views: 1168

Re: Rewrite url

Hi Guys thank you so much for your help, I solved this issue, I found a helpful topic on line that helped me lots so I will copy and paste it here may be will be useful for some users who are having the same issue: (a) Create a new menu (NOT menu item) (b) In the new menu created create a menu item ...
by YoussefSiblini
Wed Apr 17, 2013 4:00 pm
Forum: PHP - Code
Topic: Rewrite url
Replies: 5
Views: 1168

Re: Rewrite url

My latest code I ended up with is:

Code: Select all

RewriteEngine On
RewriteBase /
RewriteRule ^/neighbourhood /before-you-arrive/neighbourhood [L]
and still not making any changes.
by YoussefSiblini
Tue Apr 16, 2013 3:18 pm
Forum: PHP - Code
Topic: Rewrite url
Replies: 5
Views: 1168

Re: Rewrite url

Thank you for your reply,

This is my first time using the .htaccess file, what I did now is that I got rid of the [R=301,L]:

Code: Select all

RewriteRule ^before-you-arrive(.*)$ http://mygreatmove.com/neighbourhood
But it is not doing anything now.
by YoussefSiblini
Tue Apr 16, 2013 2:19 pm
Forum: PHP - Code
Topic: Rewrite url
Replies: 5
Views: 1168

Rewrite url

Hi, I am using joomla, I want to get rid of the categories in my url, so I want: http://www.mygreatmove.com/before-you-arrive/neighbourhood to be http://www.mygreatmove.com/neighbourhood I used this in the .htaccess file: RewriteEngine On RewriteRule ^before-you-arrive(.*)$ http://mygreatmove.com/ne...
by YoussefSiblini
Thu Apr 04, 2013 4:32 am
Forum: PHP - Code
Topic: Remove Div will all content
Replies: 5
Views: 3848

Re: Remove Div will all content

yes index.php contains php code inside it. let me give you more details: I am using joomla and I am adding social buttons to my blog pages(k2 template) and I want to display the social buttons only in the blog pages, but they are displaying in all pages. My plan is to do this is: get the url of the ...
by YoussefSiblini
Thu Apr 04, 2013 3:35 am
Forum: PHP - Code
Topic: Remove Div will all content
Replies: 5
Views: 3848

Re: Remove Div will all content

Thanks for your reply, At least I know where to start now, I tried this: $doc = new DOMDocument(); $file = "index.php"; $doc->loadHTMLFile($file); $xpath = new DOMXpath($doc); $elements = $xpath->query("*/div[@class='itp-share-tw']"); foreach($elements as $e){ $doc->removeChild($...
by YoussefSiblini
Thu Apr 04, 2013 2:52 am
Forum: PHP - Code
Topic: Remove Div will all content
Replies: 5
Views: 3848

Remove Div will all content

Hi, I want to remove all divs with class "itp-share" and there contents, here is one div and it's content: <div class="itp-share"> <div class="itp-share-tw"> <iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://p...
by YoussefSiblini
Wed Feb 20, 2013 2:17 pm
Forum: PHP - Code
Topic: Variables
Replies: 7
Views: 1121

Re: Variables

Thank you, this cleared it for me :)
by YoussefSiblini
Wed Feb 20, 2013 4:29 am
Forum: PHP - Code
Topic: Variables
Replies: 7
Views: 1121

Re: Variables

lol it is still morning here, sorry didn't notice this: Re: Variables by requinix » Tue Feb 19, 2013 7:21 pm That's what it does already. Syntax: [ Download ] [ Hide ] $variable = "a value"; $store = $variable; $variable = "a different value"; echo $store; // a value Assignments ...
by YoussefSiblini
Wed Feb 20, 2013 3:08 am
Forum: PHP - Code
Topic: Variables
Replies: 7
Views: 1121

Re: Variables

Hi Thanks for your reply,
The above code is outputting:
[text]
a value
B VALUE
[/text]
$store is still changing with $variable.
I know that there are a better ways to do this, I will get there slowly :)
by YoussefSiblini
Tue Feb 19, 2013 5:43 pm
Forum: PHP - Code
Topic: Variables
Replies: 7
Views: 1121

Variables

Hi, I have this code: <?php $variable = "a value"; $store = $variable; ?> What I want to achieve is to store the value of $variable in $store so the value of $store is now "a value" but if $variable changed to some thing different lets say "new value" I want $store to s...
by YoussefSiblini
Tue Dec 18, 2012 6:34 am
Forum: PHP - Code
Topic: XML Question [SOLVED]
Replies: 1
Views: 703

Re: XML Question

Hi Guys,

Found a way to do this :D
by YoussefSiblini
Tue Dec 18, 2012 3:37 am
Forum: PHP - Code
Topic: XML Question [SOLVED]
Replies: 1
Views: 703

XML Question [SOLVED]

Hi,

I have an xml file in my folder, is their a way to update this file when a new xml file has been added to the same folder?
I am using PHP to retrieve the existing xml folder.


Jo
by YoussefSiblini
Mon Dec 17, 2012 5:16 pm
Forum: PHP - Code
Topic: XML and PHP
Replies: 5
Views: 1141

Re: XML and PHP

Yesssssssssssssssssssssssss :) thank you very much, you are so good you even made me understand how every thing works
by YoussefSiblini
Mon Dec 17, 2012 4:05 pm
Forum: PHP - Code
Topic: XML and PHP
Replies: 5
Views: 1141

Re: XML and PHP

Hi Guys, Thank you for your replies, I used this code after having a look at what you said: $teams = new SimpleXMLElement('store.xml', null, true); $teamsNumber = $teams->count(); echo ' <table width="100%" border="1px grey solid;"> <tr> <th>Team</th> <th>Played</th> <th>Won</th>...