Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

303
Views
Fetching value from URL, Commentics

I have a little problem with programming.

I'm trying to make a website in which people could leave their humble opinions about each other.

I was looking into one page, http://numeris.info and they seem to use very simple but also very good which would suit my needs. basically, you type in after / number and it gives info about it from database, for ex :myawesomepage.co.uk/1234567890 I'm using Commentics review system if that helps. it fetches all data with identifier

$cmtx_identifier = 'x';

Is it possible somehow to fetch the digits from URL after slash and put them instead of x ? and, if the digit doesnt exist in system, is it possible to 'create' a page?

Sorry if its to many questions, I'm just trying to learn programming, and many thanks

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Your .htaccess

RewriteEngine On
RewriteRule ^([0-9]+)/?$ page.php?id=$1 [QSA,L]

Your page.php

<?php
$id = (int) $_GET["id"];
var_dump($id)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!