|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Str_replace-ing php code
Why wouldn't this work? It does not replace.
PHP Code:
|
|
#2
|
||||
|
||||
|
I see half of the puzzle. Where's the other half?
Here's a hint: I see two variables in there, but you only gave us one of them. Oh, and, there's another problem with what you posted too, but we'll get to that in a second.
__________________
FUMOFFURU! -- PHP Manual (cURL - PCRE regex - references) error_reporting() SQL injection: and mysql_real_escape_string() PHP and cron Negative0 Have spare time? Interested in a large-scale freelance PHP project? Chance for a part-time gig? PM me for details. |
|
#3
|
||||
|
||||
|
Here is everything. What's the other problem?
PHP Code:
|
|
#4
|
||||
|
||||
|
Okay, so $template is now
Code:
<?php require_once 'menu.php'; ?> Right? The replacement was done... |
|
#5
|
||||
|
||||
|
you are right ... I must have made some error somewhere else and suspected at this part ...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Str_replace-ing php code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|